/* MiFiesta — landing "Noche de gala". Criterio vigente y revisable: ver DESIGN.md. */
:root {
  --night: #150c19;
  --night-2: #2b1a31;
  --night-3: #1d1222;
  --ivory: #f3ebe0;
  --ivory-soft: #c4b6c4;
  --gold: #d9bd85;
  --gold-deep: #6e5428;
  --blush: #ec6a8d;
  --blush-paper: #b03257;
  --ink: #1d1420;
  --line: rgba(217, 189, 133, .22);
  --line-ivory: rgba(29, 20, 32, .14);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --d-1: 160ms; --d-2: 240ms; --d-3: 420ms; --d-4: 900ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec-y: clamp(96px, 14vw, 180px);
  --z-nav: 20; --z-wa: 25; --z-intro: 100; --z-skip: 110;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body.g-body {
  margin: 0;
  background: var(--night);
  background-image: radial-gradient(120% 70% at 80% 0%, var(--night-2) 0%, rgba(43, 26, 49, 0) 60%),
    radial-gradient(80% 50% at 0% 40%, rgba(43, 26, 49, .55) 0%, rgba(43, 26, 49, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ivory);
  font: 400 17px/1.6 var(--f-text);
  overflow-x: clip;
}
/* Grano de papel: capa fija, sin eventos, fuera del flujo */
body.g-body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
a { color: inherit; }
main { position: relative; z-index: 2; }

.g-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-skip { position: fixed; left: 16px; top: 12px; z-index: var(--z-skip); background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 999px; transform: translateY(-160%); }
.g-skip:focus-visible { transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
.g-eyebrow { font: 500 11px/1.4 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.g-h1, .g-h2, .g-h3 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
.g-h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.015em; }
.g-h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.01em; }
.g-h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.g-h1 em, .g-h2 em, .g-h3 em { font-style: italic; }
.g-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ivory-soft); max-width: 46ch; margin: 0; text-wrap: pretty; }
.g-ic { width: 1em; height: 1em; flex: none; }

/* ---------- Logotipo: símbolo original + nombre en Bodoni itálica, sobre halo claro difuso ---------- */
.g-logo { position: relative; display: inline-flex; align-items: center; gap: 0; text-decoration: none; isolation: isolate;
  font: italic 400 26px/1 var(--f-display); letter-spacing: -.005em; color: var(--ivory); }
.g-logo::before { content: ""; position: absolute; z-index: -1; left: -30px; top: 50%; width: 104px; height: 104px; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 243, 232, .78) 0%, rgba(250, 243, 232, .46) 26%, rgba(250, 243, 232, .12) 52%, rgba(250, 243, 232, 0) 72%);
  pointer-events: none; }
.g-logo img { width: 40px; height: 40px; margin-right: 10px; }
.g-logo span { color: var(--blush); font-style: italic; }

/* ---------- Botones ---------- */
.g-btn { display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 24px; border-radius: 999px; background: var(--gold); color: var(--night);
  font: 500 15px/1 var(--f-text); text-decoration: none; letter-spacing: .01em; white-space: nowrap;
  transition: transform var(--d-1) var(--ease-out), background-color var(--d-2) ease; }
.g-btn-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--gold); font-size: 16px;
  transition: transform var(--d-2) var(--ease-out); }
.g-btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .g-btn:hover { background: #e6cc96; }
  .g-btn:hover .g-btn-ic { transform: translate(2px, -2px) scale(1.05); }
}
.g-btn-sm { padding: 6px 6px 6px 18px; font-size: 14px; gap: 10px; }
.g-btn-sm .g-btn-ic { width: 28px; height: 28px; font-size: 14px; }
.g-link { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; font-size: 15px;
  transition: border-color var(--d-2) ease; }
@media (hover: hover) and (pointer: fine) { .g-link:hover { border-color: var(--gold); } }

