/* Mi Voz Viva · landing
   Paleta y escala tomadas de app-mi-voz-vida (constants/theme.ts, tailwind.config.js).
   Cuerpo de 18px, botones de 56px, zonas táctiles >= 44px: público senior. */
:root {
  --voz: #066BF7;
  --vida: #05CCC1;
  --memoria: #9F33FD;
  --humano: #FD615B;
  --legado: #FDCC1A;
  --profundo: #123B73;
  --texto: #344054;
  --suave: #F3F6FA;
  --lavanda: #F3EAFF;
  --turquesa: #E5FAF8;
  --coral: #FFF0EE;
  --sky: #EBF3FE;
  --outline: #D0D5DD;
  --brand: linear-gradient(90deg, var(--voz), var(--memoria) 55%, var(--vida));
  --r: 8px; --r-xl: 24px;
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Nunito', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 18px/1.6 var(--sans); color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--voz); }
h1, h2, h3 { color: var(--profundo); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; font-weight: 800; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--voz); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: #fff; padding: 12px; z-index: 99; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--suave); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--profundo); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; }
.nav__links a:hover { color: var(--voz); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 999px; background: var(--profundo); color: #fff; font: 700 18px var(--sans); text-decoration: none; border: 2px solid var(--profundo); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(18,59,115,.18); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 16px; }
.btn--brand { background: var(--brand); border-color: transparent; }
.btn--ghost { background: transparent; color: var(--profundo); }

/* Tipografía auxiliar */
.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--voz); margin-bottom: 16px; }
.eyebrow--memoria { color: var(--memoria); }
.center .eyebrow, .sec > .wrap > .eyebrow, .hero .eyebrow { text-align: center; }
.split__text .eyebrow { text-align: left; }
.lead { font-size: 22px; line-height: 1.6; max-width: 640px; margin: 24px auto 0; }
.lead-sm { margin: 20px 0 28px; }
.sub { max-width: 640px; margin: 16px auto 0; font-size: 20px; text-align: center; }
.hint { margin-top: 24px; font-size: 16px; color: #667085; }
.fine { margin-top: 28px; font-size: 15px; color: #667085; }
em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { padding: 88px 0 24px; text-align: center; background: radial-gradient(900px 400px at 50% -80px, var(--sky), #fff); }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero__img { position: relative; margin: 64px auto 0; max-width: 760px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--suave); box-shadow: 0 10px 30px rgba(18,59,115,.08); }
.hero__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero__img figcaption { position: absolute; inset: auto 0 0 0; padding: 72px 28px 24px; color: #fff; font: 700 20px/1.4 var(--serif); text-align: left; background: linear-gradient(transparent, rgba(18,59,115,.88)); }

/* Secciones */
.sec { padding: 112px 0; }
.sec--soft { background: var(--suave); }
.sec--lav { background: var(--lavanda); }
.sec > .wrap > h2, .sec .narrow > h2 { text-align: center; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 64px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: #fff; border-radius: var(--r-xl); padding: 36px 28px; border: 1px solid var(--outline); }
.steps h3 { margin: 20px 0 10px; }
.num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font: 700 22px var(--serif); color: #fff; }
.num--voz { background: var(--voz); } .num--vida { background: var(--vida); color: var(--profundo); } .num--memoria { background: var(--memoria); }

/* Libro */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.split__text h2 { text-align: left; }
.split__img img { border-radius: var(--r-xl); border: 1px solid var(--outline); box-shadow: 0 10px 30px rgba(18,59,115,.1); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 40px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--voz); font-weight: 800; display: grid; place-items: center; font-size: 16px; }

/* Elena */
.quote { margin: 48px auto; max-width: 640px; background: #fff; border-radius: var(--r-xl); padding: 36px; border-left: 6px solid var(--memoria); }
.quote p { font: 400 21px/1.7 var(--serif); color: var(--profundo); }
.quote cite { display: block; margin-top: 16px; font: 800 15px var(--sans); color: var(--memoria); letter-spacing: .04em; text-transform: uppercase; font-style: normal; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trio h3 { font-size: 19px; margin-bottom: 8px; }
.trio p { font-size: 17px; }

/* Familia */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.chip { padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 17px; color: var(--profundo); }
.chip--voz { background: var(--sky); } .chip--vida { background: var(--turquesa); } .chip--memoria { background: var(--lavanda); } .chip--humano { background: var(--coral); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.plan { position: relative; background: #fff; border: 2px solid var(--outline); border-radius: var(--r-xl); padding: 32px 22px; text-align: center; }
.plan--feat { border-color: var(--voz); background: var(--sky); }
.plan h3 { font-size: 20px; }
.price { font: 700 30px var(--serif); color: var(--profundo); margin: 12px 0 8px; line-height: 1.2; }
.price small { display: block; font: 600 15px var(--sans); color: var(--texto); }
.plan p:last-child { font-size: 16px; }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--legado); color: var(--profundo); font: 800 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--outline); }
details { border-bottom: 1px solid var(--outline); }
summary { cursor: pointer; transition: color .2s; list-style: none; padding: 24px 40px 24px 0; font: 700 20px var(--sans); color: var(--profundo); position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 400; color: var(--voz); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__body p { padding: 0 40px 28px 0; }

/* Descarga */
.cta { background: var(--profundo); color: #fff; padding: 112px 0; }
.cta h2 { color: #fff; }
.sub--inv { color: #D6E4FA; }
.stores { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.store { display: flex; flex-direction: column; align-items: flex-start; min-width: 220px; padding: 14px 28px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); text-align: left; }
.store small { font-size: 13px; opacity: .8; } .store strong { font-size: 22px; line-height: 1.2; }
.hint--inv { color: #D6E4FA; } .hint--inv a { color: #fff; }

/* Footer */
.foot { background: var(--suave); padding: 48px 0; font-size: 16px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot img { height: 35px; width: auto; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--profundo); font-weight: 600; padding: 10px 0; }
.foot p { width: 100%; color: #667085; font-size: 15px; }

/* Responsive */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .steps, .trio { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split__img { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero { padding-top: 56px; }
  .sec, .cta { padding: 72px 0; }
  .plans { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .store { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Aparición al hacer scroll (solo si hay JS: sin JS todo queda visible) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal] > * { transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .steps[data-reveal], .js .trio[data-reveal], .js .plans[data-reveal], .js .chips[data-reveal], .js .stores[data-reveal], .js .faq[data-reveal] { opacity: 1; transform: none; }
.js .steps[data-reveal] > *, .js .trio[data-reveal] > *, .js .plans[data-reveal] > *, .js .chips[data-reveal] > *, .js .stores[data-reveal] > *, .js .faq[data-reveal] > * { opacity: 0; transform: translateY(28px); }
.js .steps.is-in > *, .js .trio.is-in > *, .js .plans.is-in > *, .js .chips.is-in > *, .js .stores.is-in > *, .js .faq.is-in > * { opacity: 1; transform: none; }
.hero__in > * { animation: subir .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__in > :nth-child(2) { animation-delay: .08s; } .hero__in > :nth-child(3) { animation-delay: .16s; } .hero__in > :nth-child(4) { animation-delay: .24s; } .hero__in > :nth-child(5) { animation-delay: .32s; }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* FAQ: el + gira y el título se tiñe al abrir */
details[open] summary { color: var(--voz); }
.faq__body { will-change: height; }

/* Avatar de Elena */
.avatar { position: relative; width: 132px; height: 132px; margin: 0 auto 28px; }
.avatar img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--memoria); background: var(--lavanda); box-shadow: 0 10px 30px rgba(159,51,253,.25); }
.avatar__halo { position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(159,51,253,.35), transparent 68%); animation: respira 3.6s ease-in-out infinite; }
@keyframes respira { 0%, 100% { transform: scale(.92); opacity: .6; } 50% { transform: scale(1.12); opacity: 1; } }
.quote { display: flex; gap: 20px; align-items: flex-start; text-align: left; }
.quote__av { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--memoria); }

/* Botones de tienda con icono */
.store { flex-direction: row; align-items: center; gap: 14px; }
.store__ic { width: 34px; height: 34px; flex: none; }
.store__t { display: flex; flex-direction: column; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal] > * { opacity: 1 !important; transform: none !important; }
  .hero__in > *, .avatar__halo { animation: none; }
}
