:root {
  --noche: #0b1220;
  --noche-2: #121a2e;
  --card: #151d32;
  --naranja: #f97316;
  --naranja-2: #ea580c;
  --hueso: #f8f4ef;
  --muted: #9aa6bd;
  --linea: rgba(248, 244, 239, 0.1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --radio: 22px;
  --pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .45s;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--hueso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  background: var(--naranja); color: #fff;
  border: 0; border-radius: var(--pill);
  cursor: pointer; text-decoration: none;
  font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
  transition: background .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--naranja-2); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(249, 115, 22, 0.38); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  background: transparent; color: var(--hueso);
  border: 0; border-radius: 0; box-shadow: none;
  border-bottom: 1px solid rgba(248,244,239,.35);
  min-height: auto; padding: 8px 0; font-weight: 600;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { border-bottom-color: var(--naranja); color: #fff; }

.kicker {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--naranja); margin: 0 0 12px; font-weight: 700;
}
.seccion { padding: 96px 0; scroll-margin-top: 76px; }
.seccion h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.9rem); line-height: 1.15; margin: 0 0 20px;
}
.lead-sec { color: var(--muted); max-width: 40rem; font-size: 1.12rem; }

.card {
  background: var(--card);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 24px;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}

/* marcos: misma noche, distinto filtro según el origen */
.frame-obra, .frame-marmol, .frame-vaso, .frame-foto {
  position: relative; overflow: hidden; margin: 0;
  border-radius: 16px; background: #070b14;
}
.frame-obra img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.14) brightness(0.78);
}
.frame-marmol img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.18) saturate(0.35) brightness(0.92);
}
.frame-vaso img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) contrast(1.08) brightness(0.88);
}
.frame-foto img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.1) brightness(0.86);
}
.frame-obra figcaption,
.frame-marmol figcaption,
.frame-vaso figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  font-size: 0.68rem; letter-spacing: 0.04em; color: rgba(248,244,239,.78);
  text-shadow: 0 1px 8px #000;
}

/* hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-margin-top: 76px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,18,32,.78) 0%, rgba(11,18,32,.62) 42%, rgba(11,18,32,.94) 100%),
    url("/img/turner.jpg") center 38% / cover no-repeat;
  filter: saturate(0.72) contrast(1.12) brightness(0.72);
  pointer-events: none;
}
.hero-sea {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 48%;
  color: #8b93a7;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 180px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 7.2vw, 6.2rem);
  line-height: 1.06; margin: 0 0 22px; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--naranja); font-weight: 400; display: block; }
.hero .lead {
  max-width: 40rem; margin: 0 auto 26px;
  color: rgba(248,244,239,.78);
  font-size: clamp(1.05rem, 2.1vw, 1.32rem); line-height: 1.5;
}
.hero .meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; }
.cta-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-cuotas { font-size: 0.84rem; color: var(--muted); font-weight: 500; }
.cta-cuotas-block { margin: 10px 0 0; }

/* navbar */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--linea);
  transition: transform .45s var(--ease), background .3s, border-color .3s;
}
.nav.nav-hide { transform: translateY(-110%); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 18px;
}
.nav-brand {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500;
  text-decoration: none; white-space: nowrap; color: var(--hueso);
}
.nav-menu {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: flex-end; gap: 4px 16px;
}
.nav-menu a {
  text-decoration: none; color: var(--muted);
  font-size: 0.8rem; font-weight: 500; white-space: nowrap;
  position: relative;
  transition: color .2s;
}
.nav-menu a:hover, .nav-menu a.is-active { color: var(--hueso); }
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: var(--naranja);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta).is-active::after { transform: scaleX(1); }
.nav-menu a.nav-cta {
  color: #fff;
  background: var(--naranja);
  min-height: 40px; padding: 8px 16px;
  border-radius: var(--pill); font-weight: 700;
  display: inline-flex; align-items: center;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22);
  transition: background .2s, transform .25s var(--ease), box-shadow .25s;
}
.nav-menu a.nav-cta:hover { background: var(--naranja-2); color: #fff; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: var(--hueso); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

/* guía */
.guia { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.guia p { font-size: 1.08rem; color: var(--muted); }
.guia h2 { color: var(--hueso); }
.guia-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(248, 244, 239, 0.78);
}
.foto-docente {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: 24px; background: #2a2430;
}
.foto-docente img {
  width: 100%; height: 100%; object-fit: cover; object-position: 48% 12%;
  transform: scale(1.28);
  filter: saturate(0.92) contrast(1.05);
  transition: transform 1.1s var(--ease);
}
.foto-docente:hover img { transform: scale(1.34); }
.foto-docente figcaption {
  position: absolute; left: 18px; bottom: 18px; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}
.foto-docente small { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.7rem; opacity: 0.85; }
.foto-docente strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.proof { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linea); font-size: 0.95rem; }

