/* ==================== ESTILOS GENERALES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* ==================== HEADER ==================== */
.header-container {
    background: #000000;
    color: white;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #333333;
}

.site-title {
    font-family: 'Georgia', serif;
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.site-subtitle {
    font-size: 18px;
    margin-top: 10px;
    opacity: 0.9;
    font-style: italic;
    color: #cccccc;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background 0.3s, color 0.3s;
    font-weight: bold;
    border-right: 1px solid #333333;
}

.nav-link:hover {
    background-color: #333333;
    color: white;
}

.nav-link.admin-link {
    background-color: #555555;
}

.nav-link.admin-link:hover {
    background-color: #666666;
}

.nav-link.logout-link {
    background-color: #333333;
}

.nav-link.logout-link:hover {
    background-color: #555555;
}

/* ==================== BÚSQUEDA ==================== */
.search-container {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 20px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #999999;
    border-radius: 4px;
    width: 200px;
    font-size: 14px;
    background-color: #f5f5f5;
}

.search-btn {
    background-color: #333333;
    color: white;
    border: 1px solid #000000;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-btn:hover {
    background-color: #000000;
}

/* ==================== CONTENT WRAPPER ==================== */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== CARRUSEL ==================== */
.carousel-section {
    margin: 40px 0;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

.mySwiper {
    width: 100%;
    height: 400px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    height: 400px;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    color: white;
    padding: 30px 20px 20px;
}

.carousel-caption h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: 'Georgia', serif;
}

.carousel-caption p {
    font-size: 14px;
    opacity: 0.95;
}

/* Personalizar controles del carrusel */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet-active {
    background: #ffffff;
}
    justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet {
    background: white;
}

.swiper-pagination-bullet-active {
    background: #667eea;
}

/* ==================== SECCIÓN DE BÚSQUEDA ==================== */
.search-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.search-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.main-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #cccccc;
    border-radius: 0;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #ffffff;
}

.main-search-input:focus {
    outline: none;
    border-color: #000000;
}

/* ==================== SECCIÓN DE NOTICIAS ==================== */
.noticias-section {
    margin-bottom: 50px;
}

.noticias-section h2 {
    text-align: center;
    font-size: 32px;
    color: #000000;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.noticias-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #000000;
    border-radius: 0;
}

/* Grid de noticias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.noticia-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #d0d0d0;
}

.noticia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.noticia-imagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(0%);
}

.noticia-card:hover .noticia-imagen img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.noticia-contenido {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.noticia-contenido h3 {
    font-size: 18px;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.noticia-fecha {
    color: #666666;
    font-size: 13px;
    margin-bottom: 15px;
}

.leer-mas {
    color: #333333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    align-self: flex-start;
    border-bottom: 2px solid #333333;
    padding-bottom: 2px;
}

.leer-mas:hover {
    color: #000000;
    border-bottom: 2px solid #000000;
}

.sin-noticias {
    text-align: center;
    color: #999999;
    padding: 50px 20px;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 40px 20px 20px;
    margin-top: 50px;
    border-top: 3px solid #000000;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-family: 'Georgia', serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #cccccc;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: white;
    transform: scale(1.2);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-item i {
    color: #ffffff;
    width: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333333;
    padding-top: 20px;
    color: #999999;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .site-title {
        font-size: 32px;
    }

    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        width: 100%;
    }

    .search-container {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .search-input {
        flex: 1;
        width: auto;
    }

    .mySwiper {
        height: 250px;
    }

    .swiper-slide {
        height: 250px;
    }

    .carousel-caption h3 {
        font-size: 18px;
    }

    .noticias-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .noticia-imagen {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 24px;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
    }

    .mySwiper {
        height: 200px;
    }

    .swiper-slide {
        height: 200px;
    }

    .carousel-caption {
        padding: 20px 15px 15px;
    }

    .carousel-caption h3 {
        font-size: 16px;
    }
}
