/* ============================================================
   Hugo Vecino — Sistema de diseño
   Paleta: cian-aguamarina · blanco · lapislázuli (estilo Osterwalder)
   ============================================================ */

:root {
  /* Color — lapislázuli (autoridad / texto) */
  --lapis-900: #0C2747;
  --lapis-800: #102F58;
  --lapis-700: #143C73;
  --lapis-600: #1B4D8F;

  /* Color — cian aguamarina (acción / acento) */
  --cyan-600: #0A93A3;
  --cyan-500: #0FB5C4;
  --cyan-400: #2BD4DF;
  --cyan-100: #C7F1F6;
  --cyan-50:  #E7FAFC;

  /* Neutros */
  --ink:      #0E2240;
  --muted:    #51677E;
  --line:     #E2EBF2;
  --bg:       #FFFFFF;
  --bg-soft:  #F2F8FB;
  --bg-deep:  #0C2747;

  /* Urgencia (uso mínimo: badges) */
  --gold:     #F6A609;
  --gold-ink: #7A4E00;

  /* Estados */
  --ok:    #11A06B;
  --error: #D5403A;

  /* Gradiente de marca */
  --grad: linear-gradient(135deg, #2BD4DF 0%, #0FB5C4 38%, #143C73 100%);
  --grad-soft: linear-gradient(135deg, #E7FAFC 0%, #F2F8FB 100%);

  /* Tipografía */
  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Sombra / elevación */
  --sh-sm: 0 1px 2px rgba(12,39,71,.06), 0 1px 3px rgba(12,39,71,.08);
  --sh-md: 0 6px 16px rgba(12,39,71,.10);
  --sh-lg: 0 18px 50px rgba(12,39,71,.16);
  --sh-cyan: 0 12px 30px rgba(15,181,196,.30);

  /* Radio / capas */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --z-nav: 100;
  --z-modal: 1000;

  /* Layout */
  --maxw: 1180px;
  --gap: clamp(16px, 4vw, 28px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--lapis-900); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 5vw, 32px); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #DCE8F4; }
.section--deep h2, .section--deep h3 { color: #fff; }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-600); margin: 0 0 .8rem; }
.section--deep .eyebrow { color: var(--cyan-400); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; min-height: 52px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center; line-height: 1.1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--sh-cyan); }
.btn--primary:hover { box-shadow: 0 16px 38px rgba(15,181,196,.42); }
.btn--solid { background: var(--cyan-500); color: #042b30; box-shadow: var(--sh-cyan); }
.btn--solid:hover { background: var(--cyan-400); }
.btn--lapis { background: var(--lapis-700); color: #fff; }
.btn--lapis:hover { background: var(--lapis-600); }
.btn--ghost { background: transparent; color: var(--lapis-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cyan-500); color: var(--cyan-600); background: var(--cyan-50); }
.btn--white { background:#fff; color: var(--lapis-800); }
.btn--white:hover { background: var(--cyan-50); }
.btn--lg { font-size: 1.08rem; padding: 17px 34px; min-height: 58px; }
.btn--block { display: flex; width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.badge--gold { background: #FFF3D6; color: var(--gold-ink); }
.badge--cyan { background: var(--cyan-50); color: var(--cyan-600); }
.badge--solid { background: var(--gold); color: #3d2700; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; color: var(--lapis-900); font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem; box-shadow: var(--sh-cyan); }
.brand__sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-600); margin-top: -2px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--lapis-800); padding: 9px 13px; border-radius: 10px; }
.nav__links a:hover { background: var(--cyan-50); color: var(--cyan-600); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--cyan-600); background: var(--cyan-50); }
.nav__cta { margin-left: 6px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--lapis-800); }
.nav__toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 940px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px clamp(18px,5vw,32px) 22px; box-shadow: var(--sh-md);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 14px; font-size: 1.02rem; }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-soft); }
.hero::before { content:""; position:absolute; inset:0; background:
   radial-gradient(60% 60% at 88% 8%, rgba(43,212,223,.22), transparent 60%),
   radial-gradient(50% 50% at 10% 90%, rgba(20,60,115,.10), transparent 60%);
   pointer-events:none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 420px; gap: clamp(28px, 5vw, 60px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hero__grid > * { min-width: 0; }
.hero__title { margin-bottom: .5em; }
.hero__title .hl { color: var(--cyan-600); }
.hero__photo { width: 420px; max-width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r-lg); object-fit: cover; box-shadow: var(--sh-lg); border: 5px solid #fff; }
.hero__photo-wrap { position: relative; justify-self: end; }
.hero__photo-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; max-width: 230px;
}
.hero__photo-badge b { font-family: var(--font-head); color: var(--lapis-900); display: block; font-size: 1.05rem; }
.hero__photo-badge span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.hero__photo-badge .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; flex: none; }
.hero__photo-badge .dot svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__photo-wrap { justify-self: center; order: 2; margin-top: 10px; }
  .hero__photo { width: 168px; height: 168px; aspect-ratio: auto; object-position: 50% 22%; border-width: 4px; border-radius: 22px; }
  .hero .lead { margin-inline: auto; font-size: 1.02rem; }
  .hero .btn-row { justify-content: center; }
  .hero__photo-badge { position: static; transform: none; left: auto; bottom: auto; max-width: 320px; margin: 12px auto 0; }
}