/* promesa */
.promesa { max-width: 760px; }
.promesa-puntos {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 12px;
}
.promesa-puntos li {
  padding: 16px 18px;
  background: var(--card); border: 1px solid var(--linea); border-radius: 16px;
  color: var(--hueso);
}
.promesa-puntos li::before {
  content: "→ ";
  color: var(--naranja); font-weight: 700;
}

/* cómo funciona el mes */
.pasos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px;
}
.pasos .card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin: 8px 0 8px; }
.pasos .card p { margin: 0; color: var(--muted); }
.pasos .card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.28);
}

/* grupo */
.grupo { max-width: 960px; }
.grupo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.grupo-grid .card:hover, .testi:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.28);
}
.grupo-grid p { margin: 0; color: var(--muted); }

/* testimonios */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.testi { margin: 0; }
.testi img {
  width: 56px; height: 56px; border-radius: 50%;
  margin-bottom: 14px; background: #2a2430;
}
.testi p { margin: 0 0 14px; color: var(--hueso); font-size: 1.02rem; line-height: 1.5; }
.testi cite { color: var(--muted); font-style: normal; font-size: 0.85rem; letter-spacing: 0.04em; }

/* ulises en página */
.ulises-page {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start;
}
.ulises-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ulises-chips button {
  background: transparent; color: var(--hueso);
  border: 1px solid var(--linea); border-radius: var(--pill);
  padding: 10px 14px; cursor: pointer; font-size: 0.88rem; font-weight: 500;
  min-height: 44px;
  transition: border-color .2s, color .2s;
}
.ulises-chips button:hover { border-color: var(--naranja); color: #fff; }
.ulises-inline {
  background: var(--noche-2); border: 1px solid var(--linea);
  border-radius: 20px; height: 480px;
  display: flex; flex-direction: column; overflow: hidden;
}
.ulises-inline header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--linea); flex-shrink: 0;
}
.ulises-inline header img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%;
  filter: contrast(1.15) saturate(0.4);
}
.ulises-inline header strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.ulises-inline header small { color: var(--muted); }
.ulises-inline .ulises-log { flex: 1; }
.cta-final { padding: 48px 0 88px; text-align: center; }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.benefits .card { padding: 24px; display: flex; flex-direction: column; }
.card-libro {
  display: flex; justify-content: center; align-items: flex-end;
  background: #070b14; border-radius: 14px;
  padding: 22px 16px 0; margin: -24px -24px 20px;
  min-height: 240px;
}
.card-libro img {
  width: auto; height: 220px;
  object-fit: contain; filter: none;
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
}
.card-nolan {
  margin: -24px -24px 20px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1c16;
}
.card-nolan img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 42% 22%;
  filter: saturate(0.88) contrast(1.08);
}
.card-triptico {
  margin: -24px -24px 20px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1612;
}
.card-triptico img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.82) contrast(1.1) brightness(0.92);
}
.benefits h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin: 0 0 8px; }
.benefits p { color: var(--muted); margin: 0; }
.benefits .card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.card-nolan img, .card-triptico img {
  transition: transform 1s var(--ease);
}
.benefits .card:hover .card-nolan img,
.benefits .card:hover .card-triptico img { transform: scale(1.05); }
.benefits .card:hover .card-libro img { transform: translateY(-6px); }
.card-libro img { transition: transform .5s var(--ease); }

/* mapa */
.mapa-block {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
  background: var(--card); border: 1px solid var(--linea); border-radius: 28px; padding: 22px;
}
.mapa-fig {
  aspect-ratio: 16 / 10;
  height: auto;
  background: #d9cbb0;
}
.mapa-fig img {
  object-fit: contain;
  filter: contrast(1.04) saturate(0.88) brightness(1);
}
.mapa-block p { color: var(--muted); }