/* ---------- Nav ---------- */
.g-nav { position: sticky; top: 0; z-index: var(--z-nav); }
.g-nav::before { content: ""; position: absolute; inset: 0; background: rgba(21, 12, 25, .94); border-bottom: 1px solid var(--line); }
/* Blur sólo donde sobra GPU: en celulares la barra es opaca */
@media (min-width: 900px) and (hover: hover) {
  .g-nav::before { background: rgba(21, 12, 25, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.g-nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.g-nav-links { display: flex; gap: 30px; font-size: 14px; letter-spacing: .03em; }
.g-nav-links a { text-decoration: none; color: var(--ivory-soft); transition: color var(--d-2) ease; }
@media (hover: hover) and (pointer: fine) { .g-nav-links a:hover { color: var(--ivory); } }
.g-only-narrow { display: none; }
.g-nav-act { display: flex; align-items: center; gap: 10px; }
.g-pause[hidden] { display: none; }
.g-pause { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--ivory-soft); font-size: 15px; cursor: pointer; transition: border-color var(--d-2) ease, color var(--d-2) ease; }
@media (hover: hover) and (pointer: fine) { .g-pause:hover { border-color: var(--gold); color: var(--gold); } }
.g-pause-on, .g-pause-off { display: contents; }
.g-pause[aria-pressed="false"] .g-pause-off, .g-pause[aria-pressed="true"] .g-pause-on { display: none; }
@media (max-width: 860px) { .g-nav-links { display: none; } }
@media (max-width: 420px) {
  .g-only-wide { display: none; }
  .g-only-narrow { display: inline; }
  .g-logo { font-size: 22px; }
  .g-logo img { width: 34px; height: 34px; }
  .g-btn-sm { padding-left: 14px; font-size: 13px; }
}

/* ---------- Secciones (base) ---------- */
.g-sec { position: relative; padding-block: var(--sec-y); }
.g-hero { position: relative; overflow-x: clip; padding-block: clamp(40px, 6vw, 84px) clamp(72px, 10vw, 140px); }

/* ---------- Hero ---------- */
.g-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.g-hero-copy { min-width: 0; }
.g-hero-copy .g-eyebrow { margin: 0 0 26px; }
.g-hero .g-h1 { max-width: 17ch; font-size: clamp(40px, 5.4vw, 80px); }
.g-rot { display: grid; margin-top: .12em; height: 1.12em; overflow: hidden; color: var(--gold); font-style: italic; }
.g-rot span { grid-area: 1 / 1; white-space: nowrap; }
.g-rot span + span { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .g-rot span { opacity: 0; transform: translateY(100%); animation: g-rot 12.5s var(--ease-out) infinite; }
  /* Un solo ciclo para todos, corrido .5 s: a t=0 el primero ya está entero (el LCP no espera) */
  .g-rot span { animation-delay: calc(var(--i, 0) * 2.5s - .5s); }
}
@keyframes g-rot { 0% { opacity: 0; transform: translateY(100%); } 4%, 18% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: translateY(-100%); } }
.g-hero .g-lead { margin-top: 28px; }
.g-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 36px; }
.g-hero-stage { position: relative; min-width: 0; justify-self: center; width: 100%; max-width: 460px; }
.g-hero-glow { position: absolute; inset: -18% -12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(217, 189, 133, .18), rgba(217, 189, 133, 0) 62%); }
@media (max-width: 900px) {
  .g-hero-grid { grid-template-columns: 1fr; }
  .g-hero-stage { max-width: 340px; order: 2; }
}
@media (max-width: 400px) { .g-rot { font-size: .86em; } }

/* ---------- Sobre (póster en CSS; el clímax 3D lo reemplaza más abajo) ---------- */
/* Texturas en SVG: fibra de papel en relieve (luz difusa sobre ruido) y hebras largas de algodón */
:root {
  --tx-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='1.4'%3E%3CfeDistantLight azimuth='135' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --tx-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .32' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .55 0 0 0 0 .45 0 0 0 -2.4 1.02'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23d9bd85' stroke-opacity='.32' stroke-width='.8'%3E%3Cpath d='M18 4c4 5 4 9 0 14-4-5-4-9 0-14zM18 18c4 5 4 9 0 14-4-5-4-9 0-14zM4 18c5-4 9-4 14 0-5 4-9 4-14 0zM18 18c5-4 9-4 14 0-5 4-9 4-14 0z'/%3E%3Ccircle cx='18' cy='18' r='1.4' fill='%23d9bd85' fill-opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
}
.g-env { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.g-env-back, .g-env-front { position: absolute; left: 4%; right: 4%; top: 32%; bottom: 12%; border-radius: 5px; }
.g-env-back { overflow: hidden; background: #241629; box-shadow: 0 60px 90px -36px rgba(0, 0, 0, .8), 0 2px 0 rgba(0, 0, 0, .25); }
/* Forro interior con patrón dorado: se ve arriba, detrás de la tarjeta */
.g-env-liner { position: absolute; left: 3%; right: 3%; top: 3%; height: 62%; border-radius: 3px;
  background: var(--tx-damask) 0 0 / 36px 36px, linear-gradient(180deg, #3b2442, #2b1a31); box-shadow: inset 0 10px 18px rgba(0, 0, 0, .45); }
/* Papel del sobre: color + fibra + relieve, con la luz desde arriba a la izquierda */
.g-env-front, .g-env-flap {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .22)), var(--tx-paper) 0 0 / 240px, #3b2442;
  background-blend-mode: normal, multiply, normal;
}
.g-env-front { clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); }
/* Pliegues: sombra suave a lo largo de los dobleces en V */
.g-env-front::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, rgba(0, 0, 0, 0) 49.2%, rgba(0, 0, 0, .28) 50%, rgba(255, 255, 255, .05) 50.8%, rgba(0, 0, 0, 0) 53%) left bottom / 50% 100% no-repeat,
              linear-gradient(to top left, rgba(0, 0, 0, 0) 49.2%, rgba(0, 0, 0, .28) 50%, rgba(255, 255, 255, .05) 50.8%, rgba(0, 0, 0, 0) 53%) right bottom / 50% 100% no-repeat; }
.g-env-flap { position: absolute; left: 4%; right: 4%; bottom: 68%; height: 24%; clip-path: polygon(0 100%, 50% 0, 100% 100%); transform-origin: 50% 100%;
  filter: brightness(.82); }
