/* ==========================================================================
   Franklin Castro Drift — Sistema de diseño (iOS-inspired, dark drift)
   Un solo archivo, sin dependencias. Variables tematizables.
   ========================================================================== */

:root {
  /* Paleta base (dark drift) */
  --bg: #08080a;
  --bg-elevated: #111114;
  --surface: #1a1a1e;
  --surface-2: #232329;
  --surface-hi: #2c2c33;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.62);
  --text-3: rgba(235, 235, 245, 0.34);

  /* Acento drift: naranja oficial de marca (#FF6600) */
  --accent: #ff6600;         /* naranja marca Franklin Castro Drift */
  --accent-2: #ff9f0a;       /* naranja claro */
  --accent-grad: linear-gradient(120deg, #ff5a00 0%, #ff7a1a 50%, #ff9f0a 100%);
  --accent-soft: rgba(255, 102, 0, 0.14);

  --green: #30d158;
  --red: #ff453a;
  --yellow: #ffd60a;
  --blue: #0a84ff;

  /* Radios estilo iOS */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 12px 40px rgba(0,0,0,.5);
  --shadow-glow: 0 10px 40px rgba(255, 102, 0, 0.30);

  /* Tipografía: pila de sistema tipo SF */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --nav-h: 56px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Modo claro (por si se activa data-theme="light") */
:root[data-theme="light"] {
  --bg: #f2f2f7;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --surface-hi: #e9e9ee;
  --hairline: rgba(0, 0, 0, 0.10);
  --hairline-strong: rgba(0, 0, 0, 0.18);
  --text: #1c1c1e;
  --text-2: rgba(60, 60, 67, 0.62);
  --text-3: rgba(60, 60, 67, 0.34);
  --shadow-2: 0 12px 40px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fondo con textura sutil de luz */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(255, 55, 95, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(255, 159, 10, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
.media-lightbox { position:fixed; inset:0; z-index:2000; display:none; place-items:center; background:rgba(0,0,0,.92); padding:70px 70px 44px; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.media-lightbox.open { display:grid; }
.media-lightbox figure { margin:0; width:100%; height:100%; display:grid; place-items:center; align-content:center; gap:12px; }
.media-lightbox img { max-width:min(1200px,100%); max-height:calc(100vh - 145px); object-fit:contain; border-radius:14px; box-shadow:0 24px 80px rgba(0,0,0,.6); }
.media-lightbox figcaption { color:rgba(255,255,255,.72); font-size:13px; text-align:center; }
.media-lightbox-close { position:fixed; top:max(18px,env(safe-area-inset-top)); right:18px; z-index:2003; width:50px; height:50px; border:1px solid rgba(255,255,255,.16); border-radius:50%; background:#242429; color:#fff; font-size:22px; cursor:pointer; }
.media-lightbox-arrow { position:fixed; top:50%; z-index:2002; translate:0 -50%; width:52px; height:70px; border:1px solid rgba(255,255,255,.14); border-radius:18px; background:rgba(36,36,41,.9); color:#fff; font-size:42px; cursor:pointer; }
.media-lightbox-arrow.prev { left:14px; }.media-lightbox-arrow.next { right:14px; }
@media(max-width:600px){.media-lightbox{padding:74px 14px 90px}.media-lightbox img{max-height:calc(100vh - 185px)}.media-lightbox-arrow{top:auto;bottom:max(16px,env(safe-area-inset-bottom));translate:0;width:62px;height:54px}.media-lightbox-arrow.prev{left:calc(50% - 72px)}.media-lightbox-arrow.next{right:calc(50% - 72px)}}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.muted { color: var(--text-2); }

/* ============================ NAVBAR ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-weight: 900; color: #fff; font-size: 15px;
  box-shadow: var(--shadow-glow);
}
.brand-logo { height: 34px; width: auto; border-radius: 9px; display: block; }
.footer .brand-logo { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  color: var(--text-2); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

/* ============================ BOTONES ============================ */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; color: #fff;
  background: var(--surface-hi);
  transition: transform .12s var(--ease), filter .2s, background .2s, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-grad); box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--hairline-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================ CARDS ============================ */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.card-glass {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* ============================ BARRA DE ANUNCIO ============================ */
.announce-bar {
  background: var(--accent-grad); color: #fff; text-align: center;
  font-weight: 700; font-size: 13.5px; letter-spacing: .01em;
  padding: 9px 16px; position: relative; z-index: 60;
}
.announce-bar a { text-decoration: underline; font-weight: 800; }
.announce-bar .sep { opacity: .6; margin: 0 8px; }

/* ============================ HERO (full-bleed, prize-first) ============================ */
.hero-full {
  position: relative; min-height: 90vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; background-color: #0a0a0c;
  overflow: hidden; padding: 0 0 56px;
}
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,8,10,.40) 0%, rgba(8,8,10,.08) 34%, rgba(8,8,10,.55) 72%, #08080a 100%),
    linear-gradient(90deg, rgba(8,8,10,.70) 0%, rgba(8,8,10,.22) 44%, transparent 72%);
}
.hero-video { position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-full .container { position: relative; z-index: 2; width: 100%; }
.hero-full .eyebrow { color: #fff; background: var(--accent-soft); border: 1px solid rgba(255,255,255,.18); padding: 6px 13px; border-radius: var(--r-pill); display: inline-block; backdrop-filter: blur(8px); }
.hero-full h1 {
  font-size: clamp(40px, 12vw, 104px); line-height: .90; font-weight: 900;
  letter-spacing: -0.03em; margin: 14px 0 0; text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.6);
}
.hero-full h1 .grad {
  background: linear-gradient(135deg, #ffd0a3 0%, #ff7a1a 48%, #ffc27a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 8px rgba(255,102,0,.22));
}
.hero-full p.lead { font-size: 18px; color: rgba(255,255,255,.86); margin: 16px 0 24px; max-width: 44ch; font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Countdown estilo giveaway */
.countdown { display: flex; gap: 10px; margin: 6px 0 26px; }
.cd-box {
  background: rgba(20,20,24,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  min-width: 74px; padding: 12px 8px 8px; text-align: center;
}
.cd-box .n { font-family: var(--font-display); font-size: 34px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box .l { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-top: 6px; font-weight: 700; }
@media (max-width: 480px) { .cd-box { min-width: 0; flex: 1; } .cd-box .n { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .hero-video { display:none; } }

/* ============================ HERO (legacy, aún usado si hiciera falta) ============================ */
.hero { padding: 40px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: center; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--hairline);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.badge b { color: var(--text); }

/* Slot de foto (placeholder) */
.photo-slot {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, #1b1b21, #0e0e12),
    var(--accent-soft);
  border: 1px solid var(--hairline-strong);
  display: grid; place-items: center; text-align: center;
}
.photo-slot::after {
  content: attr(data-label);
  color: var(--text-3); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; padding: 12px 16px; max-width: 80%;
}
.photo-slot.has-photo::after { content: ""; }
.photo-slot.has-photo { border-color: var(--hairline); }
#bio-photo-slot { width: 100%; justify-self: stretch; }
.photo-slot .badge-champ {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline-strong);
  font-size: 13px; font-weight: 700;
}

/* ============================ SECCIONES ============================ */
section { padding: 46px 0; position: relative; z-index: 1; }
#rifa { padding-top: 88px; }
@media (max-width: 600px) { #rifa { padding-top: 68px; } }
.social-float { position:fixed; right:max(18px, env(safe-area-inset-right)); bottom:max(20px, env(safe-area-inset-bottom)); z-index:80; display:flex; flex-direction:column; gap:10px; }
.social-float-btn { width:52px; height:52px; border-radius:18px; display:grid; place-items:center; color:#fff; box-shadow:0 12px 30px rgba(0,0,0,.35); transition:transform .2s ease, filter .2s ease; }
.social-float-btn:hover { transform:translateY(-3px) scale(1.04); filter:brightness(1.08); }
.social-float-btn svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.social-float-btn.instagram { background:linear-gradient(135deg,#833ab4,#fd1d1d 58%,#fcb045); }
.social-float-btn.whatsapp { background:#25d366; }
@media (max-width:600px) { .social-float { right:12px; bottom:14px; gap:8px; } .social-float-btn { width:48px; height:48px; border-radius:16px; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 17px; }

/* Contador de boletos */
.progress-wrap { max-width: 620px; margin: 0 auto; }
.progress-stats { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.progress-stats .sold { color: var(--text); }
.progress-track { height: 14px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; border: 1px solid var(--hairline); }
.progress-fill { height: 100%; width: 0; border-radius: var(--r-pill); background: var(--accent-grad); transition: width 1s var(--ease); }

/* Grid de paquetes (centrado en pantallas grandes) */
.pkg-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pkg {
  cursor: pointer; text-align: center; padding: 20px 14px;
  border-radius: var(--r-md); background: var(--surface);
  border: 1.5px solid var(--hairline); transition: all .18s var(--ease);
  position: relative; flex: 0 1 168px;
}
.pkg:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.pkg.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow-glow); }
.pkg .qty { font-size: 30px; font-weight: 800; font-family: var(--font-display); }
.pkg .qty span { font-size: 15px; color: var(--text-2); font-weight: 600; }
.pkg .price { margin-top: 6px; font-size: 15px; color: var(--text); font-weight: 700; }
.pkg .save { margin-top: 4px; font-size: 12px; color: var(--green); font-weight: 700; }
.pkg .tick {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); display: none; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.pkg.selected .tick { display: grid; }

/* Métodos de pago (centrado en pantallas grandes) */
.pay-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pay-card { display: flex; align-items: center; gap: 14px; flex: 1 1 300px; max-width: 360px; }
.pay-info .acct { white-space: nowrap; }
.pay-logo { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--text-2); flex-shrink: 0; overflow: hidden; }
.pay-logo img { width: 100%; height: 100%; object-fit: contain; }
.pay-info { min-width: 0; }
.pay-info .bank { font-weight: 700; font-size: 15px; }
.pay-info .acct { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pay-info .holder { font-size: 12px; color: var(--text-3); }
.copy-btn { margin-left: auto; }
.account-detail { width:min(420px,calc(100vw - 32px)); padding:30px; border:1px solid var(--hairline); border-radius:20px; background:var(--bg-elevated); color:var(--text); box-shadow:0 24px 80px #0009; }
.account-detail::backdrop { background:#000b; }
.account-detail h3 { margin:0 40px 18px 0; }
.account-detail p { margin:0 0 18px; line-height:1.6; overflow-wrap:anywhere; }
.account-detail-close { position:absolute; top:16px; right:16px; border:0; background:transparent; color:var(--text); font-size:22px; cursor:pointer; }

/* Palmarés / stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 24px 16px; }
.stat .num { font-size: 40px; font-weight: 800; font-family: var(--font-display); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--text-2); font-size: 14px; margin-top: 4px; font-weight: 600; }

/* Timeline palmarés */
.palmares { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; }
.palm-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.palm-year { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--accent-2); min-width: 92px; }
.palm-text { font-weight: 600; }
.palm-text small { display: block; color: var(--text-2); font-weight: 500; }

/* ============================ FORM / INPUTS ============================ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--text-2); }
.input, .select, textarea.input {
  width: 100%; padding: 14px 16px; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1.5px solid var(--hairline); border-radius: var(--r-md);
  transition: border-color .18s, background .18s; font-family: inherit;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.field .err { font-size: 12px; color: var(--red); margin-top: 6px; display: none; }
.field.invalid .input { border-color: var(--red); }
.field.invalid .err { display: block; }

/* Upload comprobante */
.upload {
  border: 1.5px dashed var(--hairline-strong); border-radius: var(--r-md);
  padding: 22px; text-align: center; cursor: pointer; transition: all .18s;
  background: var(--surface-2);
}
.upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload .up-icon { font-size: 26px; }
.upload .up-text { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.upload.has-file { border-style: solid; border-color: var(--green); }
.upload-preview { margin-top: 12px; border-radius: var(--r-sm); overflow: hidden; max-height: 220px; }
.upload-preview img { width: 100%; object-fit: contain; max-height: 220px; }
.payment-step-head { margin:20px 0 12px; }
.payment-step-head h4 { font-size:18px; margin:0 0 5px; }
.payment-step-head p { color:var(--text-2); font-size:13px; margin:0; }
.sheet-pay-grid { display:grid; gap:10px; }
.sheet-pay-card { display:grid; grid-template-columns:52px 1fr auto; gap:12px; align-items:center; padding:13px; border:1px solid var(--hairline-strong); border-radius:16px; background:var(--surface-2); }
.sheet-pay-logo { width:52px; height:52px; border-radius:12px; background:#fff; display:grid; place-items:center; overflow:hidden; color:#111; font-size:11px; font-weight:800; }
.sheet-pay-logo img { width:100%; height:100%; object-fit:contain; padding:6px; }
.sheet-pay-bank { font-weight:750; font-size:14px; }
.sheet-pay-account { font-size:16px; font-weight:700; margin-top:2px; font-variant-numeric:tabular-nums; }
.sheet-pay-holder { color:var(--text-3); font-size:11px; margin-top:2px; }
@media (max-width:480px) { .sheet-pay-card { grid-template-columns:44px 1fr; } .sheet-pay-logo { width:44px; height:44px; } .sheet-pay-card .copy-account-btn { grid-column:1/-1; width:100%; } }

/* Segmented control (iOS) */
.segmented { display: inline-flex; background: var(--surface-2); border-radius: var(--r-md); padding: 3px; gap: 3px; }
.segmented button {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  padding: 9px 16px; border-radius: 13px; font-weight: 600; font-size: 14px; transition: all .2s;
}
.segmented button.active { background: var(--surface-hi); color: var(--text); box-shadow: var(--shadow-1); }

/* ============================ SHEET / MODAL (iOS) ============================ */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .28s var(--ease);
}
.sheet-overlay.open { display: flex; opacity: 1; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-elevated); border-radius: 26px 26px 0 0;
  border: 1px solid var(--hairline); border-bottom: 0;
  padding: 10px 22px 30px;
  transform: translateY(100%); transition: transform .34s var(--ease);
  -webkit-overflow-scrolling: touch;
}
.sheet-overlay.open .sheet { transform: translateY(0); }
.sheet-grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--hairline-strong); margin: 8px auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sheet-head h3 { font-size: 22px; }
.sheet-close { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-2); font-size: 18px; cursor: pointer; display: grid; place-items: center; }

@media (min-width: 600px) {
  .sheet-overlay { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--hairline); transform: translateY(20px) scale(.98); }
  .sheet-overlay.open .sheet { transform: translateY(0) scale(1); }
}

/* Resumen de orden */
.order-summary { background: var(--surface-2); border-radius: var(--r-md); padding: 16px; margin-bottom: 18px; }
.order-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.order-row.total { border-top: 1px solid var(--hairline); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 18px; }

/* ============================ TICKET (boleto) ============================ */
.ticket {
  background: linear-gradient(135deg, #17171c, #0d0d11);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden;
}
.ticket::before { content: ""; position: absolute; inset: 0; background: var(--accent-grad); opacity: .06; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.ticket-num { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: .02em; }
.ticket-num small { font-size: 15px; color: var(--text-2); font-weight: 600; }
.ticket-meta { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.ticket-qr { width: 84px; height: 84px; border-radius: 10px; background: #fff; padding: 6px; }
.ticket-qr img, .ticket-qr canvas { width: 100%; height: 100%; }

/* ============================ BADGES ESTADO ============================ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }
.pill.pending { background: rgba(255,214,10,.15); color: var(--yellow); }
.pill.approved { background: rgba(48,209,88,.15); color: var(--green); }
.pill.rejected { background: rgba(255,69,58,.15); color: var(--red); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============================ ESCUELA DE DRIFT ============================ */
.escuela { background: var(--bg-elevated); border-top: 1px solid var(--hairline); }
.escuela-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.escuela-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/2; border: 1px solid var(--hairline); }
.escuela-photo img { width: 100%; height: 100%; object-fit: cover; }
.escuela-logo-chip {
  display: inline-block; background: #fff; border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--shadow-1);
}
.escuela-logo-chip img { height: 92px; width: auto; display: block; }
.escuela h2 { font-size: clamp(26px, 4vw, 38px); }
.escuela .feat { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.escuela .feat li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-weight: 500; list-style: none; }
.escuela .feat li b { color: var(--text); }
@media (max-width: 820px) { .escuela-grid { grid-template-columns: 1fr; } .escuela-photo { order: -1; } }

/* ============================ GALERÍA ============================ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 12px;
}
.gallery a {
  border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--surface);
  border: 1px solid var(--hairline);
}
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery a.big { grid-column: span 2; grid-row: span 1; }
}

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0 60px; margin-top: 40px; color: var(--text-2); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer .legal { font-size: 12px; color: var(--text-3); margin-top: 20px; max-width: 60ch; }

/* ============================ TOAST ============================ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--surface-hi); color: var(--text); padding: 13px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-2); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px; animation: toastIn .3s var(--ease);
}
.toast.ok { border-color: rgba(48,209,88,.4); }
.toast.err { border-color: rgba(255,69,58,.4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============================ UTILIDADES ============================ */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grow { flex: 1; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ ANIMACIONES ============================ */
/* Estado inicial (oculto) de los elementos animados */
.has-anim .anim {
  opacity: 0; will-change: opacity, transform;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--anim-d, 0s);
}
.has-anim .anim[data-anim="up"]    { transform: translateY(32px); }
.has-anim .anim[data-anim="down"]  { transform: translateY(-32px); }
.has-anim .anim[data-anim="left"]  { transform: translateX(-36px); }
.has-anim .anim[data-anim="right"] { transform: translateX(36px); }
.has-anim .anim[data-anim="scale"] { transform: scale(.9); }
.has-anim .anim[data-anim="fade"]  { transform: none; }
/* Estado revelado */
.has-anim .anim.anim-in { opacity: 1 !important; transform: none !important; }
.has-anim .reveal { transition-delay: var(--anim-d, 0s); }

/* Micro-interacciones */
.btn { transition: transform .14s var(--ease), filter .2s, background .2s, box-shadow .3s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.card { transition: transform .28s var(--ease), border-color .2s, box-shadow .3s, background .2s; }
.pay-card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.escuela-photo img { transition: transform .5s var(--ease); }
.escuela-photo:hover img { transform: scale(1.05); }
.brand-logo { transition: transform .2s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.nav { transition: box-shadow .3s, background .3s, height .3s; }
.nav--scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.45); }

/* Countdown flotante */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cd-box { animation: floaty 4s ease-in-out infinite; }
.cd-box:nth-child(2) { animation-delay: .35s; }
.cd-box:nth-child(3) { animation-delay: .7s; }
.cd-box:nth-child(4) { animation-delay: 1.05s; }

/* Barra de anuncio con brillo sutil en movimiento */
@keyframes announceShine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.announce-bar { background-size: 200% 100%; animation: announceShine 8s linear infinite; }

/* Pulso al comprar */
@keyframes pulseGlow { 0%,100% { box-shadow: var(--shadow-glow); } 50% { box-shadow: 0 12px 46px rgba(255,102,0,.5); } }
.btn-primary.btn-lg { animation: pulseGlow 2.6s ease-in-out infinite; }

/* Respeta usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .has-anim .anim, .has-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cd-box, .announce-bar, .btn-primary.btn-lg { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 380px; margin: 0 auto; }
  .nav-links .hide-sm { display: none; }
  #palmares .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  #bio-photo-slot { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .row-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
}
