/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    line-height: 1.6;
    background-color: #f7f7f7;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004d99;  
    margin-bottom: 20px;
    border-bottom: 3px solid #00aaff;  
    padding-bottom: 10px;
}

.section-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.section-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Cabecera (Header) */
.header-bg {
    position: relative;
    height: 350px;  
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    background-image: url('/images/imagencabecera.jpg');  
    background-size: cover;
    background-position: center;
    transition: height 0.3s ease;  
}

.header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);  
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    max-width: 900px;  
}

.header-title {
    font-family: 'Montserrat', sans-serif;  
    font-size: 3rem;  
    font-weight: 700;  
    margin-bottom: 8px;  
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);  
    line-height: 1.2;  
}

.header-subtitle {
    font-family: 'Roboto', sans-serif;  
    font-size: 1.3rem; 
    font-weight: 400;  
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .header-bg {
        height: 280px;  
    }
    .header-title {
        font-size: 2rem; 
    }

    .header-subtitle {
        font-size: 1rem;
    }
}

/* Barra de Navegación (Navbar) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none; /* Asegura que el grupo de logo no tenga subrayado */
}

.navbar-logo-image {
    height: 90px; 
    margin-right: 10px; 
    border-radius: 5px;
}

.navbar-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004d99;
    text-decoration: none;
}

.navbar-logo-pnf {
    color:  #004d99;
}

.navbar-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 5px;
    column-gap: 15px;  
    margin-top: 5px;
}

.nav-link {
    font-size: 0.85rem; /* Fuente más pequeña */
    font-weight: 600;
    color: #555;
    text-decoration: none;
    padding: 0.4rem 0.6rem; /* Padding ajustado */
    border-radius: 9999px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Evita el salto de línea para enlaces cortos */
}

.nav-link:hover {
    background-color: #004d99;
    color: #ffffff;
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
    }

    .navbar-menu {
        margin-top: 10px;
        justify-content: space-around;
        width: 100%;
        column-gap: 5px; /* Ajuste para móviles */
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}


/* Layout de la sección "Qué es" (Dos columnas) */
.flex-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

@media (max-width: 900px) {
    .flex-container {
        flex-direction: column;
        gap: 20px;
    }
}

.section-image-left-container {
    flex-basis: 30%;  
    flex-shrink: 0;
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-text-right-container {
    flex-basis: 70%;  
}


.section-image {
    width: 100%;
    height: auto;
    display: block;
}
.section-images {
    width: 100%;
    height: auto;
    display:flex;
    
}
/* Pie de página (Footer) */
.footer {
    background-color: #004d99;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Seccion de estudiantes destacados */
.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #007bff;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #00aaff;
    padding-left: 10px;
}

.sub-subsection-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.project-group {
    margin-bottom: 40px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.project-image {
    width: 20%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.project-list li {
    background-color: #e9f5ff;
    border-left: 4px solid #007bff;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 1rem;
}

/* Seccion Plan de estudios */
.plan-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.plan-card {
    background-color: #e9f5ff;
    border: 1px solid #cceeff;
    border-radius: 12px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004d99;
    margin-bottom: 10px;
    border-bottom: 2px solid #00aaff;
    padding-bottom: 5px;
}

.card-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
}

.card-description {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-list {
    list-style: none;
    padding: 0;
}

.card-list li {
    font-size: 1rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #28a745;
}

.plan-note {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .plan-card {
        min-width: 100%;
    }
}
/* --- Nuevos Estilos para Plan de Estudios --- */

.subsection-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #ccc;
}

.subsection-container:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.flex-content-images {
    display: flex;
    flex-direction: row; /* Texto a la izquierda, imágenes a la derecha por defecto */
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.flex-content-images.reverse {
    flex-direction: row-reverse; /* Imágenes a la izquierda, texto a la derecha */
}

@media (max-width: 900px) {
    .flex-content-images,
    .flex-content-images.reverse {
        flex-direction: column; /* Apilar en pantallas pequeñas */
        align-items: center;
        text-align: center;
    }
    .text-content, .image-gallery-small {
        width: 100%;
    }
}

.text-content {
    flex: 2; /* Texto ocupa más espacio */
    line-height: 1.8;
}

.image-gallery-small {
    flex: 1; /* Imágenes ocupan menos espacio */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 2 columnas de imágenes pequeñas */
    gap: 15px;
    padding: 10px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}

.content-image {
    width: 100%;
    height: 120px; /* Altura fija para las imágenes */
    object-fit: cover;  
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.content-image:hover {
    transform: scale(1.02);
}

.profile-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-left: 5px solid #00aaff;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-card:last-of-type {
    margin-bottom: 0;
}

.profile-competences-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.profile-competences-list li {
    background-color: #e9f5ff;
    border-left: 4px solid #007bff;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.5;
}

.profile-competences-list li strong {
    color: #004d99;
} 

.flex-container {
    display: flex;
    flex-wrap: wrap;  
    justify-content: space-between;  
    align-items: flex-start; 
    margin-bottom: 20px;  
}

.section-image-left-container,
.section-image-right-container,
.section-text-left-container,
.section-text-right-container {
    flex: 1;  
    min-width: 300px;  
    padding: 15px;  
}

.section-image-left-container img,
.section-image-right-container img {
    max-width: 100%;
    height: auto;
    display: block;  
    border-radius: 8px;  
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);  
}

/* Para invertir el orden en dispositivos móviles   */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;  
    }
    .flex-container.reverse-order-mobile {
        flex-direction: column-reverse;  /
    }
    .section-image-left-container,
    .section-image-right-container,
    .section-text-left-container,
    .section-text-right-container {
        padding: 10px 0;  
    }
}

