/* ─────────────────────────────────────────────────────────
   BARRERA DE EDAD — Caballo Loco
   Cuelga por completo de #cl-age-gate para no chocar con el resto
   del tema. Reutiliza las variables de color ya definidas en
   caballo-loco.css (--brown-bark, --bright-gold, etc.) — este
   archivo debe encolarse DESPUÉS de esa hoja de estilos.

   Paleta tomada del CSS real y publicado del sitio
   (caballoloco.jauriadigital.com), no de los archivos de tema en
   disco — que están desactualizados en varios valores:
     --brown-bark:   #a19370  (ya no es un café oscuro, es el
                                dorado/taupe único de acento)
     --toffee-brown: #975935
     --floral-white: #fff
     --bright-gold:  #a19370  (mismo tono que brown-bark)
     --saffron:      #a19370  (idem)
     --text-dark:    #2a1a0e
   Los títulos (h1–h6) en el sitio real usan "Baskervville" 600,
   no "Cormorant Garamond" itálica — por eso el título de la
   barrera usa esa misma tipografía (ver la carga de respaldo en
   inc/age-gate-snippet.php, igual que hace wordpress-vinos-snippet).
   El fondo oscuro de la barrera NO usa var(--brown-bark) (ahora es
   un tono claro): se usa un negro cálido neutro, el mismo registro
   que ya usa el footer real del sitio (rgb(25,25,26)).
───────────────────────────────────────────────────────── */

/* Mientras la barrera está activa, el sitio de atrás no debe
   scrollear ni ser alcanzable por teclado/lector de pantalla.
   La clase la agrega inc/age-gate-snippet.php vía body_class(). */
body.cl-age-gate-active {
  overflow: hidden;
  height: 100vh;
}

.cl-age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /* Negro cálido neutro, no la variable --brown-bark (hoy es un
     dorado/taupe claro, no sirve como fondo oscuro) — mismo registro
     que #site-footer (rgb(25,25,26)) y #mainNav.scrolled (#000) en
     el sitio real. */
  background: linear-gradient(160deg, #211f1d 0%, #0a0a0a 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s;
}

/* Viñeta sutil para dar profundidad, mismo recurso que .page-hero-overlay */
.cl-age-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.cl-age-gate.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.cl-age-gate-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.cl-age-gate-inner {
  animation: clAgeGateIn 0.6s cubic-bezier(.16,1,.3,1);
}
@keyframes clAgeGateIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cl-age-gate-logo {
  /* Sello circular (min-logo.svg) en vez del isotipo + texto ancho:
     ya viene en el dorado-taupe de marca (#b3a47d, prácticamente
     --bright-gold), así que no necesita el filtro brightness/invert
     que sí usa el wordmark blanco de la navbar. */
  display: block;
  width: 104px;
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.cl-age-gate-divider {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--bright-gold, #a19370);
  margin: 0 auto 1.25rem;
}

.cl-age-gate-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron, #a19370);
  margin-bottom: 0.75rem;
}

.cl-age-gate-title {
  font-family: 'Baskervville', serif;
  font-weight: 600;
  font-style: normal;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--floral-white, #fff);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.cl-age-gate-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  max-width: 380px;
  margin: 0 auto 2.25rem;
}

.cl-age-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}

.cl-age-gate-btn {
  min-width: 240px;
}

.cl-age-gate-link {
  background: none;
  border: none;
  padding: 0.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.cl-age-gate-link:hover,
.cl-age-gate-link:focus-visible {
  color: var(--floral-white, #fff);
}

.cl-age-gate-disclaimer {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.4);
  max-width: 380px;
  margin: 0 auto;
}
.cl-age-gate-disclaimer a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cl-age-gate-disclaimer a:hover { color: var(--bright-gold, #a19370); }

/* ─── Panel "menor de edad" ──────────────────────────── */
/* La visibilidad la controla únicamente el atributo HTML [hidden]
   (alternado por JS) — sin display:none propio acá, para no pisar
   ese atributo cuando JS lo quita. */
.cl-age-gate-panel--underage .cl-age-gate-title { color: var(--floral-white, #fff); font-style: normal; }
.cl-age-gate-redirect-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

/* ─── Botón "Sí" deshabilitado durante el fade de salida ─ */
.cl-age-gate-btn:disabled,
.cl-age-gate-link:disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 480px) {
  .cl-age-gate-logo { width: 84px; margin-bottom: 1.5rem; }
  .cl-age-gate-btn { min-width: 100%; }
}