/* recorrido */
.encuentro {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--linea);
  transition: transform .4s var(--ease);
}
.encuentro:last-child { border-bottom: 0; }
.encuentro figure {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
}
.encuentro figure img { transition: transform .9s var(--ease); }
.encuentro:hover figure img { transform: scale(1.05); }
.encuentro .frame-marmol img { object-position: 50% 12%; }
.encuentro .frame-vaso img { object-position: 50% 40%; }
.encuentro .frame-obra img { object-position: 50% 40%; }
.encuentro time { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--naranja); font-weight: 700; }
.encuentro h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; margin: 6px 0 10px; }
.encuentro p { margin: 0; color: var(--muted); }

/* objeciones */
.obj { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.obj .card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.28);
}
.obj h3 { font-size: 1.08rem; margin: 0 0 8px; }
.obj p { margin: 0; color: var(--muted); }

/* precio */
.precio-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--linea);
  border-radius: 28px; padding: 48px 36px 40px;
}
.precio-nums { margin: 8px 0 6px; }
.precio-card .tachado, .resultado .tachado { color: var(--muted); text-decoration: line-through; font-size: 1.35rem; margin-right: 10px; }
.precio-card .ahora { font-family: var(--serif); font-size: clamp(2.8rem, 8vw, 4.4rem); font-weight: 700; }
.precio-cuotas { margin: 0 0 28px; font-weight: 600; color: var(--hueso); }
.precio-garantia {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 0;
  max-width: 280px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.precio-garantia svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--naranja);
}
.ya-estan { margin: 0 0 24px; }
.ya-estan p { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.ya-estan strong { color: var(--hueso); }
.avatars {
  display: flex; justify-content: center; align-items: center;
}
.avatars img {
  width: 40px; height: 40px; border-radius: 50%;
  margin-left: -10px;
  border: 2px solid var(--card);
  background: #2a2430;
  object-fit: cover;
}
.avatars img:first-child { margin-left: 0; }

/* faq */
.faqs { max-width: 760px; }
.faqs details { border-bottom: 1px solid var(--linea); }
.faqs summary {
  cursor: pointer; padding: 18px 0; font-size: 1.08rem; list-style: none;
  transition: color .2s;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs details[open] summary { color: var(--naranja); }
.faqs p { color: var(--muted); margin: 0 0 18px; animation: rise .4s var(--ease) both; }
.edicion {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center;
  margin-top: 36px; background: var(--card); border: 1px solid var(--linea);
  border-radius: 20px; padding: 20px;
}
.edicion img {
  width: 140px; height: auto;
  border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.edicion p { color: var(--muted); margin: 0; }

/* cierre */
.cierre {
  position: relative; min-height: 78vh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
}
.cierre-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,18,32,.55) 0%, rgba(11,18,32,.35) 40%, rgba(11,18,32,.88) 100%),
    url("/img/turner.jpg") center 40% / cover no-repeat;
  filter: saturate(0.8) contrast(1.15) brightness(0.78);
}
.cierre-inner { position: relative; z-index: 1; padding: 80px 20px; }
.cierre h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3.3rem); line-height: 1.18; margin: 0 0 28px;
}
.cierre em { color: var(--naranja); font-style: italic; }
.cierre .credito {
  margin-top: 28px; font-size: 0.72rem; letter-spacing: 0.08em;
  color: rgba(248,244,239,.55);
}

/* pie */
footer {
  border-top: 1px solid var(--linea);
  padding: 28px 20px 24px;
}
.pie {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
}
.pie-escuela,
.pie-tech {
  width: auto;
  opacity: 0.9;
}
.pie-escuela { height: 32px; }
.pie-tech { height: 14px; }
.pie-cruz {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.7;
}

