/* ----------------------------------
   RESET BÁSICO Y CONFIGURACIÓN GLOBAL
---------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f7fa;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

/* ----------------------------------
   CONTENEDOR PRINCIPAL DEL FORMULARIO
---------------------------------- */
.form-container {
  background: white;
  border-radius: 8px;
  max-width: 420px;
  width: 100%;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------
   ENCABEZADO
---------------------------------- */
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #213B7B; /* Azul oscuro */
}

/* ----------------------------------
   ETIQUETAS
---------------------------------- */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #213B7B;
}

/* ----------------------------------
   CAMPOS DE ENTRADA Y SELECT
---------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  border: 1.5px solid #000;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

/* EFECTO AL ENFOCAR */
input:focus,
select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------
   BOTÓN DE ENVÍO
---------------------------------- */
button {
  width: 100%;
  background-color: #213B7B;
  color: white;
  padding: 0.7rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

button:hover,
button:focus {
  background-color: #0F2459;
  outline: none;
}

/* ----------------------------------
   VALIDACIÓN
---------------------------------- */
input:invalid,
select:invalid {
  border-color: #d93025;
}

input:invalid:focus,
select:invalid:focus {
  box-shadow: 0 0 6px rgba(217, 48, 37, 0.6);
}

/* ----------------------------------
   RESPONSIVIDAD PARA MÓVILES
---------------------------------- */
@media (max-width: 480px) {
  .form-container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  input,
  select,
  button {
    font-size: 1rem;
  }

  label {
    font-size: 0.95rem;
  }
}
