html, body {
  background-color: #070A12;
  color: #F8FAFC;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

.hero-title {
  letter-spacing: -0.045em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
}

@keyframes pitchFloat {
  0%, 100% { transform: perspective(900px) rotateX(28deg) translateY(0px) scale(1); }
  50% { transform: perspective(900px) rotateX(31deg) translateY(-10px) scale(1.02); }
}

@keyframes radarSweep {
  0% { stroke-dashoffset: 600; opacity: 0.3; }
  50% { opacity: 0.95; }
  100% { stroke-dashoffset: 0; opacity: 0.3; }
}

@keyframes pulseAura {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.12); }
}

@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes dropdownPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ================= ANIMACIÓN DE RADAR BUSCANDO CANCHAS (360 GRADOS) ================= */
@keyframes radarSpin360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sonarWave {
  0% { transform: scale(0.2); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.radar-beam {
  background: conic-gradient(from 0deg, rgba(225, 29, 72, 0.55) 0deg, rgba(16, 185, 129, 0.25) 65deg, transparent 95deg, transparent 360deg);
  animation: radarSpin360 2.6s linear infinite;
  border-radius: 9999px;
}

.sonar-ring-1 { animation: sonarWave 2.4s cubic-bezier(0.1, 0.5, 0.3, 1) infinite; }
.sonar-ring-2 { animation: sonarWave 2.4s cubic-bezier(0.1, 0.5, 0.3, 1) 0.8s infinite; }
.sonar-ring-3 { animation: sonarWave 2.4s cubic-bezier(0.1, 0.5, 0.3, 1) 1.6s infinite; }

.pitch-loop { animation: pitchFloat 7s ease-in-out infinite; }
.laser-line { stroke-dasharray: 600; animation: radarSweep 6s linear infinite; }
.aura-loop { animation: pulseAura 6s ease-in-out infinite; }
.dropdown-anim { animation: dropdownPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.toast-anim { animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.fade-to-white {
  background: linear-gradient(180deg, #070A12 0%, #F8FAFC 16%, #FFFFFF 50%, #F8FAFC 84%, #070A12 100%);
}

.glass-panel {
  background: rgba(15, 21, 35, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.active-tab {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4);
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ================= MAPA FULLSCREEN SIN BORDES Y PINES INTERACTIVOS ================= */
#lienzo-mapa-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  background-color: #070A12 !important;
}

.leaflet-container img.leaflet-tile,
.leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}

.pujllay-map-pin {
  background: linear-gradient(135deg, #0F1523 0%, #1E293B 100%);
  border: 2px solid #E11D48;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 5px 11px;
  font-weight: 900;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.pujllay-map-pin:hover,
.pujllay-map-pin.pin-activo {
  background: #E11D48;
  border-color: #FFFFFF;
  transform: scale(1.18) translateY(-4px);
  z-index: 999 !important;
}

@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  textarea,
  [contenteditable="true"] {
    font-size: 16px !important;
    user-select: text !important;
    -webkit-user-select: text !important;
  }
}

button, a, [role="button"] {
  touch-action: manipulation;
}

/* =========================================================================
   ESTILOS GLOBALES DE CASILLAS DE ESCRITURA (admin-input-pro y Modo Claro)
   ========================================================================= */
.admin-input-pro {
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.72);
  color: #f8fafc;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-input-pro::placeholder {
  color: #64748b;
}

.admin-input-pro:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

/* En Modo Claro todas las casillas para escribir llevan borde negro nítido sobre blanco */
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not(.bg-transparent):not(.cinematic-field):not(#admin-vault-email):not(#admin-vault-pass),
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) textarea:not(.bg-transparent),
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .admin-input-pro,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .k-input,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .socio-field,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .socio-picker-btn {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #0F172A !important;
}

body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) input::placeholder,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) textarea::placeholder,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .admin-input-pro::placeholder,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .socio-field::placeholder {
  color: #475569 !important;
}

body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not(.bg-transparent):not(.cinematic-field):not(#admin-vault-email):not(#admin-vault-pass):focus,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) textarea:not(.bg-transparent):focus,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .admin-input-pro:focus,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .k-input:focus,
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) .socio-field:focus {
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18) !important;
}

/* Buscador principal (#buscador-texto): conservar solo el borde exterior del contenedor, sin borde interno */
body.pujllay-modo-claro:not(.pujllay-login-oscuro-activo) div:has(> div > #buscador-texto) {
  background-color: #FFFFFF !important;
  border: 1.5px solid #0F172A !important;
}

div:has(> #buscador-texto),
#buscador-texto {
  border: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* =========================================================================
   ESTILOS COMPARTIDOS DE RESERVA DE HORARIOS (CAJA MANUAL DUEÑO / TIENDA CLIENTE)
   ========================================================================= */
.num-tabular {
  font-variant-numeric: tabular-nums;
}

.slot-dueno-elegido {
  background: rgba(245, 158, 11, 0.16) !important;
  border: 2px solid #d97706 !important;
  box-shadow: 0 6px 20px -4px rgba(217, 119, 6, 0.28);
}

body.pujllay-modo-claro .slot-dueno-elegido {
  background: #fffbeb !important;
  border-color: #d97706 !important;
  color: #78350f !important;
}

body.pujllay-modo-claro .slot-dueno-elegido .slot-sub {
  color: #b45309 !important;
}

body:not(.pujllay-modo-claro) .slot-dueno-elegido {
  color: #fef3c7 !important;
}

body:not(.pujllay-modo-claro) .slot-dueno-elegido .slot-sub {
  color: #fbbf24 !important;
}