/* =============================================================
   LA SEÑAL — Sorteos y dinámicas promocionales
   1. Tokens
   ============================================================= */
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

:root {
  /* Palette — dark warm (never pure black), single red + gold accent */
  --bg:        #0e0b09;
  --bg-2:      #15100c;
  --bg-3:      #1e170f;
  --card:      #1c1610;
  --cream:     #f4ede0;
  --cream-2:   #d8cbb3;
  --cream-3:   #8f8272;
  --red:       #d81f2e;
  --red-2:     #9c141f;
  --gold:      #d4af62;
  --gold-2:    #a9823f;
  --line:      rgba(244, 237, 224, 0.12);
  --line-2:    rgba(244, 237, 224, 0.22);

  --serif: "Space Grotesk", "Inter", sans-serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--red); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

.section { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head p.section-sub { color: var(--cream-3); font-size: 1.05rem; margin-top: .8rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.25rem; }
.text-muted { color: var(--cream-3); }
.text-gold { color: var(--gold); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: var(--cream);
}
.btn-primary:hover { box-shadow: 0 20px 40px rgba(216,31,46,.35), 0 8px 18px rgba(0,0,0,.3); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(212,175,98,.08); }
.btn-whatsapp {
  background: linear-gradient(135deg, #2fbf5a, #1f9946);
  color: #fff;
}
.btn-whatsapp:hover { box-shadow: 0 20px 40px rgba(47,191,90,.3); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(212,175,98,.12); color: var(--gold);
  border: 1px solid rgba(212,175,98,.28);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.9rem;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .4s, box-shadow .4s;
  position: relative; isolation: isolate;
}
.has-tilt:hover { transition-duration: .15s; }
.card:hover {
  border-color: rgba(212,175,98,.35);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(212,175,98,.12);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(212,175,98,.16), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.card:hover::before { opacity: 1; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(216,31,46,.18), rgba(212,175,98,.18));
  border: 1px solid var(--line-2);
  margin-bottom: 1.1rem;
}
.icon-badge svg { width: 22px; height: 22px; stroke: var(--gold); }

.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14,11,9,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 34px; width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: .3rem 0; font-size: .92rem; font-weight: 500; color: var(--cream-2); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--cream); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-actions .btn { padding: .65rem 1.15rem; font-size: .85rem; }
.nav-actions .btn-ghost { display: none; }
@media (min-width: 640px) { .nav-actions .btn-ghost { display: inline-flex; } }

.hamburger {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-2);
}
@media (min-width: 960px) { .hamburger { display: none; } }
.hamburger[aria-expanded="true"] { visibility: hidden; }
.hamburger span { position: relative; width: 18px; height: 1px; background: var(--cream); display: block; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--cream);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 210;
  background: var(--bg-2);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.nav-mobile a { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.nav-mobile-close {
  position: absolute; top: 1.4rem; right: 1.4rem; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center;
}

.whatsapp-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #2fbf5a, #1f9946);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(31,153,70,.45);
  transition: transform .4s var(--ease-bounce);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
  background: var(--bg-2);
}
.footer-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; margin-bottom: 1rem; }
.footer-logo-img { height: 44px; width: auto; display: block; }
.footer-cols h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 1rem; font-weight: 600; }
.footer-cols ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-cols a { color: var(--cream-2); font-size: .92rem; }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--cream-3);
}
.footer-bottom a { color: var(--cream-3); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero / Señal beacon --- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden; isolation: isolate;
}
.hero-mesh {
  position: absolute; inset: -15%; z-index: -2;
  background:
    radial-gradient(50% 45% at var(--mesh-x) var(--mesh-y), rgba(216,31,46,.30), transparent 65%),
    conic-gradient(from 140deg at 50% 50%, rgba(212,175,98,.16), rgba(156,20,31,.12), rgba(212,175,98,.16));
  filter: blur(90px) saturate(120%);
  animation: meshShift 24s ease-in-out infinite;
}
@keyframes meshShift {
  0%, 100% { --mesh-x: 34%; --mesh-y: 30%; }
  50%      { --mesh-x: 66%; --mesh-y: 55%; }
}
.hero-beacon {
  position: absolute; inset: -30% -10%; z-index: -1;
  background: conic-gradient(from var(--beam-angle) at 50% 8%,
    transparent 0deg, rgba(212,175,98,.4) 6deg, transparent 16deg,
    transparent 344deg, rgba(216,31,46,.32) 354deg, transparent 360deg);
  filter: blur(55px);
  mix-blend-mode: screen;
  animation: beaconSweep 16s linear infinite;
  pointer-events: none;
}
@keyframes beaconSweep { to { --beam-angle: 360deg; } }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner { max-width: 780px; }
.hero-inner .eyebrow { margin-bottom: 1.4rem; }
.hero-title { margin-bottom: 1.3rem; }
.hero-title em { color: var(--gold); font-style: normal; }
.hero-sub { max-width: 46ch; color: var(--cream-2); font-size: 1.08rem; margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Pillars (trust) --- */
.pillars-grid {
  display: grid; gap: 1.2rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.pillar p { color: var(--cream-3); font-size: .92rem; }

/* --- Steps --- */
.steps-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-num {
  font-family: var(--mono); font-size: 2.2rem; font-weight: 500;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  margin-bottom: 1rem; display: block;
}
.step-num.is-counted { -webkit-text-stroke: 1px var(--gold); color: var(--gold); transition: color .6s, -webkit-text-stroke .6s; }
.step-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.step-card p { color: var(--cream-3); font-size: .92rem; }

/* --- Banner carousel (admin-managed) --- */
.banner-strip {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}
.banner-strip::-webkit-scrollbar { height: 6px; }
.banner-strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.banner-card {
  position: relative; flex: 0 0 auto; width: min(560px, 88vw); aspect-ratio: 16/6;
  border-radius: 18px; overflow: hidden; scroll-snap-align: start;
  border: 1px solid var(--line); background: var(--bg-3);
}
.banner-card img { width: 100%; height: 100%; object-fit: cover; }
.banner-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(14,11,9,.88), transparent);
  display: flex; flex-direction: column; gap: .1rem;
}
.banner-caption strong { font-family: var(--serif); font-size: 1.05rem; }
.banner-caption span { color: var(--cream-3); font-size: .82rem; }

