/* Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Buscador interno en el encabezado */
.site-search {
    position: absolute;
    top: 12px;
    right: 140px;
    margin: 0;
}

.site-search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 999px;
    padding: 4px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.site-search-input-wrapper i {
    color: #0D47A1;
    font-size: 0.85rem;
    margin-right: 6px;
}

#site-search-input {
    border: none;
    background: transparent;
    color: #0D47A1;
    font-size: 0.8rem;
    width: 190px;
}

#site-search-input::placeholder {
    color: #7a8ba8;
}

#site-search-input:focus {
    outline: none;
}

.site-search-results {
    position: absolute;
    top: 32px;
    right: 0;
    background-color: #ffffff;
    color: #333;
    min-width: 230px;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    display: none;
}

.site-search-results ul {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.site-search-results li a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: #333;
    font-size: 0.86rem;
}

.site-search-results li a strong {
    display: block;
}

.site-search-results li a small {
    display: block;
    color: #777;
    font-size: 0.74rem;
}

.site-search-results li a:hover {
    background-color: #f1f5ff;
}

@media (max-width: 992px) {
    .site-search {
        display: none;
    }
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

 .asistencia-section {
     background: linear-gradient(180deg, rgba(13, 71, 161, 0.04), rgba(255, 255, 255, 1));
 }

 .asistencia-layout {
     display: grid;
     grid-template-columns: 1fr 1.2fr;
     gap: 22px;
     margin-top: 22px;
 }

 .asistencia-card {
     background: #ffffff;
     border-radius: 14px;
     box-shadow: 0 10px 30px rgba(0,0,0,0.08);
     border: 1px solid rgba(0,0,0,0.06);
     padding: 18px;
 }

 .asistencia-card-title {
     margin: 0 0 14px 0;
     color: #0D47A1;
     font-size: 1.15rem;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .asistencia-form label {
     display: block;
     font-weight: 600;
     color: #1a4b8c;
     margin-bottom: 6px;
     font-size: 0.92rem;
 }

 .asistencia-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 12px;
 }

 .asistencia-field--full {
     grid-column: 1 / -1;
 }

 .asistencia-form input[type="text"],
 .asistencia-form input[type="date"],
 .asistencia-form input[type="time"],
 .asistencia-form select,
 .asistencia-form textarea {
     width: 100%;
     padding: 10px 12px;
     border-radius: 10px;
     border: 1px solid rgba(0,0,0,0.12);
     background: #ffffff;
     outline: none;
     font-size: 0.95rem;
 }

 .asistencia-form textarea {
     resize: vertical;
     min-height: 90px;
 }

 .asistencia-form input[type="text"]:focus,
 .asistencia-form input[type="date"]:focus,
 .asistencia-form input[type="time"]:focus,
 .asistencia-form select:focus,
 .asistencia-form textarea:focus {
     border-color: rgba(13, 71, 161, 0.55);
     box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.12);
 }

 .asistencia-actions {
     display: flex;
     justify-content: flex-end;
     gap: 10px;
     margin-top: 14px;
 }

 .asistencia-btn {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     border: none;
     border-radius: 999px;
     padding: 10px 14px;
     cursor: pointer;
     font-weight: 600;
     transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
 }

 .asistencia-btn:active {
     transform: translateY(1px);
 }

 .asistencia-btn-primary {
     background: #0D47A1;
     color: #ffffff;
     box-shadow: 0 10px 18px rgba(13, 71, 161, 0.22);
 }

 .asistencia-btn-primary:hover {
     background: #0b3a86;
 }

 .asistencia-btn-secondary {
     background: #f1f5ff;
     color: #0D47A1;
 }

 .asistencia-btn-secondary:hover {
     background: #e6eefc;
 }

 .asistencia-table {
     border-radius: 12px;
     overflow: hidden;
     border: 1px solid rgba(0,0,0,0.08);
 }

 .asistencia-table-row {
     display: grid;
     grid-template-columns: 2fr 0.9fr 0.9fr 2fr;
     align-items: center;
 }

 .asistencia-table-header {
     background: #f1f5ff;
 }

 .asistencia-table-header .asistencia-cell {
     font-weight: 700;
     color: #0D47A1;
     font-size: 0.9rem;
 }

 .asistencia-table-body {
     background: #ffffff;
 }

 .asistencia-table-body .asistencia-table-row:nth-child(even) {
     background: rgba(13, 71, 161, 0.03);
 }

 .asistencia-cell {
     padding: 10px 12px;
     border-bottom: 1px solid rgba(0,0,0,0.06);
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .asistencia-table-body .asistencia-table-row:last-child .asistencia-cell {
     border-bottom: none;
 }

 .asistencia-cell--name {
     font-weight: 600;
     color: #1a4b8c;
 }

 .asistencia-cell input[type="text"] {
     width: 100%;
     padding: 8px 10px;
     border-radius: 10px;
     border: 1px solid rgba(0,0,0,0.12);
 }

 .asistencia-cell input[type="radio"] {
     transform: scale(1.1);
 }

 @media (max-width: 992px) {
     .asistencia-layout {
         grid-template-columns: 1fr;
     }
 }

 @media (max-width: 576px) {
     .asistencia-grid {
         grid-template-columns: 1fr;
     }

     .asistencia-table-row {
         grid-template-columns: 1.5fr 1fr 1fr;
     }

     .asistencia-cell--notes {
         display: none;
     }
 }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
    scroll-margin-top: 90px;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #0056b3;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    position: relative;
    margin-bottom: 40px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #0056b3;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

.gallery-pagination .btn, .gallery-pagination .pag-num, .gallery-pagination .pag-arrow {
    background-color: #fff;
    color: #0056b3;
    padding: 0 18px;
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    font-weight: 500;
    margin: 0 2px;
    transition: background .2s, color .2s, border .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-pagination .btn.active, .gallery-pagination .pag-num.active {
    background-color: #2455a7;
    color: #fff;
    border-color: #2455a7;
    box-shadow: 0 2px 8px rgba(36,85,167,0.12);
}

.gallery-pagination .btn:hover:not(:disabled), .gallery-pagination .pag-num:hover:not(:disabled) {
    background-color: #e7f0fa;
    color: #2455a7;
    border-color: #b3c6e6;
}

.gallery-pagination .btn:disabled {
    background: #f5f5f5;
    color: #b0b0b0;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.gallery-pagination .pag-arrow {
    font-size: 1.4rem;
    padding: 0 14px;
}

.gallery-pagination .pag-ellipsis {
    margin: 0 5px;
    color: #888;
    font-size: 1.3rem;
    user-select: none;
}

.btn, .pag-num {
    background-color: #fff;
    color: #0056b3;
    padding: 0 18px;
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    font-weight: 500;
    margin: 0 2px;
    transition: background .2s, color .2s, border .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.active, .pag-num.active {
    background-color: #2455a7;
    color: #fff;
    border-color: #2455a7;
    box-shadow: 0 2px 8px rgba(36,85,167,0.12);
}

.btn:hover:not(:disabled), .pag-num:hover:not(:disabled) {
    background-color: #e7f0fa;
    color: #2455a7;
    border-color: #b3c6e6;
}

.btn:disabled {
    background: #f5f5f5;
    color: #b0b0b0;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.pag-arrow {
    font-size: 1.4rem;
    padding: 0 14px;
}

.pag-ellipsis {
    margin: 0 5px;
    color: #888;
    font-size: 1.3rem;
    user-select: none;
}

/* Encabezado */
header {
    background: linear-gradient(135deg, #0056b3, #003d7a);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
    padding: 5px 0;
    will-change: transform;
}

header.scrolled {
    padding: 2px 0;
    background: rgba(0, 59, 121, 0.95);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    flex-wrap: wrap;
    gap: 25px; /* Aumentar el espacio entre logo y menú */
}

@media (max-width: 768px) {
    header .container {
        justify-content: center;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 10px;
        justify-content: center;
    }
}

.logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#logo-img {
    height: 70px;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    object-fit: contain; /* Mantiene la proporción adecuada */
}

#logo-img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.4rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    max-width: 500px;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px; /* Mayor espacio entre elementos del menú */
}

nav ul li {
    position: relative;
    margin-bottom: 2px;
}

nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e6f0ff;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    margin: 0 3px; /* Espacio adicional entre enlaces */
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #ffffff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

nav ul li a i {
    margin-right: 4px;
    font-size: 0.9rem;
}

nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

nav ul li a:hover::before {
    width: 70%;
}

nav ul li a:active {
    transform: translateY(0);
}

/* Efecto activo para la navegación */
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul li a.active::before {
    width: 70%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Estilos para el botón de inicio de sesión */
.login-button {
    margin-right: 15px;
    display: flex;
    align-items: center;
    margin-top: 2px; /* Ajuste fino para alineación vertical */
}

/* Espacio adicional para el primer elemento del menú */
nav ul li:first-child {
    margin-left: 15px;
}

.btn-login {
    background: linear-gradient(135deg, #1a4b8c 0%, #0D47A1 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    height: 40px;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.3);
    letter-spacing: 0.3px;
    position: absolute;
    top: 10px;
    right: 20px;
    overflow: hidden;
    z-index: 100;
}

/* Efecto de brillo al hover */
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login i {
    margin-right: 0;
    position: relative;
    z-index: 2;
}

.btn-login span {
    position: relative;
    z-index: 2;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2a6eda 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.3);
}

/* Estilos para la modal de inicio de sesión */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal h2 {
    color: #0056b3;
    margin-bottom: 20px;
    text-align: center;
}

.modal h2::after {
    width: 60px;
    height: 3px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #0056b3;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #0056b3;
    outline: none;
}

.login-error {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.btn-submit {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #003d7a;
}

/* Estilos para cuando el usuario está autenticado */
.admin-controls {
    display: none;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.admin-controls h3 {
    margin-bottom: 10px;
    color: #0056b3;
}

.admin-button {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.admin-button:hover {
    background-color: #003d7a;
}

/* Sección Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Sección Sobre Nosotros */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.about-text, .about-image {
    flex: 1;
}

/* Sección Programas */
.program-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    flex: 0 0 calc(33.333% - 20px);
    max-width: 350px;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: #0056b3;
    margin-bottom: 20px;
}

/* Estilos para enlaces de descarga */
.download-links {
    margin-top: 25px;
    background-color: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 86, 179, 0.1);
    border-left: 4px solid #0056b3;
}

.download-links h3 {
    color: #0056b3;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.download-links h3:before {
    content: '\f019';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 1.2rem;
}

.download-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-links ul li {
    margin-bottom: 12px;
}

.download-links ul li:last-child {
    margin-bottom: 0;
}

.download-links ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: white;
    color: #0056b3;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e0e6ef;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.download-links ul li a:hover {
    background-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

.download-links ul li a i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #ff9900;
    transition: color 0.3s ease;
}

.download-links ul li a:hover i {
    color: white;
}

/* Sección Galería */
.gallery-container {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.gallery-items {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    min-height: 300px;
    margin-bottom: 35px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px 0 rgba(0,0,0,0.13);
    transition: box-shadow 0.3s, transform 0.3s;
    margin: 0 8px;
    min-width: 290px;
    max-width: 320px;
}
.gallery-item:hover {
    box-shadow: 0 12px 32px 0 rgba(0,0,0,0.18);
    transform: translateY(-6px) scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item-content {
    padding: 15px;
}

.gallery-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Sección Noticias y Anuncios - Nuevo diseño */

/* Encabezado de la sección con decoración */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
}

.decoration-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(13,71,161,0.1), rgba(13,71,161,0.8));
    flex-grow: 1;
    max-width: 100px;
}

.decoration-line:last-child {
    background: linear-gradient(90deg, rgba(13,71,161,0.8), rgba(13,71,161,0.1));
}

.decoration-icon {
    font-size: 24px;
    color: #0D47A1;
    margin: 0 15px;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(13,71,161,0.1);
}

.section-tagline {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Noticia destacada */
.featured-news {
    margin-bottom: 40px;
}

.news-highlight {
    position: relative;
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    border-radius: 12px;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 20px rgba(13,71,161,0.2);
}

.news-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M20,0 L100,80 M40,0 L100,60 M60,0 L100,40 M80,0 L100,20 M0,20 L80,100 M0,40 L60,100 M0,60 L40,100 M0,80 L20,100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #FF5722;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    z-index: 2;
}

.news-content {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.news-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.news-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.btn-news {
    display: inline-block;
    background-color: white;
    color: #0D47A1;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Filtros de noticias */
.news-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    color: #0D47A1;
}

.filter-btn.active {
    background-color: #0D47A1;
    color: white;
}

/* Controles y layout extendido de noticias */
.news-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.news-search {
    flex: 1;
    max-width: 320px;
}

.news-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d0d7e2;
    font-size: 0.95rem;
}

.news-search input:focus {
    outline: none;
    border-color: #0D47A1;
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.1);
}

.reports-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 25px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .reports-layout {
        grid-template-columns: 1fr;
    }
}

