/* ============================================
   DREM MOQUEGUA - ESTILOS PROTOTIPO
   ============================================ */

:root {
    --azul-oscuro: #003366;
    --azul-medio: #0055a4;
    --celeste: #00a8e8;
    --amarillo: #f4b400;
    --blanco: #ffffff;
    --gris-claro: #f5f7fa;
    --sombra: 0 5px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--blanco);
    color: #333;
    line-height: 1.6;
}

/* ============================================
   TOP BAR - ESTILO PROTOTIPO
   ============================================ */
.top-bar {
    background: var(--azul-oscuro);
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar i { color: var(--amarillo); margin-right: 5px; }
.top-bar a { 
    color: white; 
    text-decoration: none; 
    margin-left: 15px; 
    transition: all 0.3s ease;
}
.top-bar a:hover { color: var(--amarillo); }

/* ============================================
   HEADER PRINCIPAL - ESTILO PROTOTIPO
   ============================================ */
.main-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    padding: 20px 0;
    color: white;
    position: relative;
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--amarillo);
}
.header-logo img { width: 70%; height: auto; }
.header-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.header-text h2 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px 0;
    color: var(--amarillo);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.header-text p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
    font-style: italic;
}
.header-right {
    text-align: right;
}
.header-right img { height: 50px; opacity: 0.9; }

/* ============================================
   NAVBAR - FONDO AZUL OSCURO COMO PROTOTIPO
   ============================================ */
.navbar-custom {
    background: var(--azul-oscuro) !important;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
/* Ocultar brand en desktop (usamos header principal) */
@media (min-width: 992px) {
    .navbar-custom .navbar-brand {
        display: none;
    }
}
.navbar-custom .navbar-brand {
    display: none; /* Ocultar en desktop, usar header principal */
}
.navbar-custom .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 13px;
    padding: 18px 22px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--amarillo);
    color: var(--amarillo) !important;
}
.navbar-custom .nav-link i { margin-right: 5px; }

/* Dropdown - FONDO AZUL como prototipo */
.dropdown-menu {
    background: var(--azul-medio) !important;
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.dropdown-item {
    color: white !important;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dropdown-item:hover {
    background: var(--azul-oscuro) !important;
    color: var(--amarillo) !important;
    padding-left: 25px;
}
.dropdown-item i { 
    font-size: 10px; 
    opacity: 0.7;
}

/* Sub-dropdown (menús anidados) */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
    border-radius: 0;
	display: none;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Flecha del dropdown toggle */
.dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
    border-top-color: var(--amarillo);
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--azul-medio), var(--celeste));
    transform: translateY(-2px);
    color: white;
}
.btn-acento {
    background: var(--amarillo);
    color: var(--azul-oscuro);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-acento:hover {
    transform: translateY(-2px);
    color: var(--azul-oscuro);
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    color: var(--azul-oscuro);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--amarillo);
    margin: 0 auto;
    border-radius: 2px;
}
.section-title p { color: #666; margin-top: 10px; }

/* ============================================
   HERO SECTION
   ============================================ */
/*.hero-section {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    padding: 40px 0;
    position: relative;
}*/
.hero-section {
    background: #f5f7fa; /* Gris muy claro como fondo */
    padding: 40px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ===== SLIDER ===== */
.slider-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 450px;
    background: var(--azul-oscuro);
}
.slide {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.slide.active { display: block; }
.slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.slide-no-image {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-no-image i { font-size: 100px; color: rgba(255,255,255,0.2); }
.slide-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}
.slide-content .date {
    display: inline-block;
    background: var(--amarillo);
    color: var(--azul-oscuro);
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}
.slide-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.slide-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}
.slide-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--amarillo);
    text-decoration: none;
    font-weight: 600;
}
.slide-welcome {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--celeste));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}
.slide-welcome i { font-size: 80px; margin-bottom: 20px; opacity: 0.5; }

/* Slider controles */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}
.slider-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}
.slider-btn:hover { background: var(--amarillo); color: var(--azul-oscuro); }
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active { background: var(--amarillo); }