.styled-list {
    list-style: none;  
    padding: 0;
    margin: 0;
}

.styled-list li {
    background-color: #e9f7ef;  
    margin-bottom: 8px;
    padding: 10px 15px;
    border-left: 4px solid #4CAF50;  
    border-radius: 4px;
}

h3 {
    color: #004d99;  
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;  
    padding-bottom: 5px;
}
/* --- Nuevos Estilos para la sección de Plan de Estudios --- */


.single-large-image-container {
    flex: 1;
    min-width: 350px;  
    text-align: center;  
    padding: 15px;
}

.large-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);  
}

/* Contenedor general para los trayectos */
#trayectos-formacion {
    margin-top: 50px;
}

/* Estilo para cada tarjeta de Trayecto */
.trayecto-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    padding: 30px;
    border-left: 8px solid #007bff;  
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trayecto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.trayecto-card .sub-subsection-title {
    color: #004d99;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.trayecto-card .sub-subsection-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Flexbox para el contenido dentro de cada tarjeta de trayecto */
.trayecto-content-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;  
    align-items: flex-start;
}

/* Estilo para la columna de materias */
.trayecto-materias {
    flex: 2;  
    min-width: 300px;
}

.materias-title {
    color: #333;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px dashed #cccccc;
    padding-bottom: 10px;
}

/* Estilo para los botones de materia */
.materia-button {
    display: block; 
    background-color: #e6f2ff;  
    color: #004d99; 
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 1px solid #cce0ff;
}

.materia-button:hover {
    background-color: #007bff;  
    color: #ffffff;  
    transform: translateX(5px);  
    border-color: #007bff;
}