/* Bolsillo: recorta en el borde inferior del sobre, así las tarjetas entran y salen de verdad */
.g-env-pocket { position: absolute; left: 0; right: 0; top: -40%; bottom: calc(12% + 6px); overflow: hidden; } /* corta 6px por encima del borde: el frente lo tapa entero */
.g-env-card { position: absolute; left: 22%; right: 22%; top: 34%; height: 62%; display: grid; place-items: start center; text-align: center; padding: 11% 16px 16px;
  color: var(--ink); border-radius: 2px; transform: rotate(-2.5deg);
  background: var(--tx-fiber) 0 0 / 320px, var(--tx-paper) 0 0 / 240px, radial-gradient(120% 90% at 25% 10%, #fffdf8 0%, #f6efe4 55%, #ebe2d4 100%);
  background-blend-mode: multiply, soft-light, normal;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -1px 0 rgba(0, 0, 0, .06) inset,
              0 2px 3px rgba(20, 10, 25, .25), 0 18px 34px -12px rgba(10, 5, 15, .65); }
/* Marco con filete dorado, como el borde impreso de una tarjeta */
.g-env-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(166, 128, 66, .55); border-radius: 1px; pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(255, 250, 240, .5), inset 0 0 0 4px rgba(166, 128, 66, .3); }
.g-env-card + .g-env-card { opacity: 0; }
.g-env-card small { display: block; font: 500 8.5px/1.3 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.g-env-card strong { display: block; font: italic 400 clamp(28px, 3.1vw, 40px)/1.05 var(--f-display); text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.g-env-card span { display: block; font: 500 9.5px/1.4 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-top: 12px; }
/* Cada tarjeta con la letra de su evento (la caligráfica sólo vive en las tarjetas) */
.g-card-script strong { font: 400 clamp(36px, 4vw, 52px)/1 "Pinyon Script", var(--f-display); }
.g-card-caps strong { font: 500 clamp(17px, 1.9vw, 24px)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .1em; }
/* Oro estampado (foil): degradé metálico recortado al texto */
.g-card-caps strong, .g-card-serif strong {
  background: linear-gradient(100deg, #5e4012 0%, #9a7330 22%, #d6b46a 38%, #86622a 55%, #b8914a 72%, #5f4417 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)) drop-shadow(0 -.5px 0 rgba(90, 60, 20, .35)); }
.g-env-seal { position: absolute; left: 50%; top: 55%; width: 72px; height: 72px; margin-left: -36px; overflow: visible;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)) drop-shadow(0 0 22px rgba(217, 189, 133, .18)); }
@media (prefers-reduced-motion: no-preference) {
  /* Al cargar: se abre la solapa y la tarjeta sube desde el sobre */
  .g-env-flap { animation: g-flap .7s var(--ease-out) .1s both; }
  /* Después, una tarjeta por evento: mismo ciclo y mismas demoras que el titular rotativo.
     Sube, queda, y vuelve a entrar al bolsillo antes de que salga la siguiente. */
  .g-env-card { opacity: 0; animation: g-card 12.5s var(--ease-in-out) infinite; animation-delay: calc(var(--i, 0) * 2.5s - .5s); }
}
@keyframes g-flap { from { transform: scaleY(0); } to { transform: none; } }
@keyframes g-card {
  0% { opacity: 0; transform: translateY(78%) rotate(-1deg); }
  1% { opacity: 1; transform: translateY(78%) rotate(-1deg); }
  6%, 15% { opacity: 1; transform: rotate(-2.5deg); }
  19% { opacity: 1; transform: translateY(78%) rotate(-1deg); }
  20%, 100% { opacity: 0; transform: translateY(78%) rotate(-1deg); }
}

/* ---------- Entrada de primera visita "Se encienden las velas" (sólo con html.intro-on) ----------
   Coreografía en src/client/intro.js. Vela: "Candle" de Uiverse.io por youranonone10 (MIT,
   github.com/uiverse-io/galaxy, loaders/youranonone10_tough-moth-23.html), en cera marfil, con estado apagado
   y escala por profundidad. Si intro.js no llega a correr, la capa se va sola a los 2 s. */
.g-intro { display: none; }
html.intro-on .g-intro {
  display: block; position: fixed; inset: 0; z-index: var(--z-intro); overflow: hidden;
  animation: g-intro-out .4s ease 1.6s both;
}
html.intro-on .g-intro.is-live { animation: none; }
html.intro-on.intro-skip .g-intro { animation: g-intro-out .3s var(--ease-out) both; }
/* el logo de la barra espera a que llegue el de la intro */
html.intro-on .g-nav .g-logo { opacity: 0; }
@keyframes g-intro-out { to { opacity: 0; visibility: hidden; } }

.g-intro-stage, .g-intro-scene { position: absolute; inset: 0; will-change: transform; } /* capas propias desde el inicio: la salida no las promueve a mitad de camino */
.g-intro-stage { overflow: hidden; }
.g-intro-scene { background: #0d0710; }
.g-intro-floor { position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 58%, rgba(70, 36, 62, .15), rgba(30, 15, 32, .12) 55%, #0d0710 100%); }
/* la luz del piso sube a medida que se encienden las velas: una capa encima que sólo cambia de opacidad */
.g-intro-amb { position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(70% 70% at 50% 58%, rgb(70, 36, 62), rgba(30, 15, 32, .8) 55%, #0d0710 100%); }
.g-intro-floor::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0d0710 0%, rgba(13, 7, 16, 0) 22%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .35) 100%); }
.g-intro-vig { position: absolute; inset: 0; z-index: 2500; background: radial-gradient(120% 90% at 50% 55%, transparent 55%, rgba(5, 2, 8, .75) 100%); }
.g-intro-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3000; }
.g-intro-pool { position: absolute; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 190, 110, .42), rgba(220, 130, 70, .16) 45%, rgba(0, 0, 0, 0) 100%); }
.g-intro-refl { position: absolute; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 236, 200, .55), rgba(255, 170, 80, .18) 55%, rgba(0, 0, 0, 0)); }

.g-c { position: absolute; width: 150px; height: 300px; transform-origin: 50% 100%; }
.g-c *, .g-c *::before, .g-c *::after { position: absolute; content: ""; }
/* Sin sombras con blur grande en la vela: con cien velas, redibujarlas en cada frame del encendido era lo que más
   pesaba. El volumen de la cera es un degradado; el resplandor naranja de la llama vive en .g-c-halo. */