.news-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    padding: 20px 18px;
}

.news-sidebar h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.news-sidebar h3 i {
    color: #0D47A1;
}

.upcoming-events ul,
.events-pdfs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.upcoming-events li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.upcoming-events li:last-child {
    border-bottom: none;
}

.event-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #0D47A1;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

.event-info small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}

.events-pdfs {
    margin-top: 20px;
}

.events-pdfs ul li {
    margin-bottom: 8px;
}

.events-pdfs a {
    color: #0D47A1;
    text-decoration: none;
    font-size: 0.9rem;
}

.events-pdfs a:hover {
    text-decoration: underline;
}

/* Cuadrícula de noticias */
.reports-container {
    margin-bottom: 60px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Tarjetas de noticias */
.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

/* Botones de administración */
.admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.news-card:hover .admin-actions,
.highlight-img-container:hover .admin-actions {
    opacity: 1;
}

/* Solo mostrar los botones cuando el usuario es administrador */
.admin-actions {
    display: none;
}

.is-admin .admin-actions {
    display: flex;
}

.btn-edit, .btn-delete {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.btn-edit {
    background-color: #2196F3;
}

.btn-delete {
    background-color: #F44336;
}

.btn-edit:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.btn-delete:hover {
    background-color: #D32F2F;
    transform: translateY(-2px);
}

.highlight-img-container {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.news-category.academic {
    background-color: #2196F3;
}

.news-category.events {
    background-color: #4CAF50;
}

.news-category.institutional {
    background-color: #FF9800;
}

.news-body {
    padding: 20px;
}

.news-body h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.news-body .news-date {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-body p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #0D47A1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1976D2;
}

.read-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Paginación */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 0 3px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 0;
    min-height: 0;
    box-shadow: none;
    padding: 0;
}

.news-pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.news-pagination .pagination-btn {
    min-width: 40px;
    min-height: 40px;
    font-size: 1rem;
    margin: 0 3px;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 0 3px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #f5f5f5;
    border-color: #0D47A1;
    color: #0D47A1;
}

.pagination-btn.active {
    background-color: #0D47A1;
    border-color: #0D47A1;
    color: #fff;
}

.pagination-btn.next {
    width: auto;
    padding: 0 15px;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.report-item:last-child {
    border-bottom: none;
}

.report-info h4 {
    margin-bottom: 5px;
}

.report-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.report-actions a {
    color: #0056b3;
    margin-left: 10px;
    text-decoration: none;
}

/* Formularios de Carga */
.upload-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    border-top: 4px solid #0D47A1;
}

.upload-container h3 {
    margin-bottom: 25px;
    color: #0D47A1;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.upload-container h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0D47A1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group small {
    display: block;
    color: #777;
    font-size: 0.85rem;
    margin-top: 5px;
}

#upload-report-form input[type="text"],
#upload-report-form textarea,
#upload-report-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#upload-report-form input[type="text"]:focus,
#upload-report-form textarea:focus,
#upload-report-form select:focus {
    border-color: #0D47A1;
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.1);
    outline: none;
}

