/* Sexshiva Age Gate ------------------------------------------------------- */

.ssag-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: #10080d;
  background: radial-gradient(120% 90% at 50% 0%, #241220 0%, #0d0509 70%);
  -webkit-font-smoothing: antialiased;
}

.ssag-box {
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: #171018;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  color: #f2eef1;
  font-family: inherit;
  text-align: center;
}

.ssag-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin: 0 auto 20px;
}

.ssag-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.ssag-text {
  margin: 0 0 22px;
  font-size: .95rem;
  line-height: 1.55;
  color: #cbc2c8;
}

.ssag-form {
  margin: 0;
}

/* Fecha de nacimiento ----------------------------------------------------- */

.ssag-dob {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.ssag-legend {
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.ssag-dob select {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #221a22;
  color: #f2eef1;
  font-size: .95rem;
  appearance: none;
}

.ssag-dob select:focus-visible,
.ssag-btn:focus-visible {
  outline: 2px solid var(--ssag-accent, #c2185b);
  outline-offset: 2px;
}

/* Solo lectores de pantalla ---------------------------------------------- */

.ssag-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Botones ---------------------------------------------------------------- */

.ssag-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ssag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease, background-color .15s ease;
}

.ssag-btn--yes {
  background: var(--ssag-accent, #c2185b);
  color: #fff;
}

.ssag-btn--yes:hover {
  filter: brightness(1.12);
}

.ssag-btn--no {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  color: #bdb3ba;
}

.ssag-btn--no:hover {
  background: rgba(255, 255, 255, .06);
  color: #f2eef1;
}

/* Aviso de rechazo ------------------------------------------------------- */

.ssag-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(220, 53, 69, .14);
  color: #ff9aa4;
  font-size: .88rem;
  line-height: 1.45;
}

.ssag-alert[hidden] {
  display: none;
}

.ssag-legal {
  margin: 18px 0 0;
  font-size: .75rem;
  line-height: 1.5;
  color: #8d8189;
}

.ssag-legal a {
  color: inherit;
  text-decoration: underline;
}

/* Estado bloqueado / cierre --------------------------------------------- */

.ssag-overlay.ssag-closing {
  opacity: 0;
  transition: opacity .18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ssag-btn,
  .ssag-overlay.ssag-closing {
    transition: none;
  }
}

@media (max-width: 400px) {
  .ssag-box {
    padding: 24px 18px 20px;
  }

  .ssag-title {
    font-size: 1.2rem;
  }
}

/* Impresion: el aviso nunca debe salir en papel ni en PDF */
@media print {
  .ssag-overlay {
    display: none !important;
  }
}
