/* CAPRI — acceso 18+ / liquid glass */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(104,38,235,.18), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(232,0,122,.16), transparent 36%),
    rgba(3,3,7,.68);
  backdrop-filter: blur(18px) saturate(1.12) brightness(.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.12) brightness(.72);
  opacity: 0;
  animation: ag-fade-in 260ms ease-out forwards;
}

.age-gate::before {
  content: '';
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(232,0,122,.12);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(107,33,232,.16), inset 0 0 100px rgba(232,0,122,.08);
  animation: ag-orbit 6s linear infinite;
}

.age-gate-box,
.age-gate-denied {
  position: relative;
  width: min(100%, 510px);
  padding: clamp(26px, 5vw, 44px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% -20%, rgba(232,0,122,.22), transparent 44%),
    linear-gradient(145deg, rgba(23,18,32,.82), rgba(7,7,12,.86));
  box-shadow: inset 0 1px rgba(255,255,255,.17), 0 28px 90px rgba(0,0,0,.62), 0 0 55px rgba(126,24,182,.13);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  transform: translateY(14px) scale(.98);
  opacity: 0;
  animation: ag-card-in 360ms cubic-bezier(.2,.8,.2,1) 80ms forwards;
}

.age-gate-box::before,
.age-gate-denied::before {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  z-index: -1;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #804cff, #ff2b9a, transparent);
  filter: drop-shadow(0 0 7px #e8007a);
  animation: ag-border-run 2.8s linear infinite;
}

.age-gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.age-gate-brand::before {
  display: none;
}

.age-gate-age {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(145deg, rgba(232,0,122,.42), rgba(98,32,220,.25));
  box-shadow: inset 0 1px rgba(255,255,255,.24), 0 0 34px rgba(232,0,122,.25);
  transform: rotate(-3deg);
  animation: ag-age-pulse 1.8s ease-in-out infinite;
}

.age-gate-tag {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 6px 12px;
  border: 1px solid rgba(255,43,154,.3);
  border-radius: 999px;
  color: #ff73bc;
  background: rgba(232,0,122,.08);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.age-gate-box h2,
.age-gate-denied h3 {
  margin: 0 0 11px;
  color: #fff;
  font-family: var(--font-body, Arial, sans-serif);
  font-size: clamp(1.7rem, 6vw, 2.45rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.7px;
}

.age-gate-copy,
.age-gate-denied p {
  max-width: 390px;
  margin: 0 auto 25px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.6;
}

.age-gate-question {
  display: block;
  margin: 0 0 13px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 750;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .age-gate { background: rgba(3,3,7,.9); }
}

@media (max-width: 600px) {
  .age-gate {
    backdrop-filter: blur(13px) saturate(1.08) brightness(.68);
    -webkit-backdrop-filter: blur(13px) saturate(1.08) brightness(.68);
  }
}

.age-gate-btns { display: grid; grid-template-columns: 1.35fr .65fr; gap: 10px; }

.age-gate-yes,
.age-gate-no {
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 16px;
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.age-gate-yes {
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  background: linear-gradient(135deg, #f10b84, #a91fe0);
  box-shadow: inset 0 1px rgba(255,255,255,.24), 0 10px 28px rgba(232,0,122,.28);
}

.age-gate-no {
  border: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.age-gate-yes:hover { transform: translateY(-2px); box-shadow: inset 0 1px rgba(255,255,255,.28), 0 14px 34px rgba(232,0,122,.4); }
.age-gate-no:hover { color: #fff; border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.09); }
.age-gate-yes:active,
.age-gate-no:active { transform: scale(.98); }
.age-gate-yes:focus-visible,
.age-gate-no:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.age-gate-legal {
  margin: 18px 0 0;
  color: rgba(255,255,255,.3);
  font-size: 9px;
  line-height: 1.5;
}

.age-gate-denied { display: none; }
.age-gate-denied .denied-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 24px; background: rgba(255,255,255,.06); font-size: 30px; }
.age-gate-denied p { margin-bottom: 0; }
.age-gate-denied.is-visible { display: block; }

.age-gate.closing { animation: ag-fade-out 240ms ease-in forwards; }

@keyframes ag-fade-in { to { opacity: 1; } }
@keyframes ag-fade-out { to { opacity: 0; pointer-events: none; } }
@keyframes ag-card-in { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ag-border-run { to { left: 105%; } }
@keyframes ag-age-pulse { 50% { transform: rotate(0) scale(1.035); box-shadow: inset 0 1px rgba(255,255,255,.28), 0 0 46px rgba(232,0,122,.36); } }
@keyframes ag-orbit { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .age-gate { padding: 14px; }
  .age-gate-box,
  .age-gate-denied { padding: 24px 18px 21px; border-radius: 25px; }
  .age-gate-brand { margin-bottom: 16px; }
  .age-gate-age { width: 76px; height: 76px; margin-bottom: 17px; border-radius: 23px; font-size: 27px; }
  .age-gate-copy { margin-bottom: 19px; font-size: 12px; }
  .age-gate-btns { grid-template-columns: 1fr; }
  .age-gate-yes,
  .age-gate-no { width: 100%; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate,
  .age-gate-box,
  .age-gate-denied,
  .age-gate::before,
  .age-gate-box::before,
  .age-gate-denied::before,
  .age-gate-age { animation: none; opacity: 1; transform: none; }
}
