/* ========================================================================== 
   Registro: sede simple y fecha de nacimiento tipo wheel picker
   Este archivo se carga después de auth.css para evitar tocar estilos globales.
   ========================================================================== */

.rb-auth-input--sede select {
  font-weight: 900;
}

.rb-auth-sede-summary {
  display: none !important;
}

.rb-auth-field--birth {
  position: relative;
}

.rb-auth-date-trigger {
  width: 100%;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--auth-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
    var(--auth-input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.16s ease;
}

.rb-auth-date-trigger:hover,
.rb-auth-date-trigger:focus-visible {
  border-color: var(--auth-border-strong);
  box-shadow: 0 0 0 4px rgba(218, 198, 20, 0.08);
  outline: 0;
}

.rb-auth-date-trigger i {
  color: var(--auth-muted);
  font-size: 1rem;
  text-align: center;
}

.rb-auth-date-trigger span {
  min-width: 0;
  overflow: hidden;
  color: var(--auth-text);
  font-size: 0.95rem;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rb-auth-date-trigger strong {
  color: var(--auth-yellow);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rb-auth-date-trigger:not(.has-value) span {
  color: #8f8f8f;
  font-weight: 750;
}

.rb-auth-date-open {
  overflow: hidden;
}

.rb-auth-date-modal[hidden] {
  display: none !important;
}

.rb-auth-date-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
}

.rb-auth-date-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.rb-auth-date-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(680px, calc(100dvh - 32px));
  border: 1px solid var(--auth-border);
  border-radius: 30px;
  overflow: hidden;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 50% 0%, rgba(218, 198, 20, 0.08), transparent 30%),
    linear-gradient(180deg, #262626 0%, #1e1e1e 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
}

.rb-auth-date-sheet__handle {
  width: 48px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(228, 228, 228, 0.22);
}

.rb-auth-date-sheet__header {
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--auth-border);
}

.rb-auth-date-sheet__header div {
  min-width: 0;
}

.rb-auth-date-sheet__header span {
  display: block;
  margin-bottom: 4px;
  color: var(--auth-yellow);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-auth-date-sheet__header h3 {
  margin: 0;
  color: var(--auth-text);
  font-size: 1.26rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.rb-auth-date-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--auth-text-soft);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  cursor: pointer;
}

.rb-auth-date-close i {
  font-size: 1rem;
  line-height: 1;
}

.rb-auth-date-wheel-frame {
  position: relative;
  padding: 18px 14px;
  overflow: hidden;
}

.rb-auth-date-wheels {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 0.78fr 1fr;
  gap: 8px;
}

.rb-auth-date-wheel-col {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.rb-auth-date-wheel-col > span {
  color: var(--auth-muted);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.rb-auth-date-wheel {
  height: 206px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.rb-auth-date-wheel::-webkit-scrollbar {
  display: none;
}

.rb-auth-date-wheel__spacer {
  height: 72px;
}

.rb-auth-date-wheel__item {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: rgba(228, 228, 228, 0.44);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  scroll-snap-align: center;
  cursor: pointer;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.rb-auth-date-wheel__item:hover {
  color: var(--auth-text);
  background: rgba(255, 255, 255, 0.045);
}

.rb-auth-date-wheel__item.is-selected {
  color: #151515;
  background: linear-gradient(180deg, var(--auth-yellow-2), var(--auth-yellow));
  box-shadow: 0 12px 26px rgba(218, 198, 20, 0.18);
  transform: scale(1.03);
}

.rb-auth-date-wheel-selected {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  top: 96px;
  height: 52px;
  border-top: 1px solid rgba(218, 198, 20, 0.24);
  border-bottom: 1px solid rgba(218, 198, 20, 0.24);
  pointer-events: none;
}

.rb-auth-date-wheel-fade {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 64px;
  pointer-events: none;
}

.rb-auth-date-wheel-fade--top {
  top: 0;
  background: linear-gradient(180deg, #242424 0%, rgba(36, 36, 36, 0) 100%);
}

.rb-auth-date-wheel-fade--bottom {
  bottom: 0;
  background: linear-gradient(0deg, #1e1e1e 0%, rgba(30, 30, 30, 0) 100%);
}

.rb-auth-date-actions {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--auth-border);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.rb-auth-date-action {
  min-height: 52px;
  border-radius: 16px;
  border: 0;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 950;
  cursor: pointer;
}

.rb-auth-date-action--primary {
  color: #151515;
  background: linear-gradient(180deg, var(--auth-yellow-2), var(--auth-yellow));
}

.rb-auth-date-action--ghost {
  color: var(--auth-text);
  border: 1px solid var(--auth-border);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 360px) {
  .rb-auth-date-wheels {
    gap: 6px;
  }

  .rb-auth-date-wheel__item {
    font-size: 0.9rem;
  }

  .rb-auth-date-actions {
    grid-template-columns: 1fr;
  }
}