/* --- Raffles grid --- */
.raffles-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .raffles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .raffles-grid { grid-template-columns: repeat(3, 1fr); } }
.raffle-card { display: flex; flex-direction: column; gap: 1rem; }
.raffle-card .badge { align-self: flex-start; }
.raffle-card h3 { margin-top: .4rem; }
.raffle-card p { color: var(--cream-3); font-size: .92rem; flex: 1; }
.raffle-glow {
  height: 120px; border-radius: 14px; margin-bottom: .2rem;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(216,31,46,.35), transparent 70%),
    radial-gradient(70% 90% at 80% 90%, rgba(212,175,98,.3), transparent 70%),
    var(--bg-3);
  position: relative; overflow: hidden;
}
.raffle-glow svg { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; stroke: var(--gold); opacity: .8; }
.raffle-glow img { width: 100%; height: 100%; object-fit: cover; }

/* --- Premios (tarjetas grandes, página de detalle del sorteo) --- */
.premios-grid-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.premio-card-lg {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.premio-card-lg:hover { border-color: rgba(212,175,98,.35); transform: translateY(-3px); }
.premio-card-lg img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.premio-card-lg-empty {
  width: 100%; aspect-ratio: 4/3; display: grid; place-items: center;
  background: var(--bg-3); color: var(--gold);
}
.premio-card-lg-empty svg { width: 32px; height: 32px; opacity: .7; }
.premio-card-lg span {
  padding: 1rem 1.1rem; font-size: .95rem; font-weight: 600; color: var(--cream); line-height: 1.4;
}

/* --- Paso a paso (junto al formulario de participación) --- */
.pasos-list { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.8rem; }
.paso-item {
  display: flex; align-items: center; gap: .8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem;
}
.paso-item img {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.paso-item-num {
  width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0;
  background: var(--bg-3); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center;
}
.paso-item p { font-size: .88rem; color: var(--cream-2); line-height: 1.4; }

/* Columnas de participar.php — 2 (Datos | Pago) o 3 (Datos | Paso a paso | Pago) según
   si hay pasos configurados. align-items:start evita que la columna del QR se estire
   para igualar la altura de una lista larga de pasos. */
@media (min-width: 860px) {
  .qr-layout-2col { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .qr-layout-3col { grid-template-columns: 1.1fr .85fr .85fr; align-items: start; }
}

/* --- Winners / evidence empty-state --- */
.winners-hero {
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg-3);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid; gap: 2.4rem;
  position: relative; overflow: hidden;
}
@media (min-width: 960px) { .winners-hero { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.winners-hero figure { border-radius: 16px; overflow: hidden; position: relative; }
.winners-hero figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.02); }
.winners-hero figcaption {
  position: absolute; left: .8rem; bottom: .8rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  background: rgba(14,11,9,.72); color: var(--cream-2);
  padding: .35rem .6rem; border-radius: 6px;
}
.winners-process { display: grid; gap: 1rem; margin-top: 2.4rem; }
@media (min-width: 720px) { .winners-process { grid-template-columns: repeat(3, 1fr); } }

.reaction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.reaction-grid figure { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 3/4; }
.reaction-grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.02); }
.reaction-grid figcaption {
  position: absolute; left: .6rem; bottom: .6rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .04em;
  background: rgba(14,11,9,.72); color: var(--cream-2);
  padding: .3rem .55rem; border-radius: 6px;
}

