/* Variables de diseño */
:root {
    --primary-color: #E68329; /* Naranja */
    --primary-hover-color: #E66229; /* Naranja más oscuro para hover */
    --background-color: #F3F6FA; /* Fondo claro */
    --text-color: #000000; /* Texto oscuro */
    --form-background: #FFFFFF; /* Fondo del formulario */
    --border-color: #CCCCCC; /* Bordes suaves */
    --font-family: 'Roboto', sans-serif; /* Fuente Roboto */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Sombra ligera */
}

/* Asegurarse de que la fuente 'Roboto' se aplique correctamente */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Fondo animado */
body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #FDE68A, #F59E0B, #F97316, #EA580C, #C2410C);
  background-size: 400% 400%;
  animation: animatedGradient 15s ease infinite;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@keyframes animatedGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Encabezado */
header {
    text-align: center;
    margin-bottom: 30px; /* Mayor espacio entre el título y el formulario */
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 8px;
    border-bottom: 3px solid #ffffff55; /* Más gruesa y visible, pero aún elegante */
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}


/* Contenedor del formulario */
.form-container {
    background-color: var(--form-background);
    padding: 30px 60px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-color);
    box-sizing: border-box;
    max-width: 800px; /* ← más ancho */
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
}


/* Formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grupos del formulario */
.form-group {
    text-align: left;
}

label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

/* Campos de entrada */
select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--form-background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

/* Eliminar borde y sombra al hacer focus */
select:focus {
    border-color: var(--border-color); /* El borde permanece igual */
    box-shadow: none; /* Elimina la sombra */
    outline: none; /* Elimina el contorno por defecto */
}

/* Botón principal */
button {
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    margin-top: 10px; /* Separación superior entre el botón y el contenido */
}

button i {
    margin-right: 10px;
}

button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Botón de retroceso */
.back-button-container {
    margin-top: 30px;
    display: flex;
    justify-content: center; /* Alineación centrada */
    width: 100%;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button i {
    margin-right: 10px;
}

.back-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

.back-button:active {
    transform: translateY(0);
}

/* Adaptabilidad */
@media (max-width: 480px) {
    .form-container {
        padding: 20px;
        max-width: 100%;
    }

    header h1 {
        font-size: 24px;
    }

    button, .back-button {
        font-size: 14px;
    }
}

header,
.form-container,
.back-button-container {
  margin-left: auto;
  margin-right: auto;
}