/* Estilo para la columna de imagen de certificación */
.trayecto-certificacion-image {
    flex: 1;  
    min-width: 250px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.trayecto-certificacion-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.certificacion-description {
    font-size: 1.05em;
    color: #555;
    line-height: 1.5;
}

/* Para invertir el orden de las columnas en trayectos específicos */
.trayecto-content-flex.reverse {
    flex-direction: row-reverse;
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .trayecto-content-flex {
        flex-direction: column;  
        align-items: center;
    }
    .trayecto-content-flex.reverse {
        flex-direction: column;  
    }
    .trayecto-materias, .trayecto-certificacion-image {
        min-width: 100%;
        padding: 0;  
    }
    .single-large-image-container {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .trayecto-card {
        padding: 20px;
    }
    .trayecto-card .sub-subsection-title {
        font-size: 1.4em;
    }
    .materias-title {
        font-size: 1.1em;
    }
    .materia-button {
        padding: 10px 15px;
    }
    .certificacion-description {
        font-size: 0.95em;
    }
}

/* Ajustes existentes de flex-content-images para mantener compatibilidad */
.flex-content-images {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.flex-content-images .text-content {
    flex: 1;
    min-width: 300px;
}
/* --- Estilos para la sección de Estudiantes Destacados --- */

/* Estilo para el párrafo introductorio central */
.introduction-text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;  
    padding: 0 20px;
}

.lead-paragraph {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
}

.image-container-center {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.image-container-center img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* Estilo base para cada tarjeta de proyecto */
.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    padding: 35px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-card-title {
    color: #004d99; /* Color para el título del proyecto */
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.project-card-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Flexbox para la descripción e imagen principal */
.project-overview-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;  
    gap: 30px;
    margin-bottom: 40px;
}

.project-description-text {
    flex: 2;  
    min-width: 300px;
    line-height: 1.7;
}

.project-main-image {
    flex: 1;  
    min-width: 300px;
    text-align: center;
}

.project-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Invertir el orden para tarjetas alternas */
.project-card.alternate .project-overview-flex {
    flex-direction: row-reverse;
}

/* Flexbox para los detalles adicionales */
.project-details-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    border-top: 1px dashed #eee;
    padding-top: 30px;
}

.project-details-left,
.project-details-right {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;  
}

/* Estilo para los títulos de sub-secciones dentro de la tarjeta */
.project-card h4.sub-subsection-title {
    color: #333;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

/* Estilo para las listas de proyectos (integrantes, aportes) */
.project-list {
    list-style: none;  
    padding: 0;
    margin-bottom: 20px;
}

.project-list.bullet-style li {
    position: relative;
    padding-left: 25px; /* Espacio para el bullet custom */
    margin-bottom: 8px;
    line-height: 1.5;
}

.project-list.bullet-style li::before {
    content: '•';  
    color: #007bff;  
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}


/* Galería de imágenes al final del proyecto */
.project-gallery-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;  
    margin-top: 40px;
    border-top: 1px dashed #eee;
    padding-top: 30px;
}

.project-gallery-bottom .sub-subsection-title {
    width: 100%;  
    text-align: center;
    margin-bottom: 25px;
    color: #004d99;
}

.project-gallery-bottom .project-image {
    max-width: 100%;
    height: auto;
    flex: 1 1 calc(33% - 20px);  
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-gallery-bottom .project-image:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}


/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .project-overview-flex,
    .project-details-flex {
        flex-direction: column;  
        align-items: center;
    }
    .project-card.alternate .project-overview-flex {
        flex-direction: column;  
    }
    .project-description-text,
    .project-main-image,
    .project-details-left,
    .project-details-right {
        min-width: 100%;
        padding: 0;
    }
    .project-card {
        padding: 25px;
        margin-bottom: 40px;
    }
    .project-card-title {
        font-size: 1.8em;
    }
    .project-gallery-bottom .project-image {
        flex: 1 1 calc(50% - 20px);  
    }
}

@media (max-width: 576px) {
    .project-card {
        padding: 20px;
    }
    .project-card-title {
        font-size: 1.5em;
    }
    .project-gallery-bottom .project-image {
        flex: 1 1 100%; /* 1 imagen por fila en móviles */
    }
    .lead-paragraph {
        font-size: 1.1em;
    }
}
/* --- Estilos para la sección de Contactos --- */
.contact-section {
    background-color: #f8f8f8;  
    padding: 60px 20px;
    text-align: center;
    border-top: 5px solid #007bff;  
    margin-top: 60px;  
}

.contact-section .section-title {
    color: #004d99;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
}

.contact-section .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    background-color: #ffffff;
    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex: 1 1 300px;  
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.contact-item .icon {
    font-size: 2.5em;
    color: #007bff;
    line-height: 1;  
}

.contact-item .contact-text {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    text-align: left;
}

.contact-item .contact-text strong {
    color: #004d99;
    display: block;  
    margin-bottom: 5px;
}

.contact-item .contact-text a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item .contact-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-map {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;  
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-map iframe,
.contact-map img {
    width: 100%;
    display: block;  
}

/* Estilos para el pie de página del sitio */
.site-footer {
    background-color: #004d99;  
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9em;
    margin-top: 0;  
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    .contact-item {
        max-width: 100%;  
        flex: 1 1 100%;
    }
    .contact-section {
        padding: 40px 15px;
    }
    .contact-section .section-title {
        font-size: 2em;
    }
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;  
    color: #333;
    line-height: 1.6;
}

.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.content-section {
    padding: 20px 0;
}

.section-title {
    font-size: 2.5em;
    color: #004d99;  
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff9900;  
    margin: 10px auto 0;
    border-radius: 2px;
}

.introduction-text-center {
    text-align: center;
    margin-bottom: 40px;
}

.lead-paragraph {
    font-size: 1.15em;
    color: #555;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.image-container-center {
    text-align: center;
    margin-bottom: 30px;
}

.content-image.large-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Estilos Específicos para la Sección de Profesores   --- */

.professors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));  
    gap: 30px;
    justify-content: center;  
    margin-top: 40px;
}