/* --- FAQ accordion (native details, works without JS) --- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; max-width: 760px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--gold);
  transition: transform .35s var(--ease-out); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--cream-3); font-size: .95rem; }

/* --- CTA band --- */
.cta-band {
  position: relative; border-radius: 24px; overflow: hidden; isolation: isolate;
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  border: 1px solid var(--line);
}
.cta-band-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,11,9,.55), rgba(14,11,9,.92)), radial-gradient(60% 80% at 50% 0%, rgba(216,31,46,.25), transparent 70%);
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 50ch; margin: 1rem auto 2rem; color: var(--cream-2); }
.cta-band .hero-actions { justify-content: center; }

/* --- Forms (shared by participar.php and admin panel) --- */
.admin-form { display: flex; flex-direction: column; gap: 1.1rem; }
.admin-field label { display: block; font-size: .82rem; color: var(--cream-3); margin-bottom: .4rem; }
.admin-field input[type=text],
.admin-field input[type=number],
.admin-field input[type=date],
.admin-field input[type=password],
.admin-field select,
.admin-field textarea {
  width: 100%; padding: .7rem .9rem; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--cream);
  font-family: var(--sans); font-size: .92rem;
}
.admin-field textarea { min-height: 100px; resize: vertical; }
.admin-field input[type=file] { color: var(--cream-3); font-size: .85rem; }

/* --- Legal / terms typography --- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.4rem; margin-bottom: .8rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--cream-2); font-size: .98rem; margin-bottom: .9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal li { margin-bottom: .5rem; }
.legal-updated { font-family: var(--mono); font-size: .78rem; color: var(--cream-3); margin-bottom: 2.4rem; display: block; }

/* --- Page hero (non-home pages) --- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 5rem)); padding-bottom: clamp(2rem, 5vw, 3rem); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero p { max-width: 60ch; color: var(--cream-2); font-size: 1.05rem; margin-top: 1rem; }

/* =============================================================
   7. Effects (reveal, grain util)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; } /* defensive: never hide split-text parents */

.marquee-strip {
  border-block: 1px solid var(--line);
  padding-block: 1rem;
  overflow: hidden;
  background: var(--bg-2);
}
.marquee-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; color: var(--cream-3); }
.marquee-track span.sep { color: var(--gold); }

/* =============================================================
   8. Responsive helpers already inline per component above
   ============================================================= */

/* =============================================================
   9. Reduced motion — only intrusive effects gated
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-beacon { animation: none; opacity: .5; }
  .hero-mesh { animation: none; }
  /* tilt, hovers, reveals, marquee, faq: intentionally NOT disabled */
}

/* =============================================================
   10. Print (terms page friendliness)
   ============================================================= */
@media print {
  .nav, .whatsapp-float, .footer, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}

/* =============================================================
   11. Page transitions (multi-page)
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: pageFadeOutUp; }
::view-transition-new(root) { animation-name: pageFadeInUp; }
@keyframes pageFadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes pageFadeInUp  { from { opacity: 0; transform: translateY(10px); } }