.g-c-wax { bottom: 0; width: 150px; height: var(--ch, 170px); border-radius: 150px / 56px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .12) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .1) 72%, rgba(0, 0, 0, .5)),
    linear-gradient(#f6eadb, #e9d9c4 30%, #b9a48c 62%, #4a3a30 100%); }
.g-c-wax::before { width: 100%; height: 56px; border-radius: 50%; border: 2px solid #e2cfb6; background: radial-gradient(#fff3d6, #f1dfc6 45%, #e6d2b7 80%); }
.g-c-wax::after { width: 34px; height: 12px; left: 50%; transform: translateX(-50%); border-radius: 50%; top: 21px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, .35); background: radial-gradient(rgba(0, 0, 0, .45), transparent 45%); }
.g-c-wick { width: 6px; height: 36px; top: -12px; left: 50%; z-index: 1; border-radius: 40% 40% 0 0; transform: translateX(-50%);
  background: linear-gradient(#d6994a, #4b232c, #121212, black, #e8bb31 90%); }
.g-c-flame { width: 24px; height: 120px; left: 50%; bottom: calc(100% - 22px); transform-origin: 50% 100%; transform: translateX(-50%) scale(var(--f, 1));
  rotate: var(--lean, 0deg); border-radius: 50% 50% 20% 20%; background: linear-gradient(white 80%, transparent);
  animation: g-flick var(--fd, 1.3s) ease-in-out var(--fdl, 0s) infinite alternate; }
.g-c-flame::before { width: 100%; height: 100%; border-radius: 50% 50% 20% 20%; box-shadow: 0 0 15px 0 rgba(247, 93, 0, .4), 0 -6px 4px 0 rgba(247, 128, 0, .7); }
.g-c-glow { width: 26px; height: 60px; left: 50%; top: -40px; border-radius: 50% 50% 35% 35%; transform: translateX(-50%) scale(var(--f, 1));
  background: rgba(0, 133, 255, .7); box-shadow: inset 3px 0 2px 0 rgba(0, 133, 255, .6), inset -3px 0 2px 0 rgba(0, 133, 255, .6); }
.g-c-glow::before { width: 70%; height: 60%; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .35); }
/* halo de la llama: degradado en vez de filter: blur(60px), que con cien velas es caro de pintar */
.g-c-halo { width: 220px; height: 300px; left: 50%; top: -58%; margin-top: -60px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 150, 40, .95), rgba(240, 125, 20, .5) 35%, rgba(255, 122, 26, .18) 65%, rgba(255, 122, 26, 0)); opacity: calc(var(--f, 1) * .9); }
/* Apagada: la cera en penumbra (una capa oscura encima, más barata que un filter) y sin fuego */
.g-c-shade { inset: 0; border-radius: 150px / 56px; background: rgba(12, 6, 14, .8); display: none; }
.g-c-fire { inset: 0; }
.g-c.off .g-c-shade { display: block; }
.g-c.off .g-c-fire { display: none; }

/* La luz del piso y la entrada del logo: animaciones CSS desde .is-run (tiempos de intro.js: piso .5–2.15 s, logo 1.95–2.5 s) */
.g-intro.is-run .g-intro-amb { animation: g-in 1.65s cubic-bezier(.33, 1, .68, 1) .5s both; }
.g-intro.is-run .g-intro-logo { animation: g-logo-in .55s cubic-bezier(.33, 1, .68, 1) 1.95s both; }
@keyframes g-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-logo-in { from { opacity: 0; filter: blur(10px); translate: 0 14px; } to { opacity: 1; filter: none; translate: 0 0; } }
@keyframes g-flick { 0% { scale: 1 1; } 30% { scale: .97 1.04; } 55% { scale: 1.02 .96; } 80% { scale: .98 1.03; } 100% { scale: 1.01 .98; } }

.g-intro-logo { position: absolute; left: 50%; top: var(--ly, 36%); z-index: 3001; display: flex; align-items: center; gap: calc(14px * var(--ls, 1));
  transform: translate(-50%, -50%); font: italic 500 calc(66px * var(--ls, 1)) / 1 var(--f-display); color: var(--ivory); isolation: isolate; opacity: 0; }
.g-intro-logo::before { content: ""; position: absolute; z-index: -1; left: calc(-40px * var(--ls, 1)); top: 50%; width: calc(150px * var(--ls, 1)); height: calc(150px * var(--ls, 1));
  transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(243, 235, 224, .5), rgba(243, 235, 224, 0) 68%); transition: opacity .45s ease; }
.g-intro-logo.is-flying::before { opacity: 0; }
.g-intro-logo img { width: calc(82px * var(--ls, 1)); height: calc(82px * var(--ls, 1)); transform-origin: 0 0; }
/* el símbolo y el nombre ya son capas propias antes del viaje a la barra: no se promueven en el primer frame */
.g-intro-logo img, .g-intro-logo b { will-change: transform; }
.g-intro-logo b { font-weight: inherit; transform-origin: 0 50%; }
.g-intro-logo span { color: var(--blush); }

/* ---------- Manifiesto (Acto I) ---------- */
.g-manifest-text { margin: 0; max-width: 23em; font: 400 clamp(28px, 3.6vw, 52px)/1.24 var(--f-display); letter-spacing: -.005em; color: var(--ivory); text-wrap: pretty; }
.g-manifest-text em { font-style: italic; color: var(--gold); }

