/* ==========================================================================
   PIRTest — landing
   Paleta rosa de alto contraste (audiencia ~80% mujeres). Texto ciruela oscuro
   sobre fondos rosa muy claro; CTAs en magenta; oro para "mejor valor"; verde
   para confirmaciones. Todos los pares texto/fondo cumplen contraste AA.
   ========================================================================== */
:root {
  --brand: #d6296f;          /* magenta rosa — CTA principal */
  --brand-strong: #b0185a;   /* rosa profundo — hover/acentos */
  --brand-deep: #7a0f3d;     /* ciruela — footer/acentos oscuros */
  --brand-soft: #f06ba8;     /* rosa suave */
  --ink: #2a1220;            /* texto principal (ciruela casi negro) */
  --ink-soft: #6b4256;       /* texto secundario */
  --rose-50: #fdf4f9;        /* fondo página */
  --rose-100: #fbe9f2;       /* fondo secciones alternas */
  --rose-200: #f6d3e4;       /* bordes suaves */
  --gold: #d98a1f;           /* premium / mejor valor (texto sobre claro) */
  --gold-bg: #fbeecd;
  --green: #1f9d57;          /* checks */
  --white: #ffffff;
  --card: #ffffff;
  --shadow: 0 18px 40px -18px rgba(122, 15, 61, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--rose-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
p { margin: 0 0 1rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--rose-100); }
.eyebrow { color: var(--brand); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; border-radius: 999px; padding: .85rem 1.5rem; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(214, 41, 111, .8); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--ghost { background: transparent; color: var(--brand-deep); border-color: var(--rose-200); }
.btn--ghost:hover { background: var(--rose-100); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 244, 249, .85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--rose-200); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }
.nav__cta { margin-left: 1rem; }
.nav__toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; background: radial-gradient(1200px 500px at 80% -10%, rgba(240, 107, 168, .28), transparent 60%), linear-gradient(180deg, #fff, var(--rose-50)); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__bullets { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .6rem; }
.hero__bullets li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.hero__bullets .dot { flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: 2px; }
.hero__ctas { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero__trust { margin-top: 1rem; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--card); border: 1px solid var(--rose-200); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat__num { font-size: 1.9rem; font-weight: 800; color: var(--brand); }
.stat__label { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

/* Phone mockups (placeholder — sustituye por capturas reales) */
.phones { position: relative; display: flex; justify-content: center; gap: 14px; }
.phone { width: 210px; aspect-ratio: 9 / 19.5; background: #fff; border-radius: 34px; border: 8px solid #2a1220; box-shadow: var(--shadow); overflow: hidden; flex: none; }
.phone--back { transform: translateY(24px) scale(.92); opacity: .96; }
.phone__screen { height: 100%; display: flex; flex-direction: column; background: var(--rose-50); }
.phone__bar { background: linear-gradient(120deg, var(--brand), var(--brand-strong)); color: #fff; padding: 16px 14px; font-weight: 800; }
.phone__bar small { display: block; font-weight: 600; opacity: .85; font-size: .7rem; }
.phone__body { padding: 12px; display: grid; gap: 8px; }
.mockq { background: #fff; border: 1px solid var(--rose-200); border-radius: 10px; padding: 10px; font-size: .72rem; }
.mockopt { background: var(--rose-100); border-radius: 8px; padding: 7px 9px; font-size: .7rem; display: flex; gap: 6px; align-items: center; }
.mockopt .k { width: 16px; height: 16px; border-radius: 5px; background: #fff; border: 1px solid var(--rose-200); display: grid; place-items: center; font-size: .6rem; font-weight: 700; }
.mockopt--ok { background: #e5f5ec; border: 1px solid var(--green); }
.mockopt--ok .k { background: var(--green); color: #fff; border-color: var(--green); }

/* iPhone del hero con capturas reales que rotan */
.phone--hero { width: 300px; }
.deck { position: relative; height: 100%; background: #000; }
.pslide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.pslide.on { opacity: 1; }
.shot-full { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .phone--hero { width: 260px; } }

/* Tira de capturas reales (sección "Así se ve por dentro") */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 22px; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--rose-200); border-radius: 999px; }
.shot { flex: none; width: 232px; scroll-snap-align: center; border-radius: 30px; border: 7px solid #2a1220; overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 9 / 19.5; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Carrusel de screenshots promocionales (App Store) */
.promo { position: relative; margin-top: 34px; }
.promo__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.promo__track::-webkit-scrollbar { display: none; }
.promo__item { flex: none; width: min(300px, 74vw); scroll-snap-align: center; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--rose-100); }
.promo__item img { width: 100%; height: auto; display: block; }
.promo__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--rose-200); background: #fff; color: var(--brand-strong); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.promo__nav:hover { background: var(--rose-100); }
#promoPrev { left: -8px; }
#promoNext { right: -8px; }
@media (max-width: 680px) { .promo__nav { display: none; } }

/* Feature cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--rose-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; background: var(--rose-100); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 8px; }
.step__n { width: 40px; height: 40px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* Materias grid */
.materias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.materia { background: var(--card); border: 1px solid var(--rose-200); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.materia .num { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.materia b { display: block; font-size: .95rem; }
.materia span { color: var(--ink-soft); font-size: .8rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--rose-200); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--brand); transform: translateY(-6px); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold-bg); color: var(--gold); font-weight: 800; font-size: .72rem; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--gold); white-space: nowrap; }
.plan__badge--life { background: #f1e6f0; color: var(--brand-deep); border-color: var(--brand-soft); }
.plan h3 { font-size: 1.1rem; }
.plan__price { font-size: 2.1rem; font-weight: 800; color: var(--ink); }
.plan__price small { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.plan__note { color: var(--ink-soft); font-size: .9rem; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: .55rem; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* Entrevista / código */
.codebox { background: var(--card); border: 1px solid var(--rose-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 560px; margin-inline: auto; }
.codebox form { display: flex; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.codebox input { flex: 1 1 220px; padding: .85rem 1rem; border-radius: 999px; border: 2px solid var(--rose-200); font-size: 1rem; text-transform: uppercase; }
.codebox input:focus { outline: none; border-color: var(--brand); }
.codemsg { font-weight: 700; min-height: 1.4em; }
.codemsg.ok { color: var(--green); }
.codemsg.err { color: #c0392b; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--rose-200); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); padding-bottom: 16px; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-strong), var(--brand-deep)); color: #fff; border-radius: 26px; padding: 48px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 60ch; margin-inline: auto; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* Footer */
.site-footer { background: #23101c; color: #e7cdd9; padding: 56px 0 28px; }
.site-footer a { color: #e7cdd9; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.footer__brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__note { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #b78ea1; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .phones { margin-top: 8px; }
  .grid--3, .grid--2, .steps, .materias, .pricing { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: var(--rose-50); flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--rose-200); }
  .nav__toggle { display: inline-flex; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
  .plan--featured { transform: none; }
  .cta-band { padding: 32px 20px; }
}
@media (max-width: 560px) {
  .stats, .stats--4 { grid-template-columns: 1fr 1fr; }
}
