/* ==========================================================================
   HOJA DE ESTILOS FINAL Y VERIFICADA v4 - U.E.P. LA DOLOROSA
   ========================================================================== */

/* ... (Secciones 1 a 5 se mantienen igual) ... */
/* ---------------------------------- */
/* 1. VARIABLES Y ESTILOS GLOBALES
/* ---------------------------------- */
:root {
    --color-primario: #005A9C;
    --color-acento: #A7C644;
    --color-oscuro: #2C3E50;
    --color-gris-claro: #F5F7FA;
    --color-blanco: #FFFFFF;
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-cuerpo: 'Open Sans', sans-serif;
    --sombra-sutil: 0 4px 15px rgba(44, 62, 80, 0.08);
    --sombra-elevada: 0 10px 25px rgba(44, 62, 80, 0.12);
    --borde-redondeado: 8px;
    --transicion-suave: all 0.3s ease-in-out;
}
body { font-family: var(--fuente-cuerpo); background-color: var(--color-gris-claro); color: var(--color-oscuro); line-height: 1.7; margin: 0; padding-top: 82px; }
h1, h2, h3, h4, h5 { font-family: var(--fuente-titulos); font-weight: 700; }
.container { max-width: 1140px; }

/* ---------------------------------- */
/* 2. HEADER Y FOOTER
/* ---------------------------------- */
.navbar-main { background-color: var(--color-blanco); box-shadow: var(--sombra-sutil); padding: 15px 0; }
.navbar-main .navbar-brand img { height: 50px; }
.navbar-main .nav-link { font-weight: 600; font-size: 15px; color: var(--color-oscuro); margin: 0 10px; }
.navbar-main .nav-link:hover { color: var(--color-primario); }
.btn-contacto-nav { font-weight: 600; background-color: var(--color-acento); color: var(--color-blanco); border-radius: 50px; padding: 10px 25px; transition: var(--transicion-suave); }
.btn-contacto-nav:hover { color: var(--color-blanco); background-color: #8aa637; }
.main-footer { background-color: var(--color-oscuro); color: #A9B4C2; padding: 60px 0 20px 0; }
.footer-bottom { border-top: 1px solid #405265; text-align: center; padding-top: 20px; margin-top: 40px; font-size: 0.9rem; }
.footer-bottom a.admin-link { color: #7B93B5; text-decoration: none; } .footer-bottom a.admin-link:hover { color: var(--color-blanco); }
.social-icons a { color: #A9B4C2; font-size: 1.5rem; margin-right: 15px; transition: var(--transicion-suave); }
.social-icons a:hover { color: var(--color-acento); }

/* ---------------------------------- */
/* 3. SECCIONES DE PÁGINA
/* ---------------------------------- */
.hero-section { position: relative; height: 60vh; min-height: 450px; background-size: cover; background-position: center; color: var(--color-blanco); display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(0, 90, 156, 0.85) 0%, rgba(44, 62, 80, 0.7) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-title { font-size: 3.2rem; } .hero-subtitle { font-size: 1.3rem; font-weight: 300; max-width: 600px; margin: auto; margin-bottom: 2rem; }
.hero-content .btn-light { background-color: rgba(255, 255, 255, 0.9); border: 2px solid var(--color-blanco); color: var(--color-primario); font-weight: 700; padding: 12px 30px; border-radius: 50px; text-transform: uppercase; transition: var(--transicion-suave); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.hero-content .btn-light:hover { background-color: var(--color-acento); border-color: var(--color-acento); color: var(--color-blanco); transform: translateY(-3px); }
.page-header { background-color: var(--color-oscuro); color: var(--color-blanco); padding: 50px 0; text-align: center; }
.page-header h1 { color: var(--color-blanco); }
.content-section { padding: 80px 0; }
.section-title { font-size: 2.5rem; color: var(--color-oscuro); text-align: center; margin-bottom: 3rem; }
.impact-section { padding: 50px 0; background-color: var(--color-primario); color: var(--color-blanco); }
.impact-item h2 { font-size: 3.5rem; font-weight: 700; color: var(--color-blanco); }
.impact-item p { font-size: 1rem; color: rgba(255,255,255,0.8); }
.pillars-section { padding: 80px 0; background-color: var(--color-gris-claro); }
.cta-section { padding: 80px 0; background: linear-gradient(45deg, var(--color-primario), var(--color-oscuro)); color: var(--color-blanco); }
.cta-section h2 { color: var(--color-blanco); font-size: 2.5rem; }

/* ---------------------------------- */
/* 4. COMPONENTES (TARJETAS, MODALES)
/* ---------------------------------- */

/* --- Tarjetas --- */
.icon-card, .resource-card, .card { display: flex; flex-direction: column; width: 100%; height: 100%; }
.icon-card p, .resource-card-desc, .card-text { flex-grow: 1; }
.resource-card-footer, .card-body .btn-link { margin-top: auto; }
.icon-card { background-color: var(--color-blanco); border-radius: var(--borde-redondeado); padding: 30px; text-align: center; box-shadow: var(--sombra-sutil); transition: var(--transicion-suave); text-decoration: none; color: var(--color-oscuro); }
.icon-card:hover { transform: translateY(-8px); box-shadow: var(--sombra-elevada); text-decoration: none; color: var(--color-oscuro);}
.icon-card .icon { display: flex; justify-content: center; align-items: center; height: 60px; margin-bottom: 20px; font-size: 3rem; color: var(--color-primario); }
.icon-card .icon .icon-image { max-height: 100%; max-width: 100%; object-fit: contain; }
.icon-card h3 { font-size: 1.3rem; color: var(--color-oscuro); }
.resource-card { background-color: var(--color-blanco); border-radius: var(--borde-redondeado); box-shadow: var(--sombra-sutil); padding: 30px 25px; text-align: center; transition: var(--transicion-suave); border-top: 4px solid var(--color-primario); }
.resource-card:hover { transform: translateY(-8px); box-shadow: var(--sombra-elevada); border-top-color: var(--color-acento); }
.resource-card-icon { font-size: 3rem; color: var(--color-primario); margin-bottom: 20px; }
.resource-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 72px;
}
.resource-card-desc { font-size: 0.95rem; color: #6c757d; line-height: 1.6; margin-bottom: 20px; }
.resource-card-footer .btn { border-radius: 50px; padding: 8px 25px; font-weight: 600; }

/* --- Ventanas Modales --- */
@media (min-width: 992px) { .modal-lg { max-width: 800px; } }
.modal-header { background-color: var(--color-primario); color: var(--color-blanco); border-bottom: none; }
.modal-header .modal-title { font-family: var(--fuente-titulos); }
.modal-header .close { color: var(--color-blanco); opacity: 0.9; text-shadow: none; }
.modal-body { font-size: 1.1rem; line-height: 1.8; padding: 25px; overflow-wrap: break-word; }

/* ---------------------------------- */
/* 5. SOLUCIONES DE LAYOUT Y CONTENIDO
/* ---------------------------------- */
.noticia-contenido { font-size: 1.1rem; line-height: 1.8; overflow-wrap: break-word; }
.noticia-detalle-img { width: 100%; height: auto; border-radius: var(--borde-redondeado); margin-bottom: 2rem; }
.modal-body .noticia-contenido img, .noticia-contenido img { max-width: 100% !important; height: auto !important; display: block; margin: 15px 0; border-radius: var(--borde-redondeado); }
.modal-body .noticia-contenido table, .noticia-contenido table { width: 100% !important; table-layout: fixed; margin-bottom: 1rem; }
.noticia-contenido table, .noticia-contenido th, .noticia-contenido td { border: 1px solid #dee2e6; padding: .75rem; vertical-align: top; }
.row.d-flex > [class*='col-'] { display: flex; }


/* ---------------------------------- */
/* 6. ESTILOS PARA CUADRO DE HONOR (DISEÑO ABIERTO FINAL)
/* ---------------------------------- */

.honor-groups-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.honor-group-item {
    text-align: center;
    margin-bottom: 2rem;
}

.honor-group-title {
    font-size: 1.8rem;
    color: var(--color-oscuro);
    margin-top: 0;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--color-acento);
    padding-bottom: 15px;
    display: inline-block;
}

.honor-group-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    margin-bottom: 3rem;
}
.honor-group-container:last-child {
    margin-bottom: 0;
}

.honor-principal {
    position: relative;
    z-index: 2;
}

.escorts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    position: relative;
    margin-top: 40px;
    z-index: 2;
}

.honor-node {
    width: 200px;
    text-align: center;
    transition: var(--transicion-suave);
    position: relative;
}

.honor-node:hover {
    transform: scale(1.05);
}

.honor-node img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--color-blanco); /* CAMBIO: Borde por defecto es blanco */
    background-color: white;
    box-shadow: var(--sombra-elevada);
}

/* El borde de la imagen cambia si el estudiante es NEE */
.honor-node.is-nee img {
    border-color: var(--color-acento); /* Borde verde para NEE */
}

.honor-node h5, .honor-node h6 {
    font-family: var(--fuente-titulos);
    font-size: 1.1rem;
    color: var(--color-oscuro);
    margin-bottom: 5px;
}

.honor-node p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Estilo para la nueva etiqueta NEE */
.nee-badge {
    display: inline-block;
    background-color: var(--color-acento);
    color: white;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 8px;
}

/* ... (todo tu CSS existente va aquí arriba) ... */


/* ---------------------------------- */
/* 7. ESTILOS PARA MURO DE PASTORAL
/* ---------------------------------- */
.pastoral-post {
    background-color: var(--color-blanco);
    border-radius: var(--borde-redondeado);
    box-shadow: var(--sombra-sutil);
    margin-bottom: 2rem;
    overflow: hidden;
}

.pastoral-post .post-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-gris-claro);
}

.pastoral-post .post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primario);
    color: var(--color-blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.pastoral-post .post-meta {
    line-height: 1.2;
}

.pastoral-post .post-author {
    font-weight: 700;
    color: var(--color-oscuro);
    display: block;
}

.pastoral-post .post-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.pastoral-post .post-content {
    padding: 1.25rem;
}

.pastoral-post .post-content h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.pastoral-post .post-content p {
    margin-bottom: 0;
    white-space: pre-wrap; /* Respeta saltos de línea y espacios */
    line-height: 1.7;
}

.pastoral-post .post-image img {
    width: 100%;
    height: auto;
}

.pastoral-post .post-attachment {
    padding: 1rem 1.25rem;
    background-color: var(--color-gris-claro);
    border-top: 1px solid #e0e0e0;
}

/* ... (todo tu CSS existente) ... */

/* ---------------------------------- */
/* 8. ESTILOS PARA TARJETAS DE CLUBS
/* ---------------------------------- */
.club-card {
    height: 450px; /* Adjusted height for consistent card size */
    display: flex;
    flex-direction: column;
    /* Removed justify-content from here as card-body flex will handle button push */
}

.club-card .card-img-top {
    height: 180px; /* Fixed height for images to maintain consistency */
    object-fit: cover; /* Ensures images cover the area without distortion */
    width: 100%;
}

.club-card .card-body {
    flex-grow: 1; /* Allows the body to take up remaining space */
    display: flex;
    flex-direction: column;
    /* padding-bottom: 0; - Keep default padding or adjust as needed for button spacing */
}

.club-card .card-text {
    flex-grow: 1; /* Allows text to grow and take available space */
    overflow: hidden; /* Hides overflowing content */
    text-overflow: ellipsis; /* Adds ellipsis for overflowed text */
    display: -webkit-box; /* Required for -webkit-line-clamp */
    -webkit-line-clamp: 4; /* Number of lines to show before truncating */
    -webkit-box-orient: vertical; /* Required for -webkit-line-clamp */
    margin-bottom: 1rem; /* Adds space between text and button */
}

.club-card .card-body .btn {
    border-radius: 50px;
    font-weight: 600;
    margin-top: auto; /* Pushes the button to the bottom */
}



/* ==========================================================================
   9. CORRECCIONES RESPONSIVE PARA EL MENÚ
   ========================================================================== */

/* Se aplica solo en pantallas de laptop/tablet grandes (entre 992px y 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-main .nav-link {
    /* Reducimos el espaciado entre elementos del menú */
    margin: 0 6px;
    
    /* Hacemos la letra un poco más pequeña en este tamaño de pantalla */
    font-size: 14px;
  }
}