/* ---------- Plantillas (Acto II) ---------- */
.g-tpls-head { display: grid; gap: 18px; }
.g-tpls-lead { margin: 0; max-width: 52ch; color: var(--ivory-soft); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.g-gcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.g-gcats[hidden] { display: none; }
.g-gcats button { font: 500 14px/1 var(--f-text); color: var(--ivory-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; cursor: pointer;
  transition: color var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out), background-color var(--d-2) var(--ease-out); }
.g-gcats button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
@media (hover: hover) and (pointer: fine) { .g-gcats button:hover:not([aria-pressed="true"]) { color: var(--ivory); border-color: var(--gold); } }
.g-gcats button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Riel: grilla por defecto (sin JS, reduced-motion), carrusel nativo en touch, travelling en desktop (is-travel) */
.g-rail-view { margin-top: clamp(32px, 4vw, 56px); }
.g-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (hover: none) {
  .g-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-block: 14px 20px; overscroll-behavior-x: contain; }
  .g-rail > * { flex: 0 0 min(72vw, 270px); scroll-snap-align: start; }
}
.g-tpls.is-travel { min-height: 100vh; padding-block: clamp(40px, 7vh, 88px); display: flex; flex-direction: column; justify-content: center; }
.g-tpls.is-travel .g-rail-view { overflow: clip; }
.g-rail.is-travel { display: flex; width: max-content; max-width: none; gap: 44px; padding-block: 18px 22px;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.g-rail.is-travel > * { flex: 0 0 248px; }
/* Filtro por categoría (vale sin JS para la primera) */
.g-rail[data-cat="quince"] .g-tpl:not([data-show~="quince"]),
.g-rail[data-cat="egreso"] .g-tpl:not([data-show~="egreso"]),
.g-rail[data-cat="boda"] .g-tpl:not([data-show~="boda"]),
.g-rail[data-cat="infantil"] .g-tpl:not([data-show~="infantil"]),
.g-rail[data-cat="aniversario"] .g-tpl:not([data-show~="aniversario"]),
.g-rail[data-cat="empresarial"] .g-tpl:not([data-show~="empresarial"]),
.g-rail[data-cat="otros"] .g-tpl:not([data-show~="otros"]) { display: none; }

/* Tarjeta de papel: el papel toma el fondo de la plantilla; el filete, su acento; la composición, su hero */
/* relative: el texto .g-sr (absolute) de los links tiene que quedar dentro del carrusel, no estirar la sección */
.g-rail, .g-tpl { position: relative; }
.g-tpl { min-width: 0; }
.g-tpl-card { position: relative; aspect-ratio: 5 / 7; border-radius: 3px; overflow: hidden; color: var(--t-text); transform: rotate(var(--tilt, 0deg));
  background: var(--tx-fiber) 0 0 / 320px, var(--tx-paper) 0 0 / 240px,
    radial-gradient(120% 90% at 25% 8%, color-mix(in srgb, var(--t-surface) 75%, #fffdf8), color-mix(in srgb, var(--t-bg) 80%, #e9dfcf));
  background-blend-mode: multiply, soft-light, normal;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 3px rgba(20, 10, 25, .3), 0 22px 40px -14px rgba(8, 4, 12, .75);
  transition: transform var(--d-3) var(--ease-out), box-shadow var(--d-3) var(--ease-out); }
.g-tpl-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid color-mix(in srgb, var(--t-accent) 55%, transparent); border-radius: 2px; pointer-events: none; z-index: 2; }
@media (hover: hover) and (pointer: fine) {
  .g-tpl:hover .g-tpl-card { transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 3px rgba(20, 10, 25, .3), 0 34px 50px -16px rgba(8, 4, 12, .8); }
}
.g-tpl-face { position: absolute; display: grid; place-items: center; overflow: hidden; }
.g-tpl-face .sw-mascot svg { width: 74px; height: 74px; display: block; }
.g-tpl-face .sw-orn svg { width: 120px; height: 16px; display: block; }
.g-tpl-copy { position: absolute; left: 16px; right: 16px; bottom: 18px; text-align: center; z-index: 1; }
.g-tpl-name { margin: 0; font-size: 30px; font-weight: 400; line-height: 1.05; color: var(--t-accent); }
.g-tpl-copy p { margin: 8px 0 0; font: 400 12px/1.45 var(--f-text); color: color-mix(in srgb, var(--t-text) 78%, transparent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Composiciones (una por tipo de hero de la plantilla) */
.g-tpl[data-hero="arch"] .g-tpl-face { left: 16%; right: 16%; top: 9%; height: 50%; border-radius: 999px 999px 3px 3px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-surface) 70%, transparent), 0 0 0 5px color-mix(in srgb, var(--t-accent) 45%, transparent); }
.g-tpl[data-hero="circle"] .g-tpl-face { left: 50%; top: 10%; width: 58%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--t-surface) 75%, transparent), 0 0 0 6px color-mix(in srgb, var(--t-accent) 50%, transparent); }
.g-tpl[data-hero="full"] .g-tpl-face { inset: 0; }
.g-tpl[data-hero="full"] .g-tpl-copy { left: 14px; right: 14px; bottom: 14px; padding: 14px 12px 12px; border-radius: 2px; background: color-mix(in srgb, var(--t-surface) 88%, transparent); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }
.g-tpl[data-hero="split"] .g-tpl-face { left: 0; right: 0; top: 0; height: 58%; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
/* Links */
.g-tpl-links { display: flex; justify-content: center; gap: 22px; margin-top: 18px; font-size: 14px; }
.g-tpl-links a { color: var(--ivory-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out); }
.g-tpl-links a[data-link="use"] { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .g-tpl-links a:hover { color: var(--ivory); border-color: var(--gold); } }
/* Cierre del riel: todas las de ese tipo */
.g-tpl-all { aspect-ratio: 5 / 7; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 3px;
  color: var(--ivory); text-decoration: none; font: italic 400 26px/1.15 var(--f-display); padding: 24px; transition: border-color var(--d-2) var(--ease-out), background-color var(--d-2) var(--ease-out); }
.g-tpl-all b { font-weight: 400; color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .g-tpl-all:hover { border-color: var(--gold); background: rgba(217, 189, 133, .05); } }
.g-tpl-links a:focus-visible, .g-tpl-all:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Qué incluye (Acto II): escenas en un teléfono ---------- */
/* Por defecto (touch, reduced-motion, sin JS) cada escena va apilada con su pantalla. Con is-pinned (desktop),
   las pantallas se superponen dentro de un solo teléfono y la lista marca la escena activa. */
.g-features { --ph: min(600px, calc(100svh - 200px)); --pw: calc(var(--ph) * .49); }
.g-features .g-h2 { max-width: 16ch; }
.g-feat { margin-top: clamp(36px, 5vw, 64px); }
.g-scenes { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 80px); }
.g-scene { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .g-scene { grid-template-columns: 1fr; justify-items: center; } .g-scene-text { justify-self: stretch; } }
.g-scene-text { display: flex; gap: 16px; align-items: flex-start; max-width: 46ch; }
.g-scene-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); }
.g-scene-ic .g-ic { width: 22px; height: 22px; }
.g-scene-text h3 { margin: 6px 0 0; font: 400 clamp(22px, 2vw, 28px)/1.15 var(--f-display); color: var(--ivory); }
.g-scene-text p { margin: 10px 0 0; color: var(--ivory-soft); font-size: 16px; line-height: 1.6; }
.g-phone { display: none; }
.g-feat-note { margin: 32px 0 0; font-size: 13px; color: var(--ivory-soft); }

