/* Clientes a Medida · estilos compartidos por la landing y la página de gracias.
   Paleta y tipografía tomadas de la guía "Banco de ángulos y filtro". */
:root {
  --fondo: #f7f8f4;
  --papel: #ffffff;
  --tinta: #151515;
  --tinta-2: #4a4a48;
  --tinta-3: #85857f;
  --linea: #e6e6e1;
  --azul: #3966dc;
  --azul-osc: #2c52bd;
  --azul-claro: #eaf0fd;
  --wa: #1fa855;
  --sombra: 0 1px 2px rgb(21 21 21 / .04), 0 12px 32px rgb(21 21 21 / .07);
  --titulos: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --texto: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 17px/1.6 var(--texto); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulos); font-weight: 800; margin: 0; letter-spacing: -.045em; line-height: 1.02; }
.azul { color: var(--azul); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--azul); color: #fff; text-decoration: none;
  font: 700 17px var(--texto); padding: 17px 30px; border-radius: 999px; border: 0; cursor: pointer; transition: background .15s, transform .1s, opacity .15s; }
.btn:hover { background: var(--azul-osc); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-chico { padding: 10px 18px; font-size: 14.5px; }
.btn-negro { background: var(--tinta); }
.btn-negro:hover { background: #333; }
.btn-borde { background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn-borde:hover { background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--azul); }

.pill { display: inline-block; margin: 0 0 18px; padding: 7px 16px; border: 2px solid var(--azul); border-radius: 999px; color: var(--azul); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.rotulo { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--tinta-3); }

/* Encabezado */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px); }
.logo { font: 800 21px var(--titulos); letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--azul); }

/* 1. Portada */
.hero { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); }
.bajada { font-size: clamp(17px, 1.6vw, 20px); color: var(--tinta-2); margin: 22px 0 30px; max-width: 32em; }
.nota { margin: 14px 0 0; font-size: 14px; color: var(--tinta-3); }

.mockup { position: relative; margin: 0; padding: 0 0 0 14%; }
.hoja { border-radius: 10px; box-shadow: 0 2px 4px rgb(0 0 0 / .05), 0 28px 60px rgb(21 21 21 / .16); }
.hoja-frente { position: relative; transform: rotate(-2.5deg); }
.hoja-atras { position: absolute; top: 7%; left: 0; width: 80%; transform: rotate(-9deg); opacity: .9; }
.sello { position: absolute; right: -6px; bottom: 9%; background: var(--tinta); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; box-shadow: var(--sombra); }

/* Secciones */
.bloque { max-width: 1000px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 40px) 0; scroll-margin-top: 8px; }
.bloque h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 15em; }

