/* Mensa México — rediseño estático. Paleta: azul Mensa (#052460) + tinta + crema + dorado. */
:root {
  --ink: #071637;
  --ink-2: #0b1f4d;
  --mensa: #052460;
  --blue: #2b56c8;
  --sky: #9db9ff;
  --gold: #e3b25a;
  --gold-2: #f3d595;
  --paper: #f7f4ee;
  --tint: #efe9dc;
  --card: #ffffff;
  --text: #17203a;
  --muted: #5a6479;
  --line: rgba(7, 22, 55, .12);
  --line-light: rgba(255, 255, 255, .14);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(7, 22, 55, .06), 0 12px 32px -12px rgba(7, 22, 55, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--gold-2); }
.eyebrow .dot { display: none; }
.display {
  font-family: var(--serif); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.02em;
}
.h2 {
  font-family: var(--serif); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink);
}
.display em, .h2 em { font-style: italic; font-weight: 400; color: var(--gold); }
.h2 em { color: var(--blue); }
.section--ink .h2 { color: #fff; }
.section--ink .h2 em { color: var(--gold); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; margin-top: 18px; }
.lead--light { color: rgba(255, 255, 255, .78); }
.lead a, .lead--light a { color: inherit; font-weight: 700; }
.lead--light a { color: var(--gold-2); }
.small { font-size: 14px; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(227, 178, 90, .7); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--mensa); }
.btn--line { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn--line:hover { border-color: var(--ink); }
.row-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; margin-top: 16px; }
.link:hover { text-decoration: underline; }

/* ---------- Aviso de vista previa ---------- */
.ribbon {
  position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; max-width: calc(100% - 24px);
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(7, 22, 55, .92); color: rgba(255, 255, 255, .85);
  font-size: 13px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
}
.ribbon a { color: var(--gold-2); font-weight: 700; }
.ribbon__close { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; }
.ribbon__close:hover { background: rgba(255, 255, 255, .2); }
.ribbon[hidden] { display: none; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { position: relative; display: block; width: 150px; height: 62px; }
.nav__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s ease; }
.nav__logo--dark { opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right .25s ease; }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { right: 0; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; place-items: center; }
.nav__toggle .ic { width: 22px; height: 22px; }
.nav__toggle .ic--close { display: none; }

