.archive-noticias-wrapper {
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.header-noticias {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 450px; 
    display: flex;
    align-items: flex-start;
    padding-top: 5rem;
}
.header-noticias::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(232, 134, 0, 0.7);
    z-index: 1;
}
.header-content { position: relative; z-index: 2; width: 100%; }
.text-colef-orange { color: #e88600 !important; }
.bg-colef-orange { background-color: #e88600 !important; color: #fff !important; }

.search-toggle-container {
    margin-top: -24px; 
    position: relative;
    z-index: 10;
}

.search-module-container {
    margin-top: -90px;
    position: relative;
    z-index: 10;
}

.btn-search-toggle {
    background-color: #fff;
    color: #e88600;
    border: 2px solid #e88600;
    border-radius: 30px;
    padding: 8px 30px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.btn-search-toggle:hover {
    background-color: #e88600;
    color: #fff;
}

.search-module {
    background-color: #fcf9f2;
    border: 2px solid #f0cc9f;
    border-radius: 12px;
    padding: 20px 30px 30px 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.search-module-title {
    color: #e88600;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flatpickr-calendar.inline {
    margin: 0 auto;
    box-shadow: none;
    border: 1px solid #e2e8f0; 
    border-radius: 8px;
    width: 100% !important; 
    max-width: 100%;
    background-color: #fff;
    padding: 5px;
}
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days, .dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}
.flatpickr-day {
    max-width: none !important;
    width: 14.28% !important;
    height: 45px;
    line-height: 45px;
    border-radius: 8px;
}
.flatpickr-day.selected {
    background: #e88600 !important;
    border-color: #e88600 !important;
    border-radius: 8px !important;
}
.flatpickr-day:hover {
    background: #fde8cc;
}
.flatpickr-months .flatpickr-month {
    color: #1e293b;
    fill: #1e293b;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: bold;
}

.search-separator {
    border-right: 2px solid #e88600;
}
@media (max-width: 991px) {
    .search-separator {
        border-right: none;
        border-bottom: 2px solid #e88600;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

.noticia-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .noticia-card {
        flex-direction: row;
    }
}
.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.noticia-img-wrap {
    width: 100%;
    min-height: 200px;
}
@media (min-width: 768px) {
    .noticia-img-wrap {
        width: 40%;
        min-height: 100%;
    }
}
.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.noticia-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}
@media (min-width: 768px) {
    .noticia-content {
        width: 60%;
    }
}
.noticia-title {
    font-size: 1rem; 
    font-weight: 300;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.noticia-date {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.noticia-link {
    color: #e88600;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.noticia-link i {
    font-size: 1.5rem;
}
.noticia-link:hover {
    color: #cc7600;
}

.colef-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    align-items: center;
}
.colef-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #fff;
    border: 2px solid #eaeaea;
    color: #1e293b;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}
.colef-pagination .page-numbers:hover {
    border-color: #e88600;
    color: #e88600;
}
.colef-pagination .page-numbers.current {
    background: #e88600;
    border-color: #e88600;
    color: #fff;
}
.colef-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
.pagination-info {
    background: #fff;
    border: 2px solid #eaeaea;
    padding: 0 15px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 10px;
}

#loader-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.spinner-border {
    width: 3rem; height: 3rem; border-width: 0.3em;
}
/* --- SINGLE NOTICIAS --- */
.single-noticia-wrapper {
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.header-noticia {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-top: 5rem;
    padding-bottom: 7rem;
}
.header-noticia::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(232, 134, 0, 0.7);
    z-index: 1;
}

/* Colores de Redes Sociales (compartido) */
.social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 4px;
    color: white; text-decoration: none; transition: transform 0.2s, opacity 0.2s;
}
.social-btn:hover { color: white; transform: translateY(-2px); opacity: 0.9; }
.btn-facebook { background-color: #3b5998; }
.btn-x { background-color: #000000; }
.btn-linkedin { background-color: #0077b5; }
.btn-whatsapp { background-color: #25d366; }
.btn-mail { background-color: #03697B; }

/* Módulo En Resumen */
.modulo-resumen {
    background-color: #fcf9f2;
    border: 1px solid #f0cc9f !important;
    border-radius: 12px;
}
.numero-resumen {
    background-color: #fde8cc;
    color: #e88600 !important;
    width: 24px; height: 24px;
    font-size: 0.85rem;
}