/* Para el último profesor que ocupa todo el ancho */
.professor-card.full-width {
    grid-column: 1 / -1;  
    max-width: 900px;  
    margin: 0 auto;  
}

.professor-card {
    background-color: #e0f7fa;  
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #004d99; 
}

.professor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.professor-header {
    background-color: #004d99;  
    padding: 20px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    min-height: 150px;  
}

.professor-photo {
    width: 100px;  
    height: 100px;  
    border-radius: 50%; 
    border: 4px solid #fff;  
    object-fit: cover;
    margin-right: 20px;
    flex-shrink: 0;  
}

.professor-title-area {
    flex-grow: 1;
}

.professor-name {
    font-size: 1.5em;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: #ff9900;  
}

.professor-role {
    font-size: 0.95em;
    margin: 5px 0 0;
    font-weight: 400;
    color: #e0f7fa;  
}

.professor-description {
    padding: 20px;
    color: #333;
    font-size: 0.95em;
    text-align: justify;
    background-color: #fff; 
    flex-grow: 1;  
}

.professor-description p {
    margin-bottom: 10px;
}

.professor-description p:last-child {
    margin-bottom: 0;
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .professors-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));  
        gap: 25px;
    }
    .professor-card.full-width {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        margin: 15px auto;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .lead-paragraph {
        font-size: 1em;
    }
    .professors-grid {
        grid-template-columns: 1fr;  
        gap: 20px;
    }
    .professor-card.full-width {
        max-width: 100%;
    }
    .professor-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .professor-photo {
        margin: 0 0 15px 0;  
    }
    .professor-name {
        font-size: 1.3em;
    }
    .professor-role {
        font-size: 0.9em;
    }
    .professor-description {
        font-size: 0.9em;
        padding: 15px;
    }
}
/* --- Estilos Específicos para la Sección de Noticias y Eventos --- */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.event-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}


.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 200px;  
    object-fit: cover;  
    display: block;
    border-bottom: 1px solid #eee;
}

.event-content {
    padding: 20px;
    flex-grow: 1;  
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.4em;
    color: #004d99;  
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.event-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: justify;
}
.event-descriptione {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: justify;
}
.event-description:last-child {
    margin-bottom: 0;
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        gap: 25px;
    }
    .event-image {
        height: 180px;
    }
    .event-title {
        font-size: 1.3em;
    }
    .event-description {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;  
        gap: 20px;
    }
    .event-image {
        height: 160px;
    }
    .event-title {
        font-size: 1.2em;
    }
    .event-description {
        font-size: 0.85em;
    }
    
}

/* --- ESTILOS PARA EL QUIZ OVERLAY --- */

/* Contenedor principal del overlay que cubre toda la pantalla */
#game-overlay {
    position: fixed;  
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);  
    display: flex; 
    justify-content: center;  
    align-items: center;  
    z-index: 1000;  
}

 
#game-overlay.hidden {
    display: none;
}

/* Contenedor del quiz     */
#game-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  
    text-align: center;
    max-width: 700px;  
    width: 90%;  
    box-sizing: border-box; 
    max-height: 90vh;
    overflow-y: auto;
}

/* Estilo para el título del quiz */
#game-container h2 {
    color: #0056b3;  
    margin-bottom: 15px;
    font-size: 1.8em;
}

/* Estilo para las instrucciones o descripción inicial del quiz */
#game-instructions {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Contenedor de las estadísticas (nivel, vidas, puntuación) */
#game-stats {
    display: flex;  
    justify-content: space-around;  
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e9ecef;  
    border-radius: 5px;
    font-weight: bold;
    color: #343a40;
    flex-wrap: wrap;  
}

#game-stats span {
    padding: 5px 10px;
    margin: 5px;  
}

/* Área donde se muestra la pregunta y las opciones */
#quiz-area {
    margin-top: 20px;
}