.nav.is-solid { background: rgba(247, 244, 238, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); --nav-h: 66px; }
.nav.is-solid .nav__logo--light { opacity: 0; }
.nav.is-solid .nav__logo--dark { opacity: 1; }
.nav.is-solid .nav__links a:not(.btn) { color: var(--ink); }
.nav.is-solid .nav__toggle { color: var(--ink); border-color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: calc(var(--nav-h) + 64px) 0 56px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/reunion-guadalajara-800.webp") center 60% / cover no-repeat;
  opacity: .16; filter: grayscale(1) contrast(1.1);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2) 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2) 70%, transparent);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 420px at 85% 20%, rgba(227, 178, 90, .22), transparent 70%),
    radial-gradient(700px 500px at 5% 90%, rgba(43, 86, 200, .45), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 28px 28px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero__lead { font-size: clamp(18px, 1.7vw, 21px); color: rgba(255, 255, 255, .78); max-width: 54ch; margin-top: 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Acertijo */
.puzzle {
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid var(--line-light); border-radius: 28px; padding: 24px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  width: 100%; max-width: 410px; justify-self: end;
}
.puzzle__head { display: flex; justify-content: space-between; align-items: center; }
.puzzle__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.puzzle__new { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; }
.puzzle__new:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.puzzle__title { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 14px 0 18px; }
.puzzle__matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell {
  aspect-ratio: 1; border-radius: 14px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff;
}
.cell svg { width: 70%; height: 70%; overflow: visible; }
.cell--empty { border: 1.5px dashed rgba(227, 178, 90, .6); background: rgba(227, 178, 90, .06); color: var(--gold); font-family: var(--serif); font-size: 40px; font-weight: 600; }
.cell--solved { border-style: solid; border-color: var(--gold); background: rgba(227, 178, 90, .14); animation: pop .5s ease; }
.cell--solved svg { color: var(--gold-2); }
.puzzle__options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.opt {
  aspect-ratio: 1; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04); color: #fff; display: grid; place-items: center; padding: 0;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.opt svg { width: 62%; height: 62%; overflow: visible; }
.opt:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.opt.is-wrong { border-color: #ff8a8a; animation: shake .4s ease; opacity: .45; }
.opt.is-right { border-color: var(--gold); background: rgba(227, 178, 90, .18); color: var(--gold-2); }
.opt:disabled { cursor: default; }
.puzzle__feedback { min-height: 3.2em; margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.puzzle__feedback strong { color: var(--gold-2); }
.puzzle__feedback a { color: var(--gold-2); font-weight: 700; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* Cifras */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 72px;
  border-top: 1px solid var(--line-light);
}
.stat { padding: 24px 20px 0; border-left: 1px solid var(--line-light); display: flex; flex-direction: column-reverse; gap: 4px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 48px); font-weight: 600; line-height: 1; color: #fff; }
.stat dd small { font-size: .5em; color: var(--gold); font-weight: 600; }
.stat dt { font-size: 14px; color: rgba(255, 255, 255, .62); }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* ---------- Qué es ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pills li { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.goals { list-style: none; margin-top: 40px; display: grid; gap: 4px; }
.goals li { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.goals__n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold); line-height: 1; min-width: 40px; }
.goals h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.goals p { color: var(--muted); }
.table-art { text-align: center; color: var(--ink); }
.table-art__svg { width: 100%; max-width: 460px; margin-inline: auto; overflow: visible; }
.table-art__seats { transform-origin: 200px 200px; animation: spin 80s linear infinite; }
.table-art__seats circle { transition: r .3s; }
.table-art figcaption { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin-top: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(230px, auto);
  grid-template-areas:
    "xl  xl  sig ev"
    "xl  xl  sig dia"
    "bar men men ext"
    "bar com int int";
}
.bento > :nth-child(1) { grid-area: xl; }
.bento > :nth-child(2) { grid-area: sig; }
.bento > :nth-child(3) { grid-area: ev; }
.bento > :nth-child(4) { grid-area: men; }
.bento > :nth-child(5) { grid-area: dia; }
.bento > :nth-child(6) { grid-area: bar; }
.bento > :nth-child(7) { grid-area: ext; }
.bento > :nth-child(8) { grid-area: com; }
.bento > :nth-child(9) { grid-area: int; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--card); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.tile h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--paper); color: var(--blue); margin-bottom: 18px; }
.tile--photo { padding: 0; justify-content: flex-end; min-height: 300px; color: #fff; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 22, 55, .05) 0%, rgba(7, 22, 55, .45) 38%, rgba(7, 22, 55, .94) 100%); }
.tile__body { position: relative; z-index: 1; padding: 28px; }
.tile--photo h3 { color: #fff; }
.tile--photo p { color: rgba(255, 255, 255, .85); }
.tile--xl h3 { font-size: clamp(28px, 3vw, 38px); }
.tile--xl p { font-size: 17px; max-width: 52ch; }
.tile--ink { background: var(--ink); color: #fff; }
.tile--ink h3 { color: #fff; }
.tile--ink p { color: rgba(255, 255, 255, .72); }
.tile--ink .tile__icon { background: rgba(255, 255, 255, .08); color: var(--gold); }
.tile--gold { background: linear-gradient(150deg, var(--gold-2), var(--gold)); }
.tile--gold p { color: rgba(7, 22, 55, .75); }
.tile__date { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 14px !important; }
.tile__date span { font-size: 64px; font-weight: 700; line-height: .9; display: block; }
.chip { align-self: flex-start; display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.chip--gold { background: var(--gold); color: var(--ink); }
.sigs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.sigs li { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-light); color: rgba(255, 255, 255, .88); transition: background-color .2s, color .2s; }
.sigs li:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Familia ---------- */
#familia { overflow: hidden; padding-top: 0; }
.marquee { border-block: 1px solid var(--line-light); padding: 22px 0; margin-bottom: clamp(70px, 9vw, 110px); overflow: hidden; }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); white-space: nowrap; color: rgba(255, 255, 255, .9); }
.marquee__track .sep { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-light);
  background: linear-gradient(170deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
}
.quote blockquote { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: #fff; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--gold-2); }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(227, 178, 90, .6); }
.polaroids { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; gap: 28px; margin-top: 80px; padding-inline: 8px; }
.polaroid { background: #fbf8f1; padding: 10px 10px 14px; border-radius: 6px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); transform: rotate(var(--r, -2deg)); transition: transform .35s ease; }
.polaroid:nth-child(2) { --r: 2.5deg; margin-top: 24px; }
.polaroid:nth-child(3) { --r: -1.5deg; }
.polaroid:nth-child(4) { --r: 3deg; margin-top: 18px; }
.polaroid:hover { transform: rotate(0) scale(1.04); }
.polaroid img { aspect-ratio: 1 / .86; width: 100%; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { font-family: var(--serif); font-style: italic; color: var(--ink); text-align: center; margin-top: 10px; font-size: 16px; }

/* ---------- Ingreso ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); }
.step { position: relative; }
.step__n { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--paper); }
.step h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; }
.paths { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.paths__tabs { display: flex; gap: 6px; padding: 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.paths__tabs button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; border-radius: 16px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 16px;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.paths__tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 6px 20px -10px rgba(7, 22, 55, .35); }
.paths__tabs button[aria-selected="true"] .ic { color: var(--blue); }
.paths__panel { padding: clamp(24px, 4vw, 48px); }
.panel-lead { font-size: 18px; color: var(--text); max-width: 70ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.facts--2 { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
.fact { display: flex; gap: 14px; }
.fact > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(43, 86, 200, .08); color: var(--blue); }
.fact h4 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.fact p { color: var(--muted); font-size: 15px; }
.bring { margin-top: 36px; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--paper); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.bring h4 { font-size: 15px; font-weight: 800; color: var(--ink); }
.bring ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.bring li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.bring .ic { color: var(--gold); }
.note { margin-top: 24px; font-size: 15px; color: var(--muted); padding-left: 16px; border-left: 3px solid var(--gold); max-width: 85ch; }
.note--warn { border-left-color: #d9534f; }
.tests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.tests__group { padding: 22px; border-radius: var(--radius-sm); background: var(--paper); }
.tests__group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 12px; }
.tests__group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tests__group li { background: var(--card); border: 1px solid var(--line); padding: 7px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.tests__group small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.tests__no { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #b23b37; }

/* ---------- Costos ---------- */
.prices { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: stretch; }
.price--feature { grid-column: 2; grid-row: 1 / span 2; }
.price { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price h3 { font-size: 16px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price__amt { font-family: var(--serif); font-size: 60px; font-weight: 600; color: var(--ink); line-height: 1; margin: 18px 0 6px; letter-spacing: -.02em; }
.price__sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.price__amt span { font-size: .5em; vertical-align: .7em; margin-right: 2px; color: var(--gold); }
.price__amt small { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.price__inc { margin-top: auto; display: flex; gap: 10px; font-size: 15px; color: var(--text); padding-top: 18px; border-top: 1px solid var(--line); }
.price__inc .ic { color: #2f9a64; margin-top: 3px; }
.price--feature { background: var(--ink); color: #fff; }
.price--feature h3 { color: var(--gold-2); }
.price--feature .price__inc { color: rgba(255, 255, 255, .85); border-top-color: var(--line-light); }
.price--feature .price__inc .ic { color: var(--gold); }
.tiers { list-style: none; margin: 18px 0 22px; }
.tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-light); }
.tiers li:last-child { border-bottom: 0; }
.tiers span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-weight: 600; }
.tiers strong { font-family: var(--serif); font-size: 26px; font-weight: 600; color: #fff; text-align: right; }
.tiers strong small { display: block; font-family: var(--sans); font-size: 12px; color: var(--gold-2); font-weight: 600; }
.tiers .ic { color: var(--gold); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.perk { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.perk > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gold); color: var(--ink); }
.perk p { font-size: 15px; color: var(--muted); }
.perk strong { color: var(--ink); }
.paybox { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 30px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--card); }
.paybox h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.paybox ul { list-style: none; display: grid; gap: 4px; margin-bottom: 10px; font-size: 15.5px; }

/* ---------- Test ---------- */
.test { background: radial-gradient(800px 500px at 90% 10%, rgba(227, 178, 90, .16), transparent 70%), var(--ink); }
.test__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.fine { margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .55); max-width: 60ch; }
.glossary { background: #fbf8f1; color: var(--text); border-radius: 26px; padding: 30px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); transform: rotate(1.2deg); }
.glossary h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.glossary h3 .ic { color: var(--gold); width: 22px; height: 22px; }
.glossary dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.glossary dt { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); }
.glossary dd { font-size: 15px; color: var(--muted); }
.glossary .small { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--blue); font-size: 22px; font-weight: 500; transition: transform .25s, background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); color: var(--ink); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.contact__v { line-height: 1.35; }
.contact {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius);
  background: var(--card); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.contact:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(7, 22, 55, .35); }
.contact > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--paper); color: var(--blue); margin-bottom: 12px; }
.contact__k { font-size: 13px; font-weight: 700; color: var(--muted); }
.contact__v { font-weight: 800; font-size: 15px; overflow-wrap: break-word; }
.contact--wa { background: #0f7a4d; color: #fff; }
.contact--wa > .ic { background: rgba(255, 255, 255, .15); color: #fff; }
.contact--wa .contact__k { color: rgba(255, 255, 255, .78); }
.social { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; flex-wrap: wrap; }
.social p { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.social ul { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; transition: background-color .2s, transform .2s; }
.social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 72px 0 96px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.footer__brand img { width: 190px; height: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 40ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer__bottom a { color: var(--gold-2); }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .polaroid.reveal.is-in { transform: rotate(var(--r, -2deg)); }
.js .polaroid.reveal.is-in:hover { transform: rotate(0) scale(1.04); }
.js .glossary.reveal.is-in { transform: rotate(1.2deg); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .contacts { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; background: var(--paper); box-shadow: 0 20px 40px -20px rgba(7, 22, 55, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav__links a:not(.btn) { color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }
  .nav.is-open { background: var(--paper); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open .nav__logo--light { opacity: 0; }
  .nav.is-open .nav__logo--dark { opacity: 1; }
  .nav.is-open .nav__toggle { color: var(--ink); border-color: var(--line); }
  .nav.is-open .ic--open { display: none; }
  .nav.is-open .ic--close { display: block; }

  .hero__grid, .about, .test__grid, .faq { grid-template-columns: 1fr; gap: 48px; }
  .puzzle { max-width: 520px; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .table-art__svg { max-width: 320px; }
  .faq .section__head { position: static; margin-bottom: 0; }
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "xl xl" "sig ev" "sig dia" "men men" "bar ext" "bar com" "int int";
  }
  .tile--xl { min-height: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .perks { grid-template-columns: 1fr; }
  .polaroids { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .puzzle { padding: 18px; border-radius: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stat { border-left: 0; padding-left: 0; }
  .stat:last-child { grid-column: 1 / -1; }
  .bento { grid-template-columns: 1fr; grid-template-areas: none; grid-auto-rows: auto; }
  .bento > * { grid-area: auto !important; }
  .tile--photo { min-height: 340px; }
  .tile--xl { min-height: 440px; }
  .quotes, .steps, .prices, .facts, .facts--2, .tests, .contacts { grid-template-columns: 1fr; }
  .price--feature { grid-column: auto; grid-row: auto; }
  .paths__tabs button { font-size: 14px; min-height: 50px; gap: 6px; padding: 0 8px; }
  .polaroids { gap: 18px; margin-top: 56px; }
  .glossary dl > div { grid-template-columns: 1fr; gap: 2px; }
  .paybox { padding: 24px; }
  .paybox .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .ribbon { font-size: 12px; }
  .ribbon__long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Powered by Duxels: badge al final del pie (siempre lo último de la página), enlaza a duxels.com */
footer:has(> .dx-powered){padding-bottom:0}
.dx-powered{box-sizing:border-box;width:100%;align-self:stretch;justify-self:stretch;margin:0;padding:24px 20px calc(28px + env(safe-area-inset-bottom));text-align:center;font-size:15px;line-height:1.2;letter-spacing:.03em;border-top:1px solid color-mix(in srgb,currentColor 16%,transparent)}
.dx-powered a{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none;opacity:.9;transition:opacity .2s ease,transform .2s ease}
.dx-powered a:hover,.dx-powered a:focus-visible{opacity:1;transform:translateY(-2px)}
.dx-powered a img{display:block;width:30px;height:30px;max-width:none;margin:0}
.dx-powered b{font-size:19px;font-weight:800;letter-spacing:.02em}
/* El aviso fijo de vista previa (.ribbon, abajo al centro) no debe tapar el badge */
body:has(#preview-ribbon:not([hidden])) .dx-powered{padding-bottom:calc(84px + env(safe-area-inset-bottom))}

/* Datos de pago: transferencia Banamex y PayPal (2026-12-01) */
.payways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.payway { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.payway h3 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.payway h3 .ic { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--gold); color: var(--ink); flex: none; }
.payway dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.payway dt { color: var(--muted); }
.payway dd { color: var(--ink); font-weight: 600; margin: 0; }
.payway code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; letter-spacing: .02em; white-space: nowrap; user-select: all; }
.payway p + p { margin-top: 8px; }
@media (max-width: 900px) { .payways { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .payway { padding: 20px 18px; } .payway dl { gap: 6px 10px; } .payway code { font-size: 14px; letter-spacing: 0; } }