/* ===== NEWS SIDEBAR ===== */
.news-sidebar {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra);
}
.news-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-header i { font-size: 20px; color: var(--amarillo); }
.news-header h3 { margin: 0; font-size: 16px; }
.news-list { padding: 15px; }
.news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}
.news-item:hover {
    background: var(--gris-claro);
    margin: 0 -15px;
    padding: 12px 15px;
}
.news-item:last-child { border-bottom: none; }
.news-thumb {
    width: 70px; height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.news-thumb-default {
    background: linear-gradient(135deg, var(--azul-medio), var(--celeste));
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-thumb-default i { color: white; font-size: 20px; }
.news-info h4 {
    font-size: 13px;
    color: var(--azul-oscuro);
    margin: 0 0 5px 0;
    line-height: 1.3;
}
.news-date { font-size: 11px; color: #888; }
.news-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}
.btn-ver-todas {
    display: block;
    background: linear-gradient(135deg, var(--azul-medio), var(--celeste));
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-ver-todas:hover { background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio)); color: white; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--blanco);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
/*.stat-item { text-align: center; padding: 20px; }*/
.stat-item {
    position: relative;
    color: #fff;
}
.stat-item i {
    font-size: 35px;
    color: var(--celeste);
    margin-bottom: 15px;
    display: block;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--azul-oscuro);
    font-weight: 900;
    margin: 0;
}
.stat-item p { color: #666; font-size: 14px; margin: 5px 0 0 0; }

/* ============================================
   SERVICIOS
   ============================================ */
.featured-sections { padding: 80px 0; background: var(--gris-claro); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}
.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--sombra);
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.service-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.service-icon i { font-size: 35px; color: var(--amarillo); }
.service-card h3 {
    color: var(--azul-oscuro);
    font-size: 18px;
    margin-bottom: 10px;
}
.service-card p { color: #666; font-size: 14px; margin-bottom: 20px; }
.btn-link {
    color: var(--celeste);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.btn-link:hover { color: var(--azul-oscuro); }

/* ============================================
   CONTENT SPLIT
   ============================================ */
.content-section { background: var(--gris-claro); }
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 60px 0;
}
.content-box {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra);
}
.content-box-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content-box-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-box-header h3 i { color: var(--amarillo); }
.filter-tabs { display: flex; gap: 5px; }
.filter-tab {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-tab.active, .filter-tab:hover { background: var(--amarillo); color: var(--azul-oscuro); }
.content-list { padding: 0; }
.content-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}
.content-item:hover { background: var(--gris-claro); }
.content-empty {
    padding: 20px;
    text-align: center;
    color: #888;
}
.doc-icon {
    width: 45px; height: 45px;
    border-radius: 10px;
    background: #ffebee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.doc-icon i { color: #c62828; font-size: 20px; }
.doc-info { flex-grow: 1; }
.doc-info h4 { margin: 0 0 5px 0; font-size: 14px; color: var(--azul-oscuro); }
.doc-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}
.doc-meta i { margin-right: 3px; }
.doc-download {
    color: var(--celeste);
    font-size: 18px;
    transition: all 0.3s ease;
}
.doc-download:hover { color: var(--azul-oscuro); }

/* ============================================
   PROYECTOS
   ============================================ */
.projects-section {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    padding: 80px 0;
    color: white;
}
.projects-section .section-title h2 { color: white; }
.projects-section .section-title p { color: rgba(255,255,255,0.8); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    color: #333;
    transition: all 0.3s ease;
}
.project-card:hover { transform: translateY(-5px); }
.project-img {
    height: 180px;
    background: linear-gradient(135deg, var(--gris-claro), #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-img i { font-size: 60px; opacity: 0.5; color: var(--celeste); }
.project-body { padding: 25px; }
.project-tag {
    display: inline-block;
    background: var(--amarillo);
    color: var(--azul-oscuro);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}
.project-body h3 {
    color: var(--azul-oscuro);
    font-size: 18px;
    margin-bottom: 10px;
}
.project-body p { color: #666; font-size: 14px; margin-bottom: 15px; }
.project-progress {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}
.project-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--celeste), var(--azul-medio));
    border-radius: 4px;
    transition: width 1s ease;
}
.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}
.projects-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.7);
}
.projects-empty i { font-size: 50px; margin-bottom: 15px; opacity: 0.5; display: block; }

/* ============================================
   ENTIDADES
   ============================================ */
