/* =========================================
   VARIABLES Y TEMA GLOBAL (Mundial Premium)
========================================= */
:root {
  /* Fondo general (Azul Noche muy oscuro) */
  --bg-color: #020617;
  /* Fondo de las tarjetas (Azul pizarra) */
  --card-bg: #0f172a;
  /* Bordes sutiles */
  --border: #1e293b;

  /* Textos */
  --text: #f8fafc;
  --muted: #94a3b8;

  /* Colores vibrantes */
  --primary: #0ea5e9;
  /* Cyan brillante */
  --primary-hover: #0284c7;
  --accent: #fbbf24;
  /* Dorado / Amarillo Estrella */
  --ok: #10b981;
  /* Verde éxito */

  /* Fondo de inputs */
  --input-bg: #1e293b;
}

* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Fondo de la página */
body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 15px;
  /* Espaciado para que no toque los bordes en móviles */
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--bg-color) 60%);
  background-attachment: fixed;
}

/* =========================================
   TARJETAS Y ESTRUCTURA BASE
========================================= */
.card {
  width: 100%;
  max-width: 850px;

  /* Magia de Cristal: Fondo semi-transparente + Desenfoque */
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(15px);
  /* Hace que el fondo se vea borroso por detrás */

  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

h1 {
  margin: 0 0 20px 0;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

h2 {
  margin: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

label {
  display: block;
  margin-top: 15px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   INPUTS Y SELECTS (Más legibles)
========================================= */
input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  border-color: var(--primary);
  background: #0f172a;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

input::placeholder {
  color: #64748b;
}

select {
  cursor: pointer;
}

/* =========================================
   BOTONES
========================================= */
button {
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

button:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hidden {
  display: none !important;
}

.mensaje {
  margin-top: 15px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.subtitulo {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================
   SISTEMA DE PESTAÑAS (TABS) - Responsivas
========================================= */
.tabs {
  display: flex;
  flex-wrap: wrap;
  /* Clave para móviles: si no entran, bajan */
  gap: 10px;
  margin: 10px 0 25px 0;
  padding: 5px;
  background: var(--input-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tab {
  margin-top: 0;
  flex: 1;
  /* Crecen parejo */
  min-width: 100px;
  /* En móviles muy chicos, se apilan */
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  box-shadow: none;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tabContent {
  animation: fadeIn 0.3s ease;
}

/* =========================================
   ESTILOS DE LOS PARTIDOS (LISTA)
========================================= */
.match {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 15px 0;
  background: var(--input-bg);
}

.teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team span {
  font-weight: 700;
  font-size: 16px;
}

.flag {
  width: 35px;
  height: 25px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botones de pronóstico (A / E / B) */
.resultado {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.pick {
  margin-top: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 12px;
  color: var(--muted);
  box-shadow: none;
}

.pick:hover {
  border-color: var(--primary);
  color: var(--text);
}

.pick.active {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--ok);
  color: var(--ok);
}

/* =========================================
   LOGIN ADMIN (ACCESO VIP)
========================================= */
.admin-login-card {
  max-width: 400px;
  margin: 10vh auto;
}

.admin-header {
  text-align: center;
  margin-bottom: 25px;
}

.admin-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
}

.pin-input {
  text-align: center;
  font-size: 32px !important;
  letter-spacing: 15px;
  font-weight: 900;
  padding: 15px !important;
  color: var(--accent) !important;
  /* El PIN se ve dorado */
}

.pin-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.btn-admin-login {
  background: var(--text);
  color: #000;
}

.btn-admin-login:hover {
  background: var(--accent);
}

/* =========================================
   SORTEADOR OFICIAL
========================================= */
.sorteador-stage {
  margin-top: 25px;
  background: #020617;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--input-bg);
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.stage-header h3 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.neon-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.winner-display {
  position: relative;
  padding: 50px 20px;
  text-align: center;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rolling-names {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
}

.rolling-names.spinning {
  color: var(--muted);
  filter: blur(1px);
}

.rolling-names.is-winner {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  animation: winnerPop 0.5s ease;
}

.stage-controls {
  padding: 20px;
  background: var(--input-bg);
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.btn-stop {
  background: #ef4444;
  width: auto;
  min-width: 200px;
}

.btn-stop:hover {
  background: #dc2626;
}

.btn-publish {
  background: var(--accent);
  color: #000;
  width: auto;
  min-width: 250px;
}

/* =========================================
   MISCELÁNEAS Y ANIMACIONES
========================================= */
.btn-glow {
  background: var(--primary);
}

.btn-glow:hover {
  background: var(--primary-hover);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes winnerPop {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDAD MÓVIL)
========================================= */
@media (max-width: 650px) {
  body {
    padding: 20px 10px;
  }



  /* Ajuste de Tabs en móvil */
  .tab {
    min-width: calc(50% - 10px);
    padding: 10px;
    font-size: 13px;
  }

  /* Ajuste de inputs emparejados (Buscador / Exportar) */
  div[style*="display:flex; gap:10px; align-items:flex-end;"] {
    flex-direction: column;
    align-items: stretch !important;
  }

  div[style*="display:flex; gap:10px; align-items:flex-end;"] button {
    margin-top: 10px !important;
    width: 100% !important;
  }

  /* Ajustes Sorteador móvil */
  .rolling-names {
    font-size: 32px;
  }

  .btn-stop,
  .btn-publish {
    width: 100%;
    min-width: 100%;
  }
}

/* =========================================
   TABLAS DE ADMINISTRACIÓN
========================================= */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-table td {
  color: var(--text);
  font-size: 14px;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* =========================================
   LOADER PELOTA Y POPUP MODAL
========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 25px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-icon {
  font-size: 55px;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.modal-message {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.modal-btn {
  width: 100%;
  margin-top: 0;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
}

/* Animación de la Pelota de Fútbol */
.soccer-loader {
  font-size: 65px;
  display: inline-block;
  filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.6));
  animation: spin 1.2s linear infinite, bounce 0.6s alternate infinite cubic-bezier(0.5, 0.05, 1, 0.5);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0) scaleY(0.9);
  }

  100% {
    transform: translateY(-40px) scaleY(1.05);
  }
}

/* ==========================================
   MEJORAS ESTÉTICAS LANDING PAGE
   ========================================== */
.landing-body {
  /* Separamos la imagen de las posiciones para que no haya conflictos */
  background-image: linear-gradient(rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.5)), url('fondo2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #020617;
  /* Fondo de resguardo por si tarda en cargar */

  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow-x: hidden;
}

.landing-container {
  max-width: 1000px;
  margin: 0 auto !important;
  /* Clave: Quitamos márgenes verticales que causan el scroll */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  /* Redujimos un poco el espacio entre elementos */
  text-align: center;
}

/* En pantallas grandes, ponemos texto a la izq y ganadores a la derecha */
@media(min-width: 900px) {
  .landing-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.badge-mundial {
  display: inline-block;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  margin-bottom: 15px;
}

/* WIDGET DE GANADORES (El reemplazo del cuadro verde) */
.winners-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(34, 197, 94, 0.3);
  /* Un toque verde arriba */
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.widget-header h3 {
  margin: 0;
  color: #86efac;
  font-size: 18px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.winners-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.winner-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  border-left: 3px solid var(--accent);
}

/* GRILLA PARA EL FORMULARIO (2 columnas en PC, 1 en Celu) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media(min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ANIMACIÓN DEL LOADER DE PELOTA */
.soccer-loader {
  display: inline-block;
  animation: spinSoccer 1s linear infinite;
}

@keyframes spinSoccer {
  100% {
    transform: rotate(360deg);
  }
}



.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  /* Más angosto para que el centro quede perfecto */
  width: 95%;
  margin: 40px auto;
  text-align: center;
  /* Centramos el texto general */
}

/* Ajuste para que la lista de pasos no quede descentrada */
.steps-box {
  text-align: left;
  /* Mantiene el texto alineado a la izquierda */
  display: inline-block;
  /* Pero centra el bloque entero */
  margin-top: 30px;
}

/* WIDGET DE GANADORES (El reemplazo del cuadro verde) */
.winners-widget {
  width: 100%;
  max-width: 600px;
  /* Evita que se estire a lo loco en PC */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(34, 197, 94, 0.3);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

:root {
  --primary: #0ea5e9;
  --accent: #fbbf24;
  --bg: #020617;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
}



/* Luces de Estadio (Focos) */
.stadium-light {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
}

.light-left {
  top: -200px;
  left: -200px;
  background: #0ea5e9;
}

.light-right {
  bottom: -200px;
  right: -200px;
  background: #7c3aed;
}

.landing-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  text-align: center;
}

/* Logo con Estilo Mundialista */
.logo-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  margin: 0;
  text-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

.logo-title span {
  /* Texto con degradado de Azul a Turquesa */
  background: linear-gradient(to right, #0ea5e9, #2dd4bf);
  -webkit-background-clip: text;
  /* Para navegadores basados en WebKit */
  background-clip: text;
  /* Propiedad estándar (La que te pide VS Code) */
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Alternativa estándar para el color del texto */
}

.logo-underline {
  width: 100px;
  height: 6px;
  background: var(--primary);
  margin: 10px auto;
  border-radius: 3px;
  box-shadow: 0 0 15px var(--primary);
}

/* Tarjetas de Pasos (Glassmorphism) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

/* Tarjetas de Pasos (Glassmorphism Oscurecido) */
.step-card {
  background: rgba(2, 6, 23, 0.9) !important;
  /* Vidrio casi negro para dar contraste */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 24px;
  transition: transform 0.3s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  /* Sombra extra para despegarla del fondo */
}

.step-card:hover {
  transform: translateY(-8px);
  background: rgba(15, 23, 42, 0.95) !important;
}

.step-card h4 {
  color: #fff;
  margin: 10px 0;
  font-size: 20px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  /* Resalta el título */
}

.step-card p {
  color: #f8fafc !important;
  /* Blanco tiza en lugar de gris */
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  /* Sombra negra detrás de las letritas */
}

.step-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
}

.step-icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}

.step-card h4 {
  color: #fff;
  margin: 10px 0;
  font-size: 20px;
}

.step-card p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

/* Botón "Glow" Pro */
.btn-main-glow {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 20px 50px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  letter-spacing: 1px;
}

.btn-main-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.7);
}

/* Panel de Ganadores Estilo Tablero LED */
.winners-glass-panel {
  width: 100%;
  max-width: 700px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.live-indicator {
  background: #ef4444;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* Loader Pelota */
.soccer-loader {
  font-size: 60px;
  animation: bounceSoccer 0.6s infinite alternate, rotateSoccer 1s infinite linear;
  filter: drop-shadow(0 0 20px #fff);
}

@keyframes bounceSoccer {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-30px);
  }
}

@keyframes rotateSoccer {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   FORMULARIO GLOW (ESTILO VISTA PREVIA)
   ========================================== */
.form-glow-container {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 550px;
  animation: fadeIn 0.5s ease;
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.form-close:hover {
  color: #fca5a5;
}

/* Título del formulario */
.form-header h2 {
  font-size: 28px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-text-fill-color: transparent;
}

.form-header p {
  color: var(--muted);
  margin-bottom: 30px;
}

/* Inputs con efecto "Stadium" */
.input-wrapper {
  margin-bottom: 20px;
}

.input-wrapper label {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

/* Botón Continuar */
.btn-continue {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-continue:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

/* Mensaje de error/éxito */
.form-message {
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
  font-size: 14px;
}

.form-message.success {
  color: #34d399;
}

.form-message.error {
  color: #f87171;
}

/* =========================================
   PARCHE: BOTÓN CERRAR MODAL
========================================= */
button.form-close {
  width: auto !important;
  background: transparent !important;
  padding: 5px !important;
  margin: 0 !important;
  box-shadow: none !important;
  border: none !important;
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--muted);
  font-size: 24px;
}

button.form-close:hover {
  background: transparent !important;
  color: #fca5a5 !important;
  transform: scale(1.1);
  box-shadow: none !important;
}

/* Título del formulario corregido */
.form-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 10px;
  /* Efecto de degradado recortado en el texto */
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =========================================
   PARCHE DEFINITIVO ANTI-SCROLL 
========================================= */
body.landing-body {
  padding: 0 !important;
  /* Mata el padding fantasma del body general */
  margin: 0 !important;
}

.landing-container {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 15px !important;
  /* Espacio mínimo para que no toque los bordes */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  /* Centra todo verticalmente */
  gap: 35px !important;
  /* Distancia perfecta entre logo, tarjetas y botón */
  text-align: center !important;
}

/* =========================================
   ALINEACIÓN PERFECTA DEL FORMULARIO
========================================= */
.form-grid .input-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Obliga a que los campos se alineen abajo */
}

.form-grid .input-wrapper label {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* =========================================
   PRIORIDAD MÁXIMA PARA EL LOADER
========================================= */
#globalLoader {
  z-index: 99999 !important;
  /* Te aseguras que tape incluso a la ventana de login */
}

/* --- ESTILOS PARA EL BUSCADOR (CHOICES.JS) --- */
.choices__inner {
  background-color: #111827 !important; /* El color de fondo oscuro de tus inputs */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  color: white !important;
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* El cuadro donde el usuario escribe para buscar */
.choices__input {
  background-color: transparent !important;
  color: white !important;
}

/* La lista desplegable con los resultados */
.choices__list--dropdown {
  background-color: #1f2937 !important;
  border: 1px solid #3b82f6 !important; /* Borde azul neón */
  color: white !important;
  border-radius: 8px;
  margin-top: 5px;
}

/* El elemento seleccionado o sobre el que pasas el ratón */
.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #3b82f6 !important;
  color: white !important;
}

/* Textos generales de la lista */
.choices__list--dropdown .choices__item {
  font-size: 14px;
}