/* ---------- Stats / cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 20px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--lapis-800); font-weight: 800; }
.stat span { font-size: .86rem; color: var(--muted); }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--cyan-100); }
.card__ico { width: 50px; height: 50px; border-radius: 13px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; margin-bottom: 16px; }
.card__ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }

/* numbered component list (PdR) */
.numlist { display: grid; gap: 16px; counter-reset: n; }
.numitem { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; background:#fff; border:1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.numitem__n { counter-increment: n; width: 54px; height: 54px; border-radius: 14px; background: var(--grad); color:#fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; }
.numitem__n::before { content: counter(n, decimal-leading-zero); }
.numitem h3 { margin-bottom: .25em; }
.numitem p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Libros: tarjeta de producto ---------- */
.book { display: flex; flex-direction: column; background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .22s ease; }
.book:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.book__cover { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 26px; overflow: hidden; }
.book__cover .ribbon { position: absolute; top: 14px; left: 14px; z-index: 2; }
.book__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.book__title { font-size: 1.22rem; margin-bottom: .35em; }
.book__pitch { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.book__meta { display:flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.book__price { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--lapis-900); }
.book__price-old { color: var(--muted); text-decoration: line-through; font-size: 1.05rem; }
.book__price-cop { font-size: .85rem; color: var(--muted); width: 100%; }
.book__cta { margin-top: auto; }
.book__feat { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.book__feat li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--lapis-800); }
.book__feat svg { width: 18px; height: 18px; color: var(--cyan-600); flex: none; margin-top: 2px; }

/* portada generada por CSS */
.cover-art { width: 100%; height: 100%; border-radius: var(--r-md); padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; color: #EAF6FF; position: relative; box-shadow: var(--sh-md); }
.cover-art::after { content:""; position:absolute; inset:0; border-radius: var(--r-md); background: radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.18), transparent 55%); }
.cover-art .ca-top { font-family: var(--font-head); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .82; }
.cover-art .ca-title { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; line-height: 1.08; letter-spacing: -.01em; }
.cover-art .ca-author { font-size: .8rem; letter-spacing: .06em; opacity: .9; }
.cover-art .ca-rule { width: 38px; height: 4px; border-radius: 4px; background: var(--cyan-400); margin: 10px 0; }
.cover-1 { background: linear-gradient(150deg, #143C73, #0C2747); }
.cover-2 { background: linear-gradient(150deg, #0FB5C4, #0A6E86); }
.cover-3 { background: linear-gradient(150deg, #1B4D8F, #103E73); }
.cover-4 { background: linear-gradient(150deg, #0C2747, #0A93A3); }

/* ---------- Quote / cita ---------- */
.quote { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.3; color: var(--lapis-900); letter-spacing: -.01em; max-width: 22ch; }
.quote .mark { color: var(--cyan-500); }

/* ---------- Comparativa PdR vs PdV ---------- */
.versus { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: stretch; }
.versus__col { border-radius: var(--r-lg); padding: 30px; }
.versus__col h3 { display: flex; align-items: center; gap: 10px; }
.versus--bad { background: #fff; border: 1px solid var(--line); }
.versus--good { background: var(--lapis-900); color: #DCE8F4; }
.versus--good h3 { color: #fff; }
.versus__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.versus__col li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.versus__col li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.versus--bad li svg { color: var(--error); }
.versus--good li svg { color: var(--cyan-400); }
.versus__mid { display: grid; place-items: center; }
.versus__mid span { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color:#fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; box-shadow: var(--sh-cyan); }
@media (max-width: 760px){ .versus { grid-template-columns: 1fr; gap: 16px; } .versus__mid span { margin: -8px auto; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--lapis-800); }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background:#fff;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; min-height: 50px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 4px rgba(15,181,196,.16); }
.field .help { font-size: .82rem; color: var(--muted); }
.field .err { font-size: .82rem; color: var(--error); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .err { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: .85rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: var(--r-sm); font-size: .95rem; }
.form-status.ok { display: block; background: #E6F7EF; color: #0A5E40; border: 1px solid #B6E6CF; }
.form-status.bad { display: block; background: #FCEBEA; color: #9A2B27; border: 1px solid #F2C7C4; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--grad); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 54px); color: #fff; text-align: center; box-shadow: var(--sh-cyan); }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.92); max-width: 52ch; margin-inline: auto; }
.newsletter__form { display: flex; gap: 10px; max-width: 480px; margin: 22px auto 0; }
.newsletter__form input { flex: 1; border: none; border-radius: 999px; padding: 15px 20px; min-height: 54px; font-size: 1rem; }
.newsletter__form input:focus { outline: 3px solid rgba(255,255,255,.6); }
@media (max-width: 520px){ .newsletter__form { flex-direction: column; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--lapis-900); border-radius: var(--r-lg); padding: clamp(32px,5vw,56px); color:#fff; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color:#fff; margin-bottom: .25em; }
.cta-band p { color: rgba(220,232,244,.85); margin: 0; max-width: 50ch; }
@media (max-width: 760px){ .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band .btn-row { justify-content: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #AEC2D8; padding-block: clamp(48px, 7vw, 72px) 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand .brand { color:#fff; }
.footer__brand p { color: #8FA6C0; font-size: .92rem; max-width: 34ch; margin-top: 14px; }
.footer h4 { font-family: var(--font-head); color:#fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #AEC2D8; font-size: .95rem; }
.footer a:hover { color: var(--cyan-400); text-decoration: none; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; color:#DCE8F4; transition: background .18s, transform .18s; }
.socials a:hover { background: var(--cyan-500); color:#042b30; transform: translateY(-2px); }
.socials svg { width: 21px; height: 21px; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #7E96B2; }
@media (max-width: 860px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px){ .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--grad-soft); padding-block: clamp(44px, 7vw, 76px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: .6rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan-600); }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #2C3E57; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--cyan-500); font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--lapis-900); }

/* ---------- Utilidades ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--lapis-900); color:#fff; padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 2000; }
.skip-link:focus { left: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(8,22,40,.62); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; max-width: 540px; width: calc(100% - 28px);
  margin: max(16px, 4vh) auto; background:#fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); max-height: 92vh; overflow-y: auto;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity:1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .modal__dialog { animation: none; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 24px 0; }
.modal__head h2 { font-size: 1.3rem; margin: 0; }
.modal__close { background: var(--bg-soft); border: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--lapis-800); flex: none; display: grid; place-items: center; }
.modal__close:hover { background: var(--cyan-50); color: var(--cyan-600); }
.modal__close svg { width: 22px; height: 22px; }
.modal__body { padding: 16px 24px 26px; }

.co-summary { display: flex; gap: 14px; align-items: center; background: var(--bg-soft); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; }
.co-summary__cover { width: 54px; height: 54px; border-radius: 10px; background: var(--grad); flex: none; box-shadow: var(--sh-sm); }
.co-summary__t { font-family: var(--font-head); font-weight: 700; color: var(--lapis-900); line-height: 1.2; }
.co-summary__p { font-family: var(--font-head); font-weight: 800; color: var(--cyan-600); font-size: 1.15rem; }

.co-notice { display: flex; gap: 10px; background: var(--cyan-50); border: 1px solid var(--cyan-100); border-radius: var(--r-sm); padding: 12px 14px; font-size: .88rem; color: var(--lapis-800); margin-bottom: 20px; }
.co-notice svg { width: 20px; height: 20px; color: var(--cyan-600); flex: none; margin-top: 1px; }

.co-step-title { font-family: var(--font-head); font-weight: 700; color: var(--lapis-900); font-size: 1rem; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.co-step-title .num { width: 24px; height: 24px; border-radius: 7px; background: var(--lapis-900); color:#fff; font-size: .8rem; display: grid; place-items: center; flex: none; }

.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: block; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt__box { display: flex; align-items: center; gap: 13px; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; transition: border-color .15s, background .15s; }
.pay-opt:hover .pay-opt__box { border-color: var(--cyan-400); }
.pay-opt input:checked + .pay-opt__box { border-color: var(--cyan-500); background: var(--cyan-50); box-shadow: 0 0 0 3px rgba(15,181,196,.14); }
.pay-opt input:focus-visible + .pay-opt__box { outline: 3px solid var(--cyan-400); outline-offset: 2px; }
.pay-opt__logo { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .8rem; color:#fff; flex: none; }
.logo-nequi { background: #5B0E8B; }
.logo-bbva { background: #004481; }
.logo-paypal { background: #ffffff; border: 1.5px solid #d7e0ea; color:#003087; }
.pay-opt__txt b { display: block; font-family: var(--font-head); color: var(--lapis-900); font-size: .98rem; }
.pay-opt__txt span { font-size: .82rem; color: var(--muted); }

.pay-detail { display: none; margin-top: 14px; border: 1.5px dashed var(--cyan-400); background: var(--cyan-50); border-radius: var(--r-md); padding: 16px; }
.pay-detail.is-shown { display: block; }
.pay-detail h4 { font-family: var(--font-head); margin: 0 0 8px; color: var(--lapis-900); font-size: .98rem; }
.pay-data { display: flex; align-items: center; justify-content: space-between; gap: 10px; background:#fff; border:1px solid var(--cyan-100); border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; }
.pay-data span { font-family: var(--font-head); font-weight: 700; color: var(--lapis-900); word-break: break-all; }
.pay-data button { font: inherit; font-size: .8rem; font-weight: 700; color: var(--cyan-600); background: var(--cyan-50); border: none; border-radius: 7px; padding: 6px 10px; cursor: pointer; flex: none; }
.pay-data button:hover { background: var(--cyan-100); }

.co-success { text-align: center; padding: 14px 6px 8px; display: none; }
.co-success.is-shown { display: block; }
.co-success__ring { width: 78px; height: 78px; border-radius: 50%; background: #E6F7EF; color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.co-success__ring svg { width: 42px; height: 42px; }
.co-success h2 { font-size: 1.5rem; }
.co-success p { color: var(--muted); max-width: 40ch; margin-inline: auto; }
.co-main.is-hidden { display: none; }

/* ============================================================
   IMPACT HERO (página Resentimiento — "destruye naciones")
   ============================================================ */
.impact-hero { position: relative; overflow: hidden; background: linear-gradient(165deg, #0C2747 0%, #081627 60%, #0A1F38 100%); color: #fff; text-align: center; padding-block: clamp(64px, 11vw, 130px); }
.impact-hero::before { content:""; position:absolute; inset:0; background:
   radial-gradient(50% 45% at 50% 0%, rgba(43,212,223,.18), transparent 60%),
   radial-gradient(60% 50% at 80% 100%, rgba(213,64,58,.16), transparent 60%);
   pointer-events:none; }
.impact-hero .container { position: relative; }
.impact-hero .eyebrow { color: #ff8a83; }
.impact-hero h1 { color:#fff; font-size: clamp(2.6rem, 8.5vw, 5.4rem); line-height: .98; letter-spacing: -.025em; text-transform: uppercase; margin: 0 0 .35em; }
.impact-hero h1 .danger { color: #ff5a52; display: block; }
.impact-hero__sub { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #C7DAF0; max-width: 30ch; margin: 0 auto; font-family: var(--font-head); font-weight: 600; }
.impact-hero__sub b { color:#fff; }

/* tarjetas de dimensión (8 análisis) — estilo oscuro */
.dim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px){ .dim-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .dim-grid { grid-template-columns: 1fr; } }
.dim-card { position: relative; background: #11243D; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 24px 22px; overflow: hidden; transition: transform .18s ease, border-color .2s ease; }
.dim-card:hover { transform: translateY(-4px); border-color: rgba(43,212,223,.4); }
.dim-card__num { position: absolute; top: 8px; right: 16px; font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; line-height: 1; color: rgba(43,212,223,.13); }
.dim-card__k { font-family: var(--font-head); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-400); font-weight: 700; position: relative; }
.dim-card h3 { color: #fff; font-size: 1.12rem; margin: .4em 0 .5em; position: relative; }
.dim-card p { color: #A9BCD4; font-size: .9rem; line-height: 1.55; margin: 0; position: relative; }

/* ============================================================
   VIRTUE CARDS (página Pedagogía de la Virtud — claro/elegante)
   ============================================================ */
.virtue-quote { max-width: 60ch; margin: 0 auto; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2.8vw, 1.9rem); line-height: 1.4; color: var(--lapis-900); letter-spacing: -.01em; }
.virtue-quote .mark { color: var(--cyan-500); }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px){ .vgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .vgrid { grid-template-columns: 1fr; } }
.vcard { background:#fff; border: 1px solid var(--line); border-top: 4px solid var(--cyan-500); border-radius: var(--r-md); padding: 26px 24px; box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .2s ease; }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.vcard__k { font-family: var(--font-head); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-600); font-weight: 700; }
.vcard h3 { margin: .35em 0 .15em; }
.vcard__gr { font-style: italic; color: var(--muted); font-size: .85rem; margin-bottom: .7em; }
.vcard p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ============================================================
   HERO MÓVIL — foto más pequeña + tira de productos
   ============================================================ */
.hero__products { display: none; }
.hero__products .hp-head { font-family: var(--font-head); font-weight: 700; color: var(--lapis-900); font-size: .95rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.hero__products .hp-head .badge { font-size: .62rem; }
.hp-track { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.hp-track::-webkit-scrollbar { height: 5px; }
.hp-track::-webkit-scrollbar-thumb { background: var(--cyan-100); border-radius: 4px; }
.hp-card { flex: 0 0 156px; scroll-snap-align: start; background:#fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; box-shadow: var(--sh-sm); }
.hp-cover { height: 86px; border-radius: 9px; margin-bottom: 10px; box-shadow: var(--sh-sm); }
.hp-title { font-family: var(--font-head); font-weight: 700; font-size: .8rem; line-height: 1.18; color: var(--lapis-900); display: block; min-height: 2.4em; }
.hp-price { font-family: var(--font-head); font-weight: 800; color: var(--cyan-600); font-size: 1rem; margin: 8px 0; }
.hp-card .btn { width: 100%; min-height: 42px; padding: 9px; font-size: .82rem; }

@media (max-width: 860px) {
  .hero__products { display: block; margin-top: 26px; }
}