/* sticky */
.sticky {
  position: sticky; bottom: 0; z-index: 40;
  background: rgba(11,18,32,.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--linea);
  padding: 12px 22px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.sticky p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.sticky-right { display: flex; align-items: center; gap: 16px; }
.sticky-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.sticky strong { color: var(--hueso); font-size: 1.05rem; }
.sticky-price span { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.sticky .btn { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; white-space: nowrap; }

/* quiz */
.quiz { max-width: 720px; }
.paso-n { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.quiz h3 { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 500; }
.ops { display: grid; gap: 10px; margin: 24px 0; }
.ops button {
  text-align: left; background: var(--card); color: inherit;
  border: 1px solid var(--linea); border-radius: 14px;
  padding: 16px 18px; cursor: pointer; min-height: 52px;
  transition: border-color .2s, background .2s, transform .25s var(--ease);
}
.ops button:hover { border-color: var(--naranja); background: rgba(249,115,22,.08); transform: translateX(4px); }
.ops button.on { border-color: var(--naranja); background: rgba(249,115,22,.14); transform: translateX(4px); }
.libre {
  width: 100%; background: var(--card); color: inherit;
  border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px;
}
.quiz-nav { display: flex; gap: 12px; }
.resultado {
  background: var(--card); border: 1px solid var(--linea);
  border-radius: 24px; overflow: hidden;
}
.resultado-foto { height: auto; aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.resultado-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  filter: saturate(0.8) contrast(1.12) brightness(0.82);
}
.credito-foto {
  position: absolute; left: 12px; bottom: 8px;
  font-size: 0.65rem; letter-spacing: 0.04em; color: rgba(248,244,239,.75);
}
.resultado-body { padding: 28px; }
.resultado h3 { margin-top: 0; }
.countdown { font-family: var(--serif); font-size: 2rem; color: var(--naranja); }

/* modal */
.overlay {
  position: fixed; inset: 0; background: rgba(5,8,16,.78); z-index: 80;
  display: flex; justify-content: center; align-items: flex-start;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s;
}
.overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal {
  width: min(440px, 100%);
  max-height: calc(
    100vh
    - max(32px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 16px)
  );
  max-height: calc(
    100dvh
    - max(32px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 16px)
  );
  margin-block: auto;
  background: var(--noche-2); color: var(--hueso);
  padding: 28px 24px 24px; border: 1px solid var(--linea); border-radius: 24px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px) scale(.97);
  transition: transform .45s var(--ease);
  box-sizing: border-box;
}
.overlay.open .modal { transform: none; }
.modal h3 { font-family: var(--serif); font-size: clamp(1.35rem, 4vw, 1.7rem); margin: 8px 0 6px; padding-right: 36px; }
.modal-sub { color: var(--muted); margin: 0 0 8px; }
.modal-cuotas { margin: 0 0 4px; font-size: 0.92rem; font-weight: 600; }
.modal .kicker { padding-right: 36px; }
.modal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  background: var(--noche-2);
  border: 0;
  border-radius: 12px;
  color: var(--hueso);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal .close:hover { color: var(--naranja); }
.modal label { display: block; font-size: 0.82rem; color: var(--muted); margin: 12px 0 6px; }
.modal input:not([type="checkbox"]) {
  width: 100%; padding: 12px 14px; background: var(--noche);
  border: 1px solid var(--linea); color: var(--hueso); border-radius: 12px;
  box-sizing: border-box;
}
.modal-acc {
  margin: 14px 0 4px;
  border: 1px solid var(--linea);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.modal-acc + .modal-acc { margin-top: 8px; }
.modal-acc > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  user-select: none;
  transition: color .2s, background .2s;
}
.modal-acc > summary::-webkit-details-marker { display: none; }
.modal-acc > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.4em;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hueso);
  line-height: 1;
  transition: transform .25s var(--ease);
}
.modal-acc[open] > summary {
  color: var(--hueso);
  border-bottom: 1px solid var(--linea);
}
.modal-acc[open] > summary::after {
  content: "−";
}
.modal-acc > summary:hover { color: var(--hueso); background: rgba(255, 255, 255, 0.03); }
.modal-acc > summary span { color: var(--muted); font-weight: 400; }
.modal-acc-body { padding: 12px 14px 14px; }
.modal-coupon-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.modal-coupon-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.modal-coupon-row #ck-coupon-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  color: var(--hueso);
  border: 1px solid var(--linea);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.modal-coupon-row #ck-coupon-btn:hover {
  border-color: var(--naranja);
  color: var(--naranja);
}
.modal-acc #ck-coupon-msg { margin: 8px 0 0; font-size: 0.86rem; }
.pays { display: grid; gap: 8px; margin-top: 18px; }
.pays button {
  min-height: 48px; background: var(--naranja); color: #fff;
  border: 0; cursor: pointer; font-weight: 700; border-radius: var(--pill);
  transition: background .2s, transform .2s var(--ease);
}
.pays button:hover { transform: translateY(-1px); }
.pays button.alt {
  background: transparent; color: var(--hueso); border: 1px solid var(--linea);
}
.err { color: var(--naranja); font-size: 0.9rem; }

