/* Base reset */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fafafa;
}

.container {
    display: flex;
    flex-direction: column; /* Apilar verticalmente */
    align-items: center;    /* Centrar horizontalmente */
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
}

header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

header h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #222;
    margin: 0;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.form-group {
    flex: 1 1 300px; /* mínimo 300px, crecer si hay espacio */
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"] {
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="file"]:focus {
    border-color: #4caf50;
    outline: none;
}

.submit-btn {
    flex-basis: 100%; 
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.submit-btn input[type="submit"] {
    padding: 14px 40px;
    font-size: 1.2rem;
    background-color: #4CAF50;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn input[type="submit"]:hover {
    background-color: #45a049;
}
.form-section-title {
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #4caf50;
}
select {
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    border-color: #4caf50;
    outline: none;
}
.cancel-btn button {
    padding: 14px 40px;
    font-size: 1.2rem;
    background-color: #e74c3c;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease; 
}

.cancel-btn button:hover {
    background-color: #c0392b;
}

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;              /* Asegura que no exceda el ancho de la pantalla */
    box-sizing: border-box;   /* Incluye padding dentro del 100% de ancho */
    overflow-x: hidden;       /* Evita que el contenido sobresalga horizontalmente */
}
.encabezado-izquierda {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 15px;
}

.titulo-escuela h1 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.titulo-escuela p {
    text-align: center;
    margin-top: 30px;
}

.encabezado-derecha {
    text-align: right;
}

.usuario-info {
    font-size: 14px;
    margin-bottom: 5px;
}

.regresar button {
    padding: 14px 40px;
    font-size: 1.2rem;
    background-color: hsla(106, 9%, 52%, 0.895);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease; 
}

.regresar button:hover {
    background-color: #727374;
}