/* Pantalla: la plantilla de demo (variables --s-*) dentro de un marco de teléfono */
.g-screen { position: relative; width: min(280px, 78vw); min-height: 440px; padding-bottom: 8px; overflow: hidden; border-radius: 34px; border: 9px solid #120a14;
  background: var(--s-bg); color: var(--s-text); font: 400 13px/1.4 var(--s-body);
  box-shadow: 0 0 0 1px rgba(217, 189, 133, .18), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.g-scr-head { padding: 34px 18px 14px; text-align: center; border-bottom: 1px solid var(--s-line); }
.g-scr-kicker { display: block; font: 500 10px/1 var(--s-body); letter-spacing: .28em; text-transform: uppercase; color: var(--s-muted); }
.g-scr-title { display: block; margin-top: 6px; font: 400 44px/1.1 var(--s-script); color: var(--s-accent); }
.g-scr-body { display: grid; gap: 12px; padding: 18px; }
.g-scr-h { margin: 2px 0 0; font: 600 18px/1.2 var(--s-heading); text-align: center; }
.g-scr-field { padding: 10px 12px; border: 1px solid var(--s-line); border-radius: 8px; background: var(--s-surface); color: var(--s-muted); }
.g-scr-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-scr-choice span { padding: 9px 4px; border: 1px solid var(--s-line); border-radius: 999px; text-align: center; background: var(--s-surface); }
.g-scr-choice .is-on { background: var(--s-accent); border-color: var(--s-accent); color: #fff; }
.g-scr-row { display: flex; justify-content: space-between; padding: 2px 4px; color: var(--s-muted); }
.g-scr-row b { color: var(--s-text); }
.g-scr-btn { padding: 11px; border-radius: 999px; background: var(--s-accent); color: #fff; text-align: center; font-weight: 500; letter-spacing: .06em; }
.g-scr-btn-ghost { background: transparent; color: var(--s-accent); border: 1px solid var(--s-accent); }
.g-scr-note { margin: 0; text-align: center; font-size: 12px; color: var(--s-muted); }
.g-scr-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.g-scr-count span { display: grid; gap: 6px; padding: 14px 0 12px; border: 1px solid var(--s-line); border-radius: 10px; background: var(--s-surface); text-align: center;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-muted); }
.g-scr-count b { font: 600 26px/1 var(--s-heading); letter-spacing: 0; color: var(--s-text); }
.g-scr-orn { height: 1px; margin: 14px 30px 0; background: linear-gradient(90deg, transparent, var(--s-accent2), transparent); }
.g-scr-map { display: block; width: 100%; height: auto; border-radius: 10px; color: var(--s-text); }
.g-scr-time { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.g-scr-time li { display: flex; align-items: center; gap: 12px; }
.g-scr-time li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--s-accent2); }
.g-scr-time b { min-width: 40px; color: var(--s-accent); font-weight: 600; }
.g-scr-song { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--s-line); border-radius: 12px; background: var(--s-surface); color: var(--s-muted); }
.g-scr-song b { display: block; color: var(--s-text); font: 600 15px/1.2 var(--s-heading); }
.g-scr-play { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--s-accent); }
.g-scr-play::after { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.g-scr-list { list-style: none; margin: 0; padding: 0; }
.g-scr-list li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--s-line); }
.g-scr-list b { color: var(--s-accent); font-weight: 600; }
.g-scr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.g-scr-gallery i { aspect-ratio: 1; border-radius: 6px;
  background: linear-gradient(calc(var(--g) * 60deg + 20deg), var(--s-accent2), color-mix(in srgb, var(--s-accent) 55%, var(--s-bg))); }
.g-scr-quote { margin: 4px 0 0; padding: 14px; border: 1px solid var(--s-line); border-radius: 10px; background: var(--s-surface); text-align: center;
  font: italic 400 16px/1.35 var(--s-heading); }
