:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --text-light: #ffffff;
  --text-dark: #1e293b;
  --bg-light: #f8fafc;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, var(--primary-dark), var(--primary));
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1rem;
}

/* HERO */
.hero {
  margin-bottom: 3rem;
}

.logo-grande {
  width: 130px;
  height: auto;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

.eslogan {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: white;
}

.eslogan span {
  font-size: 1rem;
  font-weight: 400;
  display: block;
  margin-top: 0.5rem;
  opacity: 0.85;
}

/* FORMULARIO */
.formulario {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.campo-busqueda,
.selector {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.campo-busqueda {
  background: white;
  color: var(--text-dark);
}

.selector {
  appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.939l3.71-3.71a.75.75 0 111.06 1.061l-4.24 4.24a.75.75 0 01-1.06 0l-4.24-4.24a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 1rem center;
  background-size: 1rem;
  color: var(--text-dark);
}

/* BOTÓN */
.boton-buscar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.boton-buscar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* SPINNER */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top: 6px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* RESPONSIVE */
@media (max-width: 600px) {
  .eslogan {
    font-size: 1.4rem;
  }

  .formulario {
    width: 100%;
    padding: 0 1rem;
  }
}