.entities-section { padding: 60px 0; background: var(--blanco); }
.entities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.entity-item {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}
.entity-item:hover {
    border-color: var(--celeste);
    transform: translateY(-5px);
    box-shadow: var(--sombra);
}
.entity-item img { max-height: 60px; margin-bottom: 10px; }
.entity-logo-default {
    width: 100px; height: 60px;
    background: linear-gradient(135deg, var(--azul-medio), var(--celeste));
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    margin: 0 auto 10px;
}
.entity-item span {
    display: block;
    font-size: 14px;
    color: var(--azul-oscuro);
    font-weight: 600;
    margin-bottom: 5px;
}
.entity-item a {
    font-size: 11px;
    color: var(--celeste);
    text-decoration: none;
}
.entities-empty {
    text-align: center;
    color: #888;
    grid-column: 1 / -1;
}

/* ============================================
   FOOTER - FONDO AZUL OSCURO
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--azul-oscuro), #001a33);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--amarillo), var(--celeste));
}
footer a { 
    color: rgba(255,255,255,0.85); 
    text-decoration: none; 
    transition: all 0.3s ease;
}
footer a:hover { color: var(--amarillo); }
footer h6 {
    color: var(--amarillo);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
footer p { color: rgba(255,255,255,0.8); }
footer .list-unstyled li { margin-bottom: 10px; }
footer hr { border-color: rgba(255,255,255,0.15); margin: 30px 0 20px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .content-split { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .entities-grid { grid-template-columns: repeat(3, 1fr); }
    .main-header .container { flex-direction: column; text-align: center; }
    .header-right { display: none; }
}
@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .entities-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-container { height: 350px; }
    .slide-content { padding: 20px; }
    .slide-content h3 { font-size: 1.2rem; }
    .section-title h2 { font-size: 1.6rem; }
}
/* ============================================
   SECCIÓN NOTICIAS DESTACADAS - FONDO CLARO
   ============================================ */