.adentro { list-style: none; counter-reset: a; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.adentro li { counter-increment: a; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; background: var(--papel); border-radius: 16px; padding: 18px 22px; box-shadow: var(--sombra); color: var(--tinta-2); }
.adentro li::before { content: '0' counter(a); font: 800 18px var(--titulos); color: var(--azul); letter-spacing: -.02em; }
.adentro b { color: var(--tinta); font-weight: 600; }
.extra { margin: 22px 0 0; padding: 18px 22px; border-radius: 16px; border: 2px solid var(--azul); background: var(--papel); color: var(--tinta-2); }
.extra b { color: var(--azul); }

.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.tarjeta { background: var(--papel); border-radius: 18px; padding: 26px; box-shadow: var(--sombra); }
.tarjeta h3 { font-size: 22px; letter-spacing: -.035em; }
.tarjeta p { margin: 8px 0 0; color: var(--tinta-2); }
.chats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chats span { background: #e9f8ee; color: #1b6b3a; font-size: 13.5px; font-weight: 500; padding: 5px 11px; border-radius: 12px 12px 12px 3px; }

.para-quien { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.para-quien > div { border-radius: 18px; padding: 26px 26px 26px 66px; position: relative; }
.para-quien p:last-child { margin: 0; }
.para-quien > div::before { position: absolute; left: 24px; top: 24px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.si { background: var(--papel); border: 2px solid var(--azul); }
.si::before { content: '✓'; border: 2px solid var(--azul); color: var(--azul); }
.si .rotulo { color: var(--azul); }
.no { background: #efefea; color: var(--tinta-2); }
.no::before { content: '✕'; border: 2px solid var(--tinta-3); color: var(--tinta-3); }

.autor { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; background: var(--papel); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--sombra); }
.autor img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.autor blockquote { margin: 0; }
.autor blockquote p { margin: 0 0 16px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.autor figcaption { display: flex; flex-direction: column; font-size: 15px; }
.autor figcaption span { color: var(--tinta-3); }

/* 6. Formulario */
.form-card { background: var(--papel); border: 2px solid var(--azul); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 70px rgb(57 102 220 / .14); max-width: 680px; margin: 0 auto; }
.form-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.form-cab h2 { font-size: clamp(28px, 3.4vw, 38px); }
.form-cab .pill { margin-bottom: 12px; }
.form-mini { width: 74px; flex: none; border-radius: 6px; box-shadow: 0 10px 24px rgb(21 21 21 / .16); transform: rotate(4deg); }

.progreso { margin: 22px 0 20px; }
.progreso p { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--tinta-3); }
.barra { height: 6px; border-radius: 999px; background: var(--linea); overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--azul); transition: width .35s ease; }
.preg { margin: 0 0 14px; font: 800 clamp(21px, 2.4vw, 25px)/1.15 var(--titulos); letter-spacing: -.035em; }

.pregunta { border: 0; margin: 0 0 22px; padding: 0; }
.pregunta legend { padding: 0; }
.opciones { display: grid; grid-template-columns: 1fr; gap: 8px; }
.opciones.cortas { grid-template-columns: repeat(3, 1fr); }
.opciones label { position: relative; }
.opciones span { height: 100%; display: flex !important; align-items: center; }
.opciones.cortas span { justify-content: center; }
.opciones input { position: absolute; opacity: 0; pointer-events: none; }
.opciones span { display: block; text-align: left; padding: 14px 16px; border: 1.5px solid var(--linea); border-radius: 12px; font-weight: 500; font-size: 15.5px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.opciones label:hover span { border-color: var(--azul); }
.opciones input:checked + span { border-color: var(--azul); background: var(--azul-claro); color: var(--azul-osc); font-weight: 600; }
.opciones:not(.cortas) span::before { content: ''; flex: none; width: 18px; height: 18px; margin-right: 12px; border-radius: 50%; border: 1.5px solid #c9c9c3; background: #fff; transition: border .15s; }
.opciones:not(.cortas) input:checked + span::before { border: 6px solid var(--azul); }
.opciones input:focus-visible + span { box-shadow: 0 0 0 3px rgb(57 102 220 / .3); }

.campos { display: grid; gap: 14px; }
.campos label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.campos input { font: 500 16px var(--texto); padding: 14px 15px; border: 1.5px solid var(--linea); border-radius: 12px; background: var(--fondo); color: var(--tinta); width: 100%; }
.campos input:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px rgb(57 102 220 / .18); }
.campos small { color: var(--tinta-3); font-weight: 400; font-size: 13px; }

.nav { display: flex; gap: 10px; margin-top: 22px; }
.nav .btn { flex: 1; }
.atras { flex: none; width: 60px; height: 54px; border-radius: 999px; border: 0; background: #efefea; cursor: pointer; display: grid; place-items: center; }
.atras:hover { background: var(--linea); }
.atras svg { width: 22px; height: 22px; fill: none; stroke: var(--tinta-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.error { color: #b3261e; margin: 14px 0 0; font-size: 14.5px; font-weight: 600; }
.error:empty { display: none; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacidad { text-align: center; font-size: 13px; color: var(--tinta-3); margin: 14px 0 0; }

/* 7. Preguntas frecuentes */
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--azul); font-size: 24px; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--tinta-2); }

.pie { max-width: 1000px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 28px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--linea);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; color: var(--tinta-3); font-size: 14.5px; }
.pie p { margin: 0; }

/* ---------- Página de gracias ---------- */
.gracias { max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 0; }
.gracias h1 { font-size: clamp(36px, 5vw, 58px); }
.gracias .bajada { margin-bottom: 26px; }
.descarga { display: flex; align-items: center; gap: 22px; background: var(--papel); border-radius: 22px; padding: 22px; box-shadow: var(--sombra); }
.descarga img { width: 96px; flex: none; border-radius: 6px; box-shadow: 0 10px 24px rgb(21 21 21 / .14); }
.descarga div { flex: 1; }
.descarga p { margin: 0 0 14px; color: var(--tinta-2); font-size: 15px; }
.descarga .btn { width: 100%; }
.video { margin-top: 18px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--tinta); box-shadow: var(--sombra); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.aviso-wa { margin-top: 18px; background: var(--tinta); color: #fff; border-radius: 22px; padding: 24px; display: grid; gap: 16px; }
.aviso-wa p { margin: 0; font-size: 17px; line-height: 1.55; }
.aviso-wa b { color: #9db6f5; white-space: nowrap; }
.aviso-wa .btn { justify-self: start; }
.demo { margin-top: clamp(40px, 6vw, 64px); }
.demo h2 { font-size: clamp(28px, 3.4vw, 40px); }
.demo-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.demo-boton { display: block; text-decoration: none; background: var(--papel); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.demo-boton:hover { border-color: var(--azul); transform: translateY(-2px); }
.demo-boton img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--linea); }
.demo-boton span { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-weight: 700; }
.demo-boton span::after { content: '↗'; color: var(--azul); }
.demo .nota { margin-top: 14px; }

/* ---------- Tablet y celular ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .mockup { max-width: 420px; margin: 0 auto; width: 88%; }
  .tarjetas { grid-template-columns: 1fr; }
  .para-quien { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { padding: 14px 16px; }
  .logo { font-size: 19px; }
  .hero { padding-top: 12px; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .pill { font-size: 13px; padding: 6px 13px; }
  .hero .btn { width: 100%; }
  .bajada { margin: 16px 0 24px; }
  .adentro li { grid-template-columns: 32px 1fr; gap: 10px; padding: 16px; }
  .autor { grid-template-columns: 1fr; gap: 18px; }
  .autor img { width: 88px; height: 88px; }
  .form-card { border-radius: 20px; padding: 22px 16px; }
  .form-mini { width: 56px; }
  .opciones span { font-size: 15px; }
  .opciones.cortas span { padding: 12px 8px; }
  .pill { border-radius: 16px; }
  .descarga { flex-direction: column; align-items: stretch; text-align: left; }
  .descarga img { width: 80px; }
  .aviso-wa .btn { justify-self: stretch; }
  .demo-botones { grid-template-columns: 1fr; }
}
