/* Landing del análisis gratis (analisis.impulsaproject.cl).
   Misma estética oscura que la web «sistemas»: carbón, tarjetas con borde fino y acento lavanda. Solo Outfit. */
:root {
  --fondo: #111213;
  --tarjeta: #16171B;
  --campo: #1C1D22;
  --borde: #2A2B2F;
  --borde-2: #3A3C45;
  --blanco: #FFFFFF;
  --texto: #ECEDF0;
  --gris: #8A8B96;
  --gris-2: #A3A4AD;
  --acento: #6D8BF5;
  --acento-txt: #8EA3F7;
  --error: #F08A6C;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1080px;
  --radio: 14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fondo); color-scheme: dark; scroll-behavior: smooth; }
body { background: var(--fondo); color: var(--texto); font-family: "Outfit", system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--form { max-width: calc(680px + 2 * var(--gutter)); }

.logo { display: block; width: 118px; aspect-ratio: 2910 / 931; background-color: var(--blanco);
  -webkit-mask: url("assets/logo.svg") center / contain no-repeat; mask: url("assets/logo.svg") center / contain no-repeat; }
.nav { padding-top: 24px; padding-bottom: 24px; }

.hero { padding-top: clamp(40px, 9vw, 110px); padding-bottom: clamp(48px, 8vw, 96px); }
.etiqueta { color: var(--acento-txt); font-size: 15px; font-weight: 500; margin-bottom: 16px; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; font-weight: 700; color: var(--blanco); letter-spacing: -.02em; }
.bajada { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); color: var(--gris-2); max-width: 620px; }
.hero .btn { margin-top: 32px; }
.nota { margin-top: 12px; font-size: 14px; color: var(--gris); }

.bloque { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); border-top: 1px solid var(--borde); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 600; color: var(--blanco); margin-bottom: 28px; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 600; color: var(--blanco); margin: 14px 0 6px; }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tarjetas li { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; }
.tarjetas p { color: var(--gris-2); font-size: 15.5px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #23294A; color: var(--acento-txt); font-weight: 600; font-size: 15px; }
.remate { margin-top: 22px; color: var(--gris-2); }
.remate strong { color: var(--blanco); font-weight: 600; }

.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: p; }
.pasos li { counter-increment: p; padding: 4px 0 4px 52px; position: relative; }
.pasos li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--borde-2); display: grid; place-items: center; color: var(--acento-txt); font-weight: 600; }
.pasos strong { display: block; color: var(--blanco); font-weight: 600; }
.pasos span { color: var(--gris-2); font-size: 15.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--blanco); color: #111; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: #DCE3FD; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--sec { background: transparent; color: var(--texto); border: 1px solid var(--borde-2); }
.btn--sec:hover { background: var(--tarjeta); }

/* Formulario */
.form, .listo { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
.progreso { height: 4px; background: var(--borde); border-radius: 4px; overflow: hidden; }
.progreso span { display: block; height: 100%; width: 20%; background: var(--acento); transition: width .35s; }
.paso-num { margin: 14px 0 4px; font-size: 14px; color: var(--gris); }
.paso { border: 0; }
.paso legend { font-size: clamp(24px, 3vw, 30px); font-weight: 600; color: var(--blanco); margin-bottom: 22px; }
.campo { display: block; margin-bottom: 24px; font-weight: 500; color: var(--texto); }
.campo em { font-style: normal; font-weight: 400; color: var(--gris); font-size: 14px; margin-left: 4px; }
.campo input, .campo textarea { display: block; width: 100%; margin-top: 8px; background: var(--campo); border: 1px solid var(--borde-2); border-radius: 12px; padding: 13px 14px; font-size: 16px; font-weight: 400; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acento); }
.campo input:disabled { opacity: .4; }
.campo ::placeholder { color: #5E606A; }
.notengo { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 400; font-size: 15px; color: var(--gris-2); cursor: pointer; }
.notengo input, .check input { width: 18px; height: 18px; accent-color: var(--acento); flex: none; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 15px; border: 1px solid var(--borde-2); border-radius: 999px; font-weight: 400; font-size: 15.5px; color: var(--gris-2); transition: background .15s, border-color .15s, color .15s; user-select: none; }
.chips label:hover span { border-color: #555866; }
.chips input:checked + span { background: #2C3A78; border-color: var(--acento); color: var(--blanco); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: var(--gris-2); cursor: pointer; }
.check input { margin-top: 3px; }

.invalido input, .invalido textarea, .invalido .chips span { border-color: var(--error); }
.error { min-height: 1.4em; color: var(--error); font-size: 15px; margin-top: 4px; }
.acciones { display: flex; gap: 10px; justify-content: space-between; margin-top: 12px; }
.acciones #siguiente { margin-left: auto; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.listo h2 { margin-bottom: 14px; }
.listo p { color: var(--gris-2); }
.listo strong { color: var(--blanco); font-weight: 600; }
.listo .nota { margin-top: 14px; }

details { border-bottom: 1px solid var(--borde); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--borde); }
summary { cursor: pointer; font-weight: 500; color: var(--blanco); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--acento-txt); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--gris-2); }
details a { color: var(--acento-txt); }

.pie { border-top: 1px solid var(--borde); padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--gris); font-size: 14px; }
.pie .logo { width: 90px; background-color: var(--gris-2); }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--texto); }

@media (max-width: 520px) {
  .acciones .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
