/* KinesPrime · Puerta de edad (plano, un acento, efectos suaves) */
#ageGate {
  background: #0B0A10 !important;
  overflow: hidden auto;
  animation: agFade .5s ease both;
}
#ageGate::before, #ageGate::after {
  content: ""; position: fixed; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(225, 29, 72, .22);
}
#ageGate::before { width: 520px; height: 520px; top: -180px; right: -160px; animation: agDrift 18s ease-in-out infinite; }
#ageGate::after  { width: 360px; height: 360px; bottom: -140px; left: -120px; background: rgba(225, 29, 72, .06); border: 0; animation: agDrift 22s ease-in-out infinite reverse; }

#ageGate .age-gate-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  margin: auto;
  padding: 36px 30px 26px !important;
  background: #FFFFFF !important;
  border: 1px solid #ECE7EC !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6) !important;
  text-align: center;
  animation: agRise .6s cubic-bezier(.2, .8, .2, 1) both;
}
#ageGate .age-gate-card > * { animation: agRise .6s cubic-bezier(.2, .8, .2, 1) both; }
#ageGate .age-gate-card > :nth-child(1) { animation-delay: .08s; }
#ageGate .age-gate-card > :nth-child(2) { animation-delay: .14s; }
#ageGate .age-gate-card > :nth-child(3) { animation-delay: .20s; }
#ageGate .age-gate-card > :nth-child(4) { animation-delay: .26s; }
#ageGate .age-gate-card > :nth-child(5) { animation-delay: .32s; }
#ageGate .age-gate-card > :nth-child(6) { animation-delay: .38s; }
#ageGate .age-gate-card > :nth-child(7) { animation-delay: .44s; }

#ageGate .age-gate-badge {
  position: relative;
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 22px;
  background: #E11D48 !important;
  box-shadow: none !important;
  color: #fff; line-height: 1; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em;
}
#ageGate .age-gate-badge::after {
  content: ""; position: absolute; inset: -8px; border-radius: 28px;
  border: 2px solid #E11D48; opacity: 0;
  animation: agRing 2.4s ease-out infinite .8s;
}
#ageGate .age-gate-badge span { animation: agPop .5s cubic-bezier(.3, 1.6, .5, 1) both .25s; }

#ageGate .age-gate-title {
  margin: 0 0 8px; color: #16121A !important;
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em;
  background: none !important; -webkit-text-fill-color: currentColor !important;
}
#ageGate .age-gate-subtitle { margin: 0 0 20px; color: #6B6470 !important; font-size: .92rem; line-height: 1.55; }

#ageGate .age-gate-warning {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  margin: 0 0 12px; padding: 12px 14px;
  background: #FFF1F3 !important; border: 0 !important; border-radius: 16px !important;
  color: #9F1239 !important; font-size: .84rem; line-height: 1.5;
}
#ageGate .ag-warn-ico { flex: none; margin-top: 1px; color: #E11D48; }

#ageGate .age-gate-checkbox-row {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  margin: 0 0 18px; padding: 14px;
  background: #F7F5F8 !important; border: 1.5px solid transparent !important; border-radius: 16px !important;
  cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
#ageGate .age-gate-checkbox-row:hover { border-color: #F3C4CF !important; }
#ageGate .age-gate-checkbox-row:active { transform: scale(.99); }
#ageGate .age-gate-checkbox-row:has(input:checked) { background: #FFF1F3 !important; border-color: #E11D48 !important; }
#ageGate .age-gate-checkbox-row label { color: #2A232E !important; font-size: .86rem; line-height: 1.5; cursor: pointer; }
#ageGate .age-gate-checkbox-row a { color: #E11D48 !important; font-weight: 600; }

#ageGate #ageCheckbox {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px;
  border: 2px solid #CFC7D2; background: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
#ageGate #ageCheckbox::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
#ageGate #ageCheckbox:checked { background: #E11D48; border-color: #E11D48; animation: agPop .3s ease; }
#ageGate #ageCheckbox:checked::after { transform: rotate(45deg) scale(1); }

#ageGate .age-gate-enter-btn {
  position: relative; overflow: hidden;
  width: 100%; height: 54px; border: 0 !important; border-radius: 16px !important;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #EDE9EE !important; color: #A79FAB !important;
  box-shadow: none !important; opacity: 1 !important;
  font-family: inherit; font-size: .98rem; font-weight: 700;
  cursor: not-allowed; transition: background .25s, color .25s, transform .15s;
}
#ageGate .age-gate-enter-btn svg { transition: transform .25s; }
#ageGate .age-gate-enter-btn.active { background: #E11D48 !important; color: #fff !important; cursor: pointer; animation: agNudge .45s ease; }
#ageGate .age-gate-enter-btn.active:hover { background: #BE123C !important; }
#ageGate .age-gate-enter-btn.active:hover svg { transform: translateX(4px); }
#ageGate .age-gate-enter-btn.active:active { transform: scale(.98); }
#ageGate .age-gate-enter-btn.active::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: rgba(255, 255, 255, .18); transform: skewX(-20deg);
  animation: agSweep 2.8s ease-in-out infinite 1s;
}

#ageGate .age-gate-legal { margin: 16px 0 0; color: #A39BA7 !important; font-size: .72rem; line-height: 1.5; }

/* Oscuro */
body.dark-theme #ageGate .age-gate-card { background: #16141B !important; border-color: #26222D !important; }
body.dark-theme #ageGate .age-gate-title { color: #F5F2F7 !important; }
body.dark-theme #ageGate .age-gate-subtitle { color: #A29AA8 !important; }
body.dark-theme #ageGate .age-gate-warning { background: rgba(225, 29, 72, .12) !important; color: #FDA4AF !important; }
body.dark-theme #ageGate .age-gate-checkbox-row { background: #1F1C25 !important; }
body.dark-theme #ageGate .age-gate-checkbox-row:has(input:checked) { background: rgba(225, 29, 72, .12) !important; }
body.dark-theme #ageGate .age-gate-checkbox-row label { color: #E4DFE8 !important; }
body.dark-theme #ageGate #ageCheckbox { background: transparent; border-color: #4A4351; }
body.dark-theme #ageGate .age-gate-enter-btn:not(.active) { background: #25212B !important; color: #6E6675 !important; }

@media (max-width: 520px) {
  #ageGate { padding: 16px !important; align-items: center !important; }
  #ageGate .age-gate-card { padding: 28px 20px 20px !important; border-radius: 24px !important; }
  #ageGate .age-gate-badge { width: 62px; height: 62px; margin-bottom: 14px; border-radius: 19px; }
  #ageGate .age-gate-title { font-size: 1.35rem; }
  #ageGate .age-gate-subtitle { margin-bottom: 16px; font-size: .86rem; }
}

@keyframes agFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes agRise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes agPop   { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes agRing  { 0% { opacity: .5; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes agDrift { 50% { transform: translate(-30px, 30px) scale(1.05); } }
@keyframes agNudge { 30% { transform: scale(1.03); } 60% { transform: scale(.99); } }
@keyframes agSweep { 0% { left: -60%; } 45%, 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  #ageGate, #ageGate *, #ageGate::before, #ageGate::after { animation: none !important; }
}