.g-scr-quote cite { display: block; margin-top: 8px; font: normal 500 10px/1 var(--s-body); letter-spacing: .16em; text-transform: uppercase; color: var(--s-muted); }

/* Desktop con pin: un solo teléfono a la derecha, las pantallas encimadas adentro; título, lista y nota a la izquierda.
   .g-feat pasa a display: contents para que todo se ordene en la grilla del .g-wrap (y sus variables --s-* se heredan igual). */
.g-features.is-pinned { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 96px 32px; }
.g-features.is-pinned .g-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--pw); column-gap: clamp(40px, 6vw, 96px);
  align-content: center; min-height: var(--ph); }
.g-features.is-pinned .g-wrap > * { grid-column: 1; }
.g-features.is-pinned .g-h2 { font-size: clamp(30px, 3.2vw, 46px); max-width: 20ch; }
.g-feat.is-pinned { display: contents; }
.g-feat.is-pinned .g-scenes { grid-column: 1; gap: 2px; margin-top: 24px; }
.g-feat.is-pinned .g-scene { display: block; }
.g-feat.is-pinned .g-scene-text { padding: 10px 0; max-width: 52ch; opacity: .38; transition: opacity var(--d-3) var(--ease-out); }
.g-feat.is-pinned .g-scene-text h3 { margin-top: 2px; font-size: clamp(19px, 1.6vw, 23px); }
.g-feat.is-pinned .g-scene-text p { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.g-feat.is-pinned .g-scene-ic { width: 38px; height: 38px; }
.g-feat.is-pinned .g-scene.is-active .g-scene-text { opacity: 1; }
.g-feat.is-pinned .g-scene.is-active h3 { color: var(--gold); }
.g-features.is-pinned .g-feat-note { margin-top: 18px; }
.g-feat.is-pinned .g-screen { position: absolute; top: calc(50% - var(--ph) / 2 + 10px); right: calc(var(--gutter) + 10px); width: calc(var(--pw) - 20px); height: calc(var(--ph) - 20px);
  min-height: 0; border: 0; border-radius: 30px; box-shadow: none; }
.g-feat.is-pinned .g-phone { display: block; position: absolute; top: calc(50% - var(--ph) / 2); right: var(--gutter); width: var(--pw); height: var(--ph); z-index: 3; pointer-events: none;
  border: 10px solid #120a14; border-radius: 40px; box-shadow: 0 0 0 1px rgba(217, 189, 133, .22), 0 40px 80px -24px rgba(0, 0, 0, .8); }
.g-feat.is-pinned .g-phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 999px; background: #120a14; }

/* ---------- Clímax: el sobre que se abre ---------- */
/* Sin JS se ve la demo en el teléfono. Con JS (is-staged) aparece el sobre (CSS o 3D) y la demo llega al final. */
.g-climax-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .g-climax-in { grid-template-columns: 1fr; } }
.g-climax-copy .g-eyebrow { margin: 0 0 20px; }
.g-climax-lead { margin: 22px 0 28px; max-width: 40ch; color: var(--ivory-soft); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.g-climax-stage { position: relative; display: grid; place-items: center; min-width: 0; }
.g-climax-stage > * { grid-area: 1 / 1; }
.g-climax-art { display: none; position: relative; width: min(520px, 100%); aspect-ratio: 1; }
.g-climax.is-staged .g-climax-art { display: block; }
.g-climax-poster { position: absolute; inset: 0; }
.g-climax-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
/* El sobre del hero, quieto y con una sola tarjeta; el bolsillo deja salir la tarjeta hacia arriba */
.g-climax .g-env-flap, .g-climax .g-env-card { animation: none; }
.g-climax .g-env-card { opacity: 1; }
.g-climax .g-env-pocket { top: -150%; }
.g-climax-phone { position: relative; height: min(600px, 74vh); aspect-ratio: 9 / 18.5; border: 10px solid #120a14; border-radius: 40px; overflow: hidden;
  background: #faf6ef; box-shadow: 0 0 0 1px rgba(217, 189, 133, .22), 0 40px 80px -24px rgba(0, 0, 0, .8); }
.g-climax-phone iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
  .g-climax.is-staged { padding-block: 72px 24px; }
  .g-climax.is-staged .g-climax-lead { margin-block: 12px 14px; }
  .g-climax.is-staged .g-climax-art { width: min(400px, 100%); }
  .g-climax.is-staged .g-climax-phone { height: min(520px, 56vh); }
}

/* ---------- Precios: entradas de papel con perforado ---------- */
[id] { scroll-margin-top: 84px; } /* llegando con ancla, la nav fija no tapa el título */
.g-prices-head { display: grid; gap: 16px; max-width: 46ch; }
.g-prices-lead, .g-prices-note { margin: 0; color: var(--ivory-soft); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.g-prices-note { margin-top: 36px; font-size: 15px; }
.g-tickets { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .g-tickets { grid-template-columns: minmax(0, 420px); justify-content: center; } }
.g-ticket { position: relative; color: var(--ink); border-radius: 6px;
  background: var(--tx-fiber) 0 0 / 320px, var(--tx-paper) 0 0 / 240px, radial-gradient(120% 90% at 25% 10%, #fffdf8 0%, #f6efe4 55%, #ebe2d4 100%);
  background-color: #f6efe4; background-blend-mode: multiply, soft-light, normal;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 3px rgba(20, 10, 25, .25), 0 24px 44px -16px rgba(8, 4, 12, .75); }
.g-ticket.is-hl { transform: translateY(-10px); box-shadow: 0 0 0 1px rgba(217, 189, 133, .7), 0 2px 3px rgba(20, 10, 25, .25), 0 32px 56px -16px rgba(8, 4, 12, .85); }
@media (max-width: 900px) { .g-ticket.is-hl { transform: none; } }
.g-ticket-top { padding: 30px 28px 24px; text-align: center; }
.g-ticket h3 { margin: 0; font: italic 400 30px/1.1 var(--f-display); }
.g-ticket-desc { margin: 10px auto 0; max-width: 28ch; font-size: 14px; line-height: 1.5; color: #4f4152; }
.g-price { margin: 18px 0 0; font: 500 clamp(40px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.g-ticket-sub { margin: 8px 0 0; font: 500 11px/1.3 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
/* Perforado: línea punteada con dos medialunas (los bordes "mordidos" de una entrada) */
.g-ticket-perf { position: relative; height: 1px; margin: 0 22px; border-top: 2px dashed rgba(110, 84, 40, .35); }
.g-ticket-perf::before, .g-ticket-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--night); }
.g-ticket-perf::before { left: -35px; }
.g-ticket-perf::after { right: -35px; }
.g-ticket-bot { padding: 24px 28px 30px; }
.g-ticket-bot ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: 15px; color: #3d3040; }
.g-ticket-bot li { display: flex; gap: 10px; align-items: flex-start; }
.g-ticket-bot li .g-ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-deep); }
.g-ticket .g-btn { width: 100%; justify-content: center; padding: 14px 24px; }
.g-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(29, 20, 32, .35); }
@media (hover: hover) and (pointer: fine) { .g-btn-ghost:hover { background: var(--ink); color: var(--ivory); } }
/* Sello del plan más elegido: lacre como el del sobre */
.g-ticket-seal { position: absolute; top: -18px; right: -14px; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e06386, #a8345a 55%, #6e1d39); color: #f6d2dc; text-align: center;
  font: italic 400 15px/1.05 var(--f-display); transform: rotate(8deg); box-shadow: 0 6px 12px rgba(0, 0, 0, .35); }
@media (max-width: 900px) { .g-ticket-seal { right: 10px; } } /* en angosto, dentro de la tarjeta: no desborda la pantalla */

/* ---------- Preguntas frecuentes ---------- */
.g-faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .g-faq-in { grid-template-columns: 1fr; } }
.g-faq-aside p { margin: 18px 0 22px; color: var(--ivory-soft); line-height: 1.6; max-width: 34ch; }
/* Columnas (no grilla): cada columna corre por su cuenta y abrir una pregunta no deja huecos en la otra */
.g-faq-list { columns: 2; column-gap: clamp(24px, 3vw, 48px); }
@media (max-width: 760px) { .g-faq-list { columns: 1; } }
.g-faq details { border-bottom: 1px solid var(--line); break-inside: avoid; }
/* Bloque con el "+" en absoluto: un summary con display:flex no deja encoger el texto en Chrome y desborda a 320px */
.g-faq summary { position: relative; display: block; padding: 20px 34px 20px 0; cursor: pointer; list-style: none;
  font: 400 clamp(18px, 1.5vw, 21px)/1.3 var(--f-display); color: var(--ivory); }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; color: var(--gold); font: 300 22px/1 var(--f-text); transition: transform var(--d-2) var(--ease-out); }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.g-faq details p { margin: 0 0 22px; color: var(--ivory-soft); line-height: 1.65; overflow-wrap: anywhere; } /* un link o mail largo en una respuesta no desborda en angosto */
.g-faq details a { color: var(--gold); }

/* ---------- Cierre: la parte más quieta ---------- */
.g-close { text-align: center; background: radial-gradient(60% 70% at 50% 100%, rgba(217, 189, 133, .07), transparent 70%); }
.g-close-in { display: grid; justify-items: center; gap: 30px; }
.g-close-title { margin: 0; max-width: 16ch; font: italic 400 clamp(40px, 6vw, 84px)/1.05 var(--f-display); color: var(--ivory); text-wrap: balance; }

/* ---------- Footer ---------- */
.g-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-block: 72px 32px; color: var(--ivory-soft); font-size: 15px; }
.g-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.g-foot-lead { margin: 18px 0 0; max-width: 34ch; }
.g-foot-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.g-foot-col a { text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .g-foot-col a:hover { color: var(--ivory); } }
.g-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { .g-foot-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.g-wa { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: var(--z-wa);
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--night-2); color: var(--gold);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); transition: transform var(--d-2) var(--ease-out); }
.g-wa svg { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) { .g-wa:hover { transform: translateY(-2px); } }

/* ---------- Motion (landing.js) ---------- */
/* Hero en espera del reveal: lo pone el script del <head> y lo saca landing.js (o su red de seguridad).
   Las animaciones CSS del hero esperan en pausa para que rotativo y tarjetas arranquen juntos y en fase.
   Con la intro el hero ya está a la vista debajo de la capa: sólo esperan sus animaciones, hasta que se abre el círculo
   (#hero[data-open], lo pone intro.js). */
@media (prefers-reduced-motion: no-preference) {
  html.hero-wait #hero [data-motion] { opacity: 0; }
  html.hero-wait #hero *, html.intro-on #hero:not([data-open]) * { animation-play-state: paused; }
}
.g-h1-text { display: block; }
.g-line-mask { padding-bottom: .12em; margin-bottom: -.12em; } /* la máscara no muerde las descendentes de la itálica */

/* Lenis (CSS recomendado por la librería) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Pausa global */
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }

@media (forced-colors: active) {
  .g-btn, .g-pause { border: 1px solid ButtonText; }
  .g-logo::before, body.g-body::after { display: none; }
}