#upload-report-form input[type="file"] {
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    padding: 15px;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
}

#upload-report-form input[type="checkbox"] {
    margin-right: 8px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-publish {
    background-color: #0D47A1;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-publish:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background-color: #e9e9e9;
}

/* Sección Contacto */
.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info,
.map-container {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: #0056b3;
    margin-right: 15px;
    margin-top: 3px;
}

.map-container {
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    border-radius: 10px;
}

.social-contact {
    margin-top: 30px;
}

.social-contact h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

.social-icons-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icons-contact a {
    display: flex;
    align-items: center;
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-icons-contact a i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.social-icons-contact a:hover {
    color: #003d7f;
}

/* Pie de Página */
footer {
    border: none !important;
    box-shadow: none !important;
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-info h3,
.footer-links h3,
.footer-social h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #0056b3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Estilos para la sección Aviso de Privacidad */
.privacy-container {
    margin: 30px 0;
    width: 100%;
}

.privacy-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.privacy-title {
    color: #0056b3;
    text-align: center;
    margin: 25px 0 15px;
}

.privacy-content hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 15px 0;
}

.privacy-content h4 {
    color: #0056b3;
    margin: 20px 0 10px;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-content p {
    margin-bottom: 15px;
}

/* Estilos para el scrollbar personalizado */
.privacy-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: #0056b3;
    border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: #003d7f;
}

/* Estilos para la sección Acerca de Nosotros */
.mission-vision {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.mission-box,
.vision-box {
    flex: 1;
    padding: 25px;
    background-color: #f1f7ff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 86, 179, 0.1);
}

.mission-box h3,
.vision-box h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #0056b3;
}

.mission-box h3 i,
.vision-box h3 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.values-section {
    text-align: center;
    margin-top: 50px;
}

.values-section h3 {
    margin-bottom: 30px;
}

.values-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.value-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.value-item h4 {
    margin-bottom: 10px;
    color: #0056b3;
}

/* Estilos para el Modal de Inicio de Sesión */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #0056b3;
}

.login-error {
    color: #e74c3c;
    background-color: #fde8e6;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
    font-size: 0.9rem;
}

.btn-submit {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #003d7a;
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 992px) {
    .mission-vision {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 90px;
        left: 0;
        background: rgba(0, 59, 121, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        opacity: 0;
        z-index: 1000;
    }

    nav.active {
        height: auto;
        opacity: 1;
        padding: 20px 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 20px;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 12px;
        width: 100%;
    }
    
    nav ul li a {
        padding: 14px 15px;
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
        border-left: 3px solid transparent;
        margin-bottom: 5px;
        font-size: 1rem;
    }
    
    nav ul li:first-child a {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        margin-left: 10px;
    }
    
    nav ul li a.active {
        border-left: 3px solid #ffffff;
    }
    
    nav ul li a::before {
        display: none;
    }

    .card {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    section {
        padding: 40px 0;
    }
}