.news-ticker-section {
    background: #f8f9fa; /* Gris muy claro */
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.news-ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.news-ticker-label {
    background: var(--celeste, #00a8e8);
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-ticker-label i {
    margin-right: 5px;
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.ticker-slider {
    display: flex;
    flex-direction: column;
    animation: tickerScroll 15s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateY(0); }
    20% { transform: translateY(0); }
    25% { transform: translateY(-100%); }
    45% { transform: translateY(-100%); }
    50% { transform: translateY(-200%); }
    70% { transform: translateY(-200%); }
    75% { transform: translateY(-300%); }
    95% { transform: translateY(-300%); }
    100% { transform: translateY(-400%); }
}

.ticker-item {
    color: var(--azul-oscuro, #003366);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.ticker-item:hover {
    color: var(--celeste, #00a8e8);
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: var(--amarillo, #f4b400);
    border-radius: 50%;
    flex-shrink: 0;
}

.ticker-empty {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.news-ticker-btn {
    background: transparent;
    border: 1px solid var(--azul-medio, #0055a4);
    color: var(--azul-medio, #0055a4);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
}

.news-ticker-btn:hover {
    background: var(--azul-medio, #0055a4);
    color: #fff;
}

.news-ticker-btn i {
    margin-left: 5px;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-ticker-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-ticker-content {
        width: 100%;
        text-align: center;
    }
    
    .ticker-slider {
        animation: none;
    }
    
    .ticker-item {
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================
   SECCIÓN HERO - FONDO CLARO PARA NOTICIAS
   ============================================ */
.hero-section {
    background: #f8f9fa; /* Fondo claro gris muy suave */
    padding: 40px 0;
}

/* Sidebar de noticias con fondo blanco */
.news-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
    padding: 25px;
    border: 1px solid #e9ecef;
}

/* Header de noticias */
.news-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--celeste, #00a8e8);
}

.news-header i {
    color: var(--celeste, #00a8e8);
    font-size: 20px;
}

.news-header h3 {
    color: var(--azul-oscuro, #003366);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

/* Items de noticias */
.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* Thumbnail de noticias */
.news-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-thumb-default {
    background: var(--azul-oscuro, #003366);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

/* Info de noticias */
.news-info h4 {
    color: var(--azul-oscuro, #003366);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.news-date {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    color: var(--celeste, #00a8e8);
}

/* Botón ver todas */
.btn-ver-todas {
    display: block;
    text-align: center;
    background: var(--azul-medio, #0055a4);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-ver-todas:hover {
    background: var(--azul-oscuro, #003366);
    color: #fff;
}

.btn-ver-todas i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-ver-todas:hover i {
    transform: translateX(5px);
}

/* Estado vacío */
.news-empty {
    text-align: center;
    color: #6c757d;
    padding: 30px;
    font-style: italic;
}

/* ============================================
   SLIDER - SIN CAMBIOS MAYORES
   ============================================ */
.slider-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.12);
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 51, 102, 0.9));
    color: #fff;
    padding: 40px 30px 30px;
}

.slide-content .date {
    background: var(--amarillo, #f4b400);
    color: var(--azul-oscuro, #003366);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.slide-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.slide-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.slide-link {
    color: var(--amarillo, #f4b400);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slide-link:hover {
    color: #fff;
}

/* Controles del slider */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--azul-oscuro, #003366);
    font-size: 16px;
    pointer-events: all;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--amarillo, #f4b400);
    color: var(--azul-oscuro, #003366);
}

/* Dots del slider */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--amarillo, #f4b400);
    width: 25px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .slide img {
        height: 250px;
    }
    
    .news-sidebar {
        margin-top: 20px;
    }
}

/* ============================================
   BARRA ESTADÍSTICA DEL HOME - FONDO DIFERENTE
   ============================================ */

/* Fondo: Celeste claro (diferente al resto del sitio) */
/*.stats-counter-section {
    background: var(--celeste, #00a8e8);
    padding: 40px 0;
    border-top: 4px solid var(--amarillo, #f4b400);
    border-bottom: 4px solid var(--amarillo, #f4b400);
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}*/

.stats-counter-section {
    background: var(--azul-oscuro); /* Azul oscuro, NO celeste */
    padding: 35px 0;
    border-top: 3px solid var(--amarillo);
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

/* Tarjetas: fondo blanco con sombra */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--azul-oscuro, #003366);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

/* Icono: círculo azul oscuro */
/*.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--azul-oscuro, #003366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--amarillo, #f4b400);
    font-size: 24px;
    transition: all 0.3s ease;
}*/
.stat-icon {
    color: var(--amarillo);
    font-size: 28px;
    margin-bottom: 10px;
}

.stat-icon i {
    display: inline-block;
    transition: transform 0.3s ease;
}
.stat-item:hover .stat-icon i {
    transform: scale(1.2);
}

.stat-card:hover /*.stat-icon*/ {
    background: var(--amarillo, #f4b400);
    color: var(--azul-oscuro, #003366);
    transform: rotateY(360deg);
}

/* Número: grande y azul oscuro */
/*.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--azul-oscuro, #003366);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
}*/

/* Label: gris oscuro */
/*.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}*/
/* Número: Blanco, grande, bold */
.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
}

/* Label: Blanco, mayúsculas, pequeño */
.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Responsive */
@media (max-width: 991px) {
    .stats-counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .stats-counter-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-counter-section {
        padding: 30px 0;
    }
    .stat-number {
        font-size: 36px;
    }

}
/* ═══════════════════════════════════════════════════════════
   ESPACIADO ENTRE CONTENIDO Y FOOTER
   DREM Moquegua - Portal Web
   ═══════════════════════════════════════════════════════════ */

/* Sección de contenido principal de páginas internas */
.page-content {
    padding: 50px 0 80px 0;
}

/* Footer con margen superior para separarlo del contenido */
footer {
    margin-top: 0; /* El padding de page-content ya crea la separación */
}

/* Ajuste responsivo para móviles */
@media (max-width: 768px) {
    .page-content {
        padding: 30px 0 50px 0;
    }
}

/* Ajuste para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-content {
        padding: 40px 0 60px 0;
    }
}
/* ═══════════════════════════════════════════════════════════
   PÁGINA DE ANUARIOS - DISEÑO RESPONSIVO
   DREM Moquegua - Portal Web
   ═══════════════════════════════════════════════════════════ */

/* Contenedor principal de anuarios */
.anuarios-container {
    padding: 50px 0 80px 0;
}

/* Grid de tarjetas de anuarios - RESPONSIVO */
.anuarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Tarjeta individual de anuario */
.anuario-card {
    background: var(--blanco, #fff);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.anuario-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Imagen de portada con aspect-ratio fijo */
.anuario-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
}

.anuario-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.anuario-card:hover .anuario-card-image img {
    transform: scale(1.05);
}

/* Placeholder cuando no hay imagen */
.anuario-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 60px;
}

/* Badge del año */
.anuario-year-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--amarillo);
    color: var(--azul-oscuro);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Badge de subdirección */
.anuario-subdir-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Cuerpo de la tarjeta */
.anuario-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.anuario-card-title {
    color: var(--azul-oscuro);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.anuario-card-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Botones de acción */
.anuario-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.anuario-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.anuario-btn-primary {
    background: var(--azul-oscuro);
    color: white;
}

.anuario-btn-primary:hover {
    background: var(--azul-medio);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.anuario-btn-secondary {
    background: #f0f0f0;
    color: var(--azul-oscuro);
}

.anuario-btn-secondary:hover {
    background: #e0e0e0;
}

/* ═══════════════════════════════════════════════════════════
   FILTROS DE ANUARIOS - RESPONSIVO
   ═══════════════════════════════════════════════════════════ */
.anuarios-filters {
    background: var(--blanco, #fff);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.anuarios-filters-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.anuarios-filters-form .form-group {
    margin: 0;
}

.anuarios-filters-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--azul-oscuro);
    margin-bottom: 6px;
}

.anuarios-filters-form select,
.anuarios-filters-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
}

.anuarios-filters-form select:focus,
.anuarios-filters-form input:focus {
    outline: none;
    border-color: var(--celeste);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.anuarios-filters-btn {
    padding: 10px 20px;
    background: var(--azul-oscuro);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    height: 42px;
}

.anuarios-filters-btn:hover {
    background: var(--azul-medio);
}

/* ═══════════════════════════════════════════════════════════
   MEDIA QUERIES - ADAPTACIÓN POR DISPOSITIVO
   ═══════════════════════════════════════════════════════════ */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .anuarios-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .anuarios-filters-form {
        grid-template-columns: 1fr 1fr;
    }
}

/* Móviles grandes (576px - 768px) */
@media (max-width: 768px) {
    .anuarios-container {
        padding: 30px 0 50px 0;
    }
    
    .anuarios-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .anuarios-filters-form {
        grid-template-columns: 1fr;
    }
    
    .anuario-card-title {
        font-size: 15px;
    }
    
    .anuario-card-desc {
        font-size: 12px;
    }
    
    .anuario-card-body {
        padding: 15px;
    }
    
    .anuario-card-actions {
        flex-direction: column;
    }
    
    .anuario-btn {
        width: 100%;
    }
}

/* Móviles pequeños (hasta 576px) */
@media (max-width: 576px) {
    .anuarios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .anuario-card-image {
        aspect-ratio: 16 / 9;
    }
    
    .anuario-year-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .anuario-subdir-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 14px;
    }
}
/* ═══════════════════════════════════════════════════════════
   NOTICIAS - DISEÑO RESPONSIVO Y SIDEBAR MEJORADO
   ═══════════════════════════════════════════════════════════ */

/* Layout principal de noticias (Escritorio: 3 partes contenido, 1 parte sidebar) */
.news-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* En tablets y móviles, apilar en una sola columna */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

/* Cajas de la barra lateral */
.news-sidebar-box {
    background: var(--blanco, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.news-sidebar-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Encabezado de la caja lateral */
.news-sidebar-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    color: white;
    padding: 15px 20px;
    border-bottom: 3px solid var(--amarillo);
}

.news-sidebar-header h3 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-sidebar-header h3 i {
    color: var(--amarillo);
}

/* Lista de noticias en sidebar */
.news-sidebar-list {
    list-style: none;
    padding: 15px;
    margin: 0;
}

.news-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-sidebar-item:last-child {
    border-bottom: none;
}

.news-sidebar-item:hover {
    background: #f8f9fa;
    padding-left: 8px;
    border-radius: 6px;
}

.news-sidebar-thumb {
    width: 75px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--azul-medio), var(--celeste));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-sidebar-thumb i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
}

.news-sidebar-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--azul-oscuro);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.news-sidebar-item:hover .news-sidebar-info h4 {
    color: var(--celeste);
}

.news-sidebar-info .date {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-sidebar-info .date i {
    color: var(--amarillo);
}

/* Botón ver todas en sidebar */
.sidebar-btn-all {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--azul-oscuro);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 12px 12px;
    transition: background 0.3s;
}

.sidebar-btn-all:hover {
    background: var(--azul-medio);
    color: white;
}