/* chat */
.ulises-btn {
  position: fixed; z-index: 75;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(84px, calc(72px + env(safe-area-inset-bottom)));
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid var(--naranja); padding: 0; overflow: hidden;
  cursor: pointer; background: #1a1612;
  transition: transform .3s var(--ease), opacity .3s;
  animation: pulseRing 3.2s ease-out infinite;
}
.ulises-btn:hover { transform: scale(1.06); }
.ulises-btn img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  filter: contrast(1.15) saturate(0.4);
}
.ulises-panel {
  position: fixed; right: 16px; bottom: 156px; z-index: 75;
  width: min(380px, calc(100vw - 24px)); height: min(520px, 70vh);
  background: var(--noche-2); border: 1px solid var(--linea);
  border-radius: 20px; display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .4s var(--ease), visibility .35s;
}
.ulises-panel.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
}
.ulises-panel header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--linea); flex-shrink: 0;
}
.ulises-panel header img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%;
  filter: contrast(1.15) saturate(0.4);
}
.ulises-panel header > div { flex: 1; min-width: 0; }
.ulises-panel header strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.ulises-panel header small { color: var(--muted); }
.ulises-close {
  flex-shrink: 0; width: 44px; height: 44px; margin: -6px -8px -6px 0;
  background: none; border: 0; color: var(--hueso);
  font-size: 28px; line-height: 1; cursor: pointer; opacity: 0.7;
}
.ulises-log {
  flex: 1; overflow: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  -webkit-overflow-scrolling: touch;
}
.bubble { max-width: 90%; padding: 10px 12px; font-size: 0.95rem; line-height: 1.45; border-radius: 14px; animation: rise .35s var(--ease) both; }
.bubble.u { align-self: flex-end; background: rgba(249,115,22,.18); }
.bubble.a { align-self: flex-start; background: rgba(248,244,239,.08); }
.bubble.typing {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; opacity: 1; letter-spacing: 0;
}
.ulises-escribiendo {
  font-size: 0.82rem; color: var(--muted); font-weight: 500;
}
.dots { display: flex; align-items: center; gap: 5px; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hueso);
  opacity: 0.28;
  animation: ulisesDot 1.05s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: .16s; }
.dots i:nth-child(3) { animation-delay: .32s; }
@keyframes ulisesDot {
  0%, 70%, 100% { transform: translateY(0); opacity: .28; }
  35% { transform: translateY(-5px); opacity: 1; }
}
.bubble.streaming::after {
  content: "▍";
  color: var(--naranja);
  margin-left: 2px;
  animation: ulisesCaret .9s step-end infinite;
}
@keyframes ulisesCaret {
  50% { opacity: 0; }
}
.ulises-form {
  display: flex; gap: 8px;
  padding: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea); flex-shrink: 0;
}
.ulises-form input {
  flex: 1; min-width: 0; padding: 10px 12px; background: var(--noche);
  border: 1px solid var(--linea); color: var(--hueso); border-radius: 12px;
  font-size: 16px;
}
.ulises-form button {
  background: var(--naranja); color: #fff; border: 0; padding: 0 16px;
  min-height: 44px; cursor: pointer; font-weight: 700; border-radius: var(--pill);
}
.ulises-form button:disabled { opacity: .55; cursor: default; }
body.ulises-open { overflow: hidden; }

/* motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
}
@keyframes waveShift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-22px); }
}
@keyframes boatBob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -7px); }
}
@keyframes moonGlow {
  0%, 100% { opacity: .28; }
  50% { opacity: .55; }
}
.hero-inner > * { animation: rise .85s var(--ease) both; }
.hero-inner .kicker { animation-delay: .06s; }
.hero-inner h1 { animation-delay: .16s; }
.hero-inner .lead { animation-delay: .3s; }
.hero-inner .meta { animation-delay: .42s; }
.hero-inner .hero-ctas { animation-delay: .54s; }
.hero-sea .w1 { animation: waveShift 14s ease-in-out infinite; }
.hero-sea .w2 { animation: waveShift 11s ease-in-out infinite reverse; }
.hero-sea .w3 { animation: waveShift 17s ease-in-out infinite; }
.hero-sea .hero-boat { animation: boatBob 7s ease-in-out infinite; }
.hero-sea .moon-ring { animation: moonGlow 6s ease-in-out infinite; }
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.benefits .card.reveal.in:hover {
  transform: translateY(-6px);
}
.obj .card.reveal.in:hover {
  transform: translateY(-4px);
}
#quiz-root { transition: opacity .28s var(--ease), transform .28s var(--ease); }
#quiz-root.quiz-leave { opacity: 0; transform: translateY(10px); }
#quiz-root.quiz-enter { animation: rise .5s var(--ease) both; }
.sticky {
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cierre-bg { transition: transform 8s linear; }
.cierre:hover .cierre-bg { transform: scale(1.04); }
.pie img { transition: opacity .3s; }
.pie img:hover { opacity: 1; }
.nav-menu a, .btn, input, summary { -webkit-tap-highlight-color: transparent; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 960px) {
  .nav.nav-hide { transform: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: flex;
    position: fixed;
    inset: calc(64px + env(safe-area-inset-top, 0px)) 0 0 0;
    background: rgba(11, 18, 32, 0.97);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 12px 24px 40px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .35s var(--ease), transform .4s var(--ease), visibility .35s;
  }
  body.nav-open .nav-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { transform: none; }
  body.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .nav-menu a {
    font-family: var(--serif);
    font-size: 1.55rem;
    color: var(--hueso);
    padding: 14px 0;
    border-bottom: 1px solid var(--linea);
    white-space: normal;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s var(--ease), transform .45s var(--ease), color .2s;
  }
  .nav-menu a::after { display: none; }
  body.nav-open .nav-menu a { opacity: 1; transform: none; }
  body.nav-open .nav-menu a:nth-child(1) { transition-delay: .04s; }
  body.nav-open .nav-menu a:nth-child(2) { transition-delay: .08s; }
  body.nav-open .nav-menu a:nth-child(3) { transition-delay: .12s; }
  body.nav-open .nav-menu a:nth-child(4) { transition-delay: .16s; }
  body.nav-open .nav-menu a:nth-child(5) { transition-delay: .2s; }
  body.nav-open .nav-menu a:nth-child(6) { transition-delay: .24s; }
  body.nav-open .nav-menu a:nth-child(7) { transition-delay: .28s; }
  body.nav-open .nav-menu a:nth-child(8) { transition-delay: .32s; }
  .nav-menu a.nav-cta {
    font-family: var(--sans);
    font-size: 1rem;
    margin-top: 22px;
    justify-content: center;
    border-bottom: 0;
    min-height: 52px;
    padding: 14px 28px;
  }
}

@media (max-width: 800px) {
  .guia, .benefits, .obj, .edicion, .mapa-block, .encuentro,
  .pasos, .grupo-grid, .testis, .ulises-page { grid-template-columns: 1fr; }
  .ulises-inline { height: 420px; }
  .encuentro figure { max-width: none; }
  .hero { min-height: 86vh; }
  .hero-inner { padding: 96px 0 120px; }
  .hero-sea { height: 42%; }
  .hero .meta {
    flex-direction: column;
    gap: 6px;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    margin-bottom: 26px;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 14px;
  }
  .hero-ctas .btn-ghost { font-size: 0.92rem; }

  /* sticky compacto: precio + CTA en una fila */
  .sticky {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .sticky > p { display: none; }
  .sticky-right {
    flex: 1;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }
  .sticky-price { align-items: flex-start; }
  .sticky .btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* FAB arriba del sticky (~64px + safe area) */
  .ulises-btn {
    width: 56px;
    height: 56px;
    bottom: max(78px, calc(64px + env(safe-area-inset-bottom) + 12px));
  }
  body.ulises-open .ulises-btn,
  body.ulises-open .sticky { visibility: hidden; pointer-events: none; }
  .ulises-panel {
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    right: auto; bottom: auto;
    border-radius: 0;
    border: 0;
    transform: translateY(10px);
    transform-origin: center bottom;
  }

  /* que el pie no quede bajo el sticky */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .precio-card { padding: 36px 22px 32px; }
  .avatars img { width: 34px; height: 34px; margin-left: -12px; }
  .card-libro { min-height: 200px; }
  .card-libro img { height: 180px; width: auto; }

  /* checkout modal: caber entero en pantallas bajas / teclado */
  .overlay {
    padding:
      max(12px, env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
  }
  .modal {
    padding: 22px 18px 18px;
    border-radius: 20px;
    max-height: calc(
      100vh
      - max(24px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 8px)
    );
    max-height: calc(
      100dvh
      - max(24px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 8px)
    );
  }
  .modal .kicker { margin-bottom: 8px; padding-right: 40px; }
  .modal .close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
  .modal label { margin: 10px 0 5px; }
  .modal input:not([type="checkbox"]) { padding: 11px 12px; }
  .pays { margin-top: 14px; gap: 7px; }
  .pays button { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .nav.nav-hide { transform: none; }
  .overlay { opacity: 1; }
  .ulises-btn { animation: none; }
}
