/* ============================================================
   AGE GATE V2 · Maxxage VLC
   Verificación de edad conforme Ley 13/2022 + RD-l 7/2024
   Externalizado para mantenimiento centralizado
   ============================================================ */

:root {
  --agegate-z: 9999;
  --agegate-wine: #664750;
  --agegate-wine-dark: #3a2c39;
  --agegate-cream: #fdf7f2;
  --agegate-cream2: #f5ede3;
  --agegate-cream3: #e1d6cb;
  --agegate-text: #2a1f20;
  --agegate-text2: #5a4a4e;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: var(--agegate-z);
  background: rgba(20, 14, 16, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Raleway', sans-serif;
  overflow-y: auto;
}
.age-gate[hidden] { display: none; }

.age-gate__box {
  background: var(--agegate-cream);
  max-width: 480px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 36px 32px 30px;
  text-align: center;
  border: 1px solid rgba(102, 71, 80, 0.2);
}

.age-gate__logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 5px;
  color: var(--agegate-wine);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.age-gate__logo-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--agegate-text2);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.age-gate__title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--agegate-wine-dark);
  margin: 0 0 14px;
  font-weight: 500;
  line-height: 1.25;
}

.age-gate__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--agegate-text2);
  margin: 0 0 20px;
}

.age-gate__question {
  font-size: 15px;
  color: var(--agegate-text);
  font-weight: 500;
  margin: 0 0 22px;
}

.age-gate__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.age-gate__btn {
  padding: 13px 26px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.age-gate__btn--accept {
  background: var(--agegate-wine);
  color: #fff;
  border-color: var(--agegate-wine);
  flex: 1;
  min-width: 180px;
}
.age-gate__btn--accept:hover {
  background: var(--agegate-wine-dark);
  border-color: var(--agegate-wine-dark);
}
.age-gate__btn--reject {
  background: transparent;
  color: var(--agegate-text2);
  border-color: var(--agegate-cream3);
}
.age-gate__btn--reject:hover {
  background: var(--agegate-cream2);
  color: var(--agegate-text);
}

.age-gate__legal {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--agegate-text2);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--agegate-cream3);
}
.age-gate__legal a {
  color: var(--agegate-wine);
  text-decoration: underline;
}

/* Bloqueador de scroll body cuando el modal está abierto */
body.age-gate-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .age-gate__box { padding: 28px 22px 24px; }
  .age-gate__title { font-size: 22px; }
  .age-gate__desc { font-size: 13px; }
  .age-gate__actions { flex-direction: column; }
  .age-gate__btn { width: 100%; }
}
