/* ========================================
   NOTICIAS PAGE - CLEAN STYLES
   ======================================== */

/* Hero Section */
.hero-noticias {
    height: 350px;
    background: linear-gradient(135deg, #C1272D 0%, #F26522 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    text-align: center;
    color: #FFFFFF;
    z-index: 2;
    padding: 0 20px;
}

.hero-noticias h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-noticias p {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 300;
}

/* ========================================
   FILTROS SECTION
   ======================================== */
.filtros-section {
    padding: 40px 0;
    background: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
}

.filtros-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filtro-busqueda {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.filtro-busqueda i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
}

.filtro-busqueda input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.filtro-busqueda input:focus {
    outline: none;
    border-color: #C1272D;
    box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.1);
}

.filtro-busqueda input::placeholder {
    color: #999;
}

.filtro-ordenar {
    min-width: 200px;
}

.filtro-ordenar select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.filtro-ordenar select:focus {
    outline: none;
    border-color: #C1272D;
    box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.1);
}

.filtro-ordenar select:hover {
    border-color: #C1272D;
}

.resultados-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-noticias {
    font-size: 16px;
    color: #3E3E3E;
    font-weight: 600;
}

.total-noticias i {
    color: #C1272D;
    margin-right: 8px;
}

.total-noticias span {
    font-weight: 700;
    color: #C1272D;
}

/* ========================================
   NOTICIA DESTACADA
   ======================================== */
.noticia-destacada-section {
    padding: 60px 0;
    background: #FFFFFF;
}

.noticia-destacada {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: #F4F4F4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.destacada-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.destacada-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destacada-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #F7A600;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.destacada-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.destacada-fecha {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #C1272D;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

.destacada-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1C3A4E;
    margin-bottom: 20px;
    line-height: 1.3;
}

.destacada-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #3E3E3E;
    margin-bottom: 30px;
}

.btn-leer-completa {
    background: #C1272D;
    color: #FFFFFF;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-family: inherit;
}

.btn-leer-completa:hover {
    background: #F26522;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(193, 39, 45, 0.3);
}

.btn-leer-completa i {
    transition: transform 0.3s ease;
}

.btn-leer-completa:hover i {
    transform: translateX(4px);
}

/* ========================================
   GRID DE NOTICIAS
   ======================================== */
.noticias-grid-section {
    padding: 80px 0;
    background: #F4F4F4;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1C3A4E;
    text-align: center;
    margin-bottom: 50px;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
}

.noticia-card {
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.noticia-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticia-card:hover .noticia-image img {
    transform: scale(1.1);
}

.noticia-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(193, 39, 45, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.noticia-card:hover .noticia-overlay {
    opacity: 1;
}

.btn-ver-noticia {
    background: #FFFFFF;
    color: #C1272D;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-ver-noticia:hover {
    background: #F7A600;
    color: #FFFFFF;
    transform: scale(1.1);
}

.noticia-content {
    padding: 25px;
}

.noticia-fecha {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.noticia-fecha i {
    color: #C1272D;
}

.noticia-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1C3A4E;
    margin-bottom: 12px;
    line-height: 1.4;
}

.noticia-descripcion {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-leer-mas {
    background: #1C3A4E;
    color: #FFFFFF;
    border: none;
    padding: 11px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-leer-mas:hover {
    background: #C1272D;
    transform: translateX(5px);
}

.btn-leer-mas i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.btn-leer-mas:hover i {
    transform: translateX(4px);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Custom scrollbar para el modal */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 20px 20px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #C1272D;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #F26522;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 100001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C3A4E;
}

.modal-close:hover {
    background: #C1272D;
    color: #FFFFFF;
    transform: rotate(90deg) scale(1.1);
}

.modal-header {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
}

.modal-fecha {
    display: inline-block;
    background: #F4F4F4;
    color: #C1272D;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1C3A4E;
    margin-bottom: 25px;
    line-height: 1.3;
}

.modal-descripcion {
    font-size: 15px;
    line-height: 1.8;
    color: #3E3E3E;
    margin-bottom: 35px;
}

.modal-compartir {
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.modal-compartir h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1C3A4E;
    margin-bottom: 15px;
}

.compartir-buttons {
    display: flex;
    gap: 12px;
}

.btn-compartir {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-compartir.facebook { background: #1877f2; }
.btn-compartir.twitter { background: #1da1f2; }
.btn-compartir.whatsapp { background: #25d366; }
.btn-compartir.link { background: #1C3A4E; }

.btn-compartir:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.btn-compartir:active {
    transform: translateY(-3px) scale(1.05);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1C3A4E 0%, #009E5E 100%);
}

.newsletter-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    color: #1C3A4E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.newsletter-text {
    color: #FFFFFF;
}

.newsletter-text h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-text p {
    font-size: 15px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 16px 25px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    min-width: 300px;
}

.btn-suscribir {
    background: #F26522;
    color: #FFFFFF;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-suscribir:hover {
    background: #C1272D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   NO RESULTADOS
   ======================================== */
.no-resultados {
    text-align: center;
    padding: 100px 20px;
}

.no-resultados i {
    font-size: 90px;
    color: #6c757d;
    margin-bottom: 25px;
    opacity: 0.4;
}

.no-resultados h3 {
    font-size: 30px;
    font-weight: 600;
    color: #3E3E3E;
    margin-bottom: 12px;
}

.no-resultados p {
    color: #666;
    font-size: 17px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .noticia-destacada {
        grid-template-columns: 1fr;
    }

    .destacada-image {
        height: 350px;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-icon {
        margin: 0 auto;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }

    .noticias-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-noticias {
        height: 300px;
    }

    .hero-noticias h1 {
        font-size: 38px;
    }

    .hero-noticias p {
        font-size: 18px;
    }

    .filtros-container {
        flex-direction: column;
    }

    .filtro-busqueda, .filtro-ordenar {
        min-width: 100%;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
    }

    .destacada-content {
        padding: 30px 25px;
    }

    .destacada-content h2 {
        font-size: 26px;
    }

    .modal-header {
        height: 300px;
    }

    .modal-body {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-noticias {
        height: 260px;
    }

    .hero-noticias h1 {
        font-size: 30px;
    }

    .hero-noticias p {
        font-size: 16px;
    }

    .destacada-content h2 {
        font-size: 22px;
    }

    .destacada-content p {
        font-size: 14px;
    }

    .modal-header {
        height: 250px;
    }

    .modal-info h2 {
        font-size: 22px;
    }

    .compartir-buttons {
        justify-content: center;
    }

    .newsletter-text h3 {
        font-size: 22px;
    }
}
