/* --- ESTILOS GENERALES --- */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 40px 0;
}

.section {
    padding: 20px 0;
    text-align: center;
}

.section h2 {
    color: #b30000;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid #b30000;
    display: inline-block;
    padding-bottom: 5px;
}

/* --- ENCABEZADO (HEADER) --- */
header {
    background-color: #ff0000;
    color: white;
    padding: 20px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- ESTILOS PARA EL BOTÓN FIJO EN LA ESQUINA (volver-inicio) --- */
.volver-inicio {
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: #ff00008e; 
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    border: none; 
    cursor: pointer; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.volver-inicio:hover {
    background-color: #c20000;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

/* --- SECCIÓN DE COMPROMISOS (CUADRÍCULA) --- */
.commitment-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.commitment-item {
    flex-basis: 30%; 
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.commitment-item i {
    font-size: 3em;
    color: #a79a28; /* Color para los íconos de compromisos */
    margin-bottom: 15px;
}


/* --- SECCIÓN DE NIVELES EDUCATIVOS (CUADRÍCULA) --- */
.level-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.level-item {
    flex-basis: 30%; 
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.level-item:hover {
    transform: translateY(-5px);
}

.level-item i {
    font-size: 3em;
    color: #b30000; /* Color rojo para los íconos de niveles */
    margin-bottom: 15px;
}

.level-item h3 {
    color: #343a40;
    margin-bottom: 10px;
}

.level-button {
    display: inline-block;
    background-color: #b30000;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.level-button:hover {
    background-color: #7a0000;
}

/* --- SECCIÓN DE MATRÍCULA Y REQUISITOS (2 COLUMNAS) --- */
.enrollment-columns {
    display: flex;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

.enrollment-box {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

.requirements-list li i {
    color: #a79a28;
    margin-right: 10px;
}

.info-button {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.info-button:hover {
    background-color: #b30000;
}

/* --- PIE DE PÁGINA (FOOTER) --- */
footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 40px 20px 20px;
    margin-top: 40px;
    font-size: 0.9em;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
}

.footer-column {
    flex-basis: 30%;
    margin-bottom: 20px;
    min-width: 250px;
}

.footer-column h3 {
    color: white;
    font-size: 1.2em;
    border-bottom: 1px solid #495057;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 8px;
}

.contact-list li i {
    color: #b30000;
    margin-right: 8px;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    font-size: 1.5em;
    color: white;
    transition: color 0.3s;
}

.social-link:hover {
    color: #b30000;
}

.copyright {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 0.8em;
}