/* Estilo para el texto de la pregunta */
#question-text {
    font-size: 1.3em;
    margin-bottom: 25px;
    color: #333;
    min-height: 50px;   
    display: flex;  
    align-items: center;
    justify-content: center;
}

/* Contenedor para los botones de opción de respuesta */
#options-container {
    margin-bottom: 20px;
}

/* Estilo general para los botones de opción */
.option-button {
    display: block;  
    width: 80%;   
    margin: 10px auto;  
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f9fa;  
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;   
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    text-align: left; 
}

/* Efecto hover para los botones de opción */
.option-button:hover:not(:disabled) {
    background-color: #e2e6ea;
    transform: translateY(-2px);  
}

/* Efecto al hacer clic en los botones de opción */
.option-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);  
}

/* Estilo para botones de opción deshabilitados */
.option-button:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.8;
    color: #6c757d;
}

/* Estilo para el mensaje de feedback (Correcto/Incorrecto) */
#feedback-message {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.2em;
    min-height: 30px;  
    animation: fadeIn 0.5s ease-out;  
}

/* Estilo para el botón de cerrar el quiz */
#close-game {
    background-color: #007bff;  
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 25px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

/* Efecto hover para el botón de cerrar */
#close-game:hover {
    background-color: #0056b3;  
}

/* Animación de fade-in (usada en el feedback) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ESTILOS OPCIONALES PARA EL BOTÓN DE REABRIR EL JUEGO EN EL CONTENIDO PRINCIPAL --- */
/* Estilos para el botón flotante que abre el juego */
.floating-button {
    position: fixed;  
    bottom: 20px;    
    right: 20px;     
    width: 60px;     
    height: 60px;    
    border-radius: 50%;  
    background-color: #007bff;  
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); 
    display: flex;  
    justify-content: center;
    align-items: center;
    font-size: 2em;  
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 999;  
    text-decoration: none;  
}

.floating-button:hover {
    background-color: #0056b3;  
    transform: scale(1.05);  
}

.floating-button:active {
    transform: scale(0.95);  
}
/* --- FIN DE ESTILOS PARA EL QUIZ OVERLAY --- */
/* Animación de entrada para preguntas y opciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de salida (opcional, para cuando una pregunta desaparece) */
@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Aplicar la animación a la pregunta y opciones */
#question-text.animate-in,
#options-container.animate-in {
    animation: slideIn 0.5s ease-out forwards; 
}

#question-text.animate-out,
#options-container.animate-out {
    animation: slideOut 0.3s ease-in forwards;
}

/* Añadir un ligero temblor o rebote para el feedback de incorrecto */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

#feedback-message.shake {
    animation: shake 0.5s ease-in-out;
}
/* Estilos para la sección completa que contiene el formulario */
#feedback-informatica {
    padding: 60px 20px;  
    background-color: #f0f2f5;  
    text-align: center;  
    border-top: 1px solid #e0e0e0;  
    border-bottom: 1px solid #e0e0e0; 
}

/* Estilos para el contenedor del formulario y el texto */
.container-formulario {
    max-width: 900px;  
    margin: 0 auto;  
    background-color: #ffffff;  
    padding: 40px;  
    border-radius: 10px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);  
}

/* Estilos para el título principal de la sección */
#feedback-informatica h2 {
    color: #2c3e50;  
    font-size: 2.5em;  
    margin-bottom: 15px;  
    font-weight: 700;  
    letter-spacing: -0.5px;  
}

/* Estilos para el párrafo descriptivo */
#feedback-informatica p {
    color: #555; 
    font-size: 1.1em;  
    line-height: 1.6;   
    margin-bottom: 30px;  
    max-width: 700px;  
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para el iframe de Google Forms */
#feedback-informatica iframe {
    width: 100%;  
    min-height: 600px;  
    height: 900px;  
    border: 1px solid #dcdcdc;  
    border-radius: 8px;  
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);  
    background-color: #ffffff;  
}

/* Responsive   */
@media (max-width: 768px) {
    #feedback-informatica {
        padding: 40px 15px;
    }

    .container-formulario {
        padding: 25px;
        border-radius: 5px;
        box-shadow: none;  
    }

    #feedback-informatica h2 {
        font-size: 1.8em;
    }

    #feedback-informatica p {
        font-size: 1em;
    }
}