
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f8f5f3;
    color: #222;
}

a {
    text-decoration: none;
}

/* ===== TOPBAR RESPONSIVO ===== */
.topbar {
    width: 100%;
    background: linear-gradient(90deg, #5e001e, #7a0025);
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(10px, 2vw, 14px);
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-right {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* ===== TOPBAR RESPONSIVO ===== */
.topbar {
    width: 100%;
    background: linear-gradient(90deg, #5e001e, #7a0025);
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(10px, 2vw, 14px);
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-right {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== HEADER RESPONSIVO ===== */
header {
    width: 100%;
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo img {
    width: clamp(120px, 15vw, 180px);
    max-width: 100%;
}

.logo-divider {
    width: 1px;
    height: 40px;
    background: #d1d5db;
    flex-shrink: 0;
}

.logo-secundario {
    height: 50px;
    width: auto;
    object-fit: contain;
    transform: scale(1.8); /* ✅ Ajusta este valor al gusto */
    transform-origin: left center;
}
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #7b0c2e;
    background: none;
    border: none;
}

nav {
    display: flex;
    gap: clamp(15px, 3vw, 45px);
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    justify-content: flex-end;
}

nav a {
    color: #222;
    font-weight: 500;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    transition: .3s;
    text-decoration: none;
}

nav a:first-child {
    color: #7b0c2e;
    font-weight: 600;
    border-bottom: 2px solid #7b0c2e;
    padding-bottom: 4px;
}

nav a:hover {
    color: #7b0c2e;
}

.btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-search {
    background: transparent;
    border: 2px solid #7b0c2e;
    color: #7b0c2e;
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.9rem;
    transition: .3s;
    text-decoration: none;
}

.btn-search:hover {
    background: #7b0c2e;
    color: white;
    transform: translateY(-2px);
}

/* ===== HERO RESPONSIVO ===== */

.hero-content {
    width: 100%;
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 50px);
    line-height: 1.2;
    margin-bottom: 15px;
    color: #0c3f36;
}

.hero-content h1 span {
    color: #8b0d34;
}

.hero-content p {
    font-size: clamp(14px, 2.5vw, 20px);
    color: #13322e;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: clamp(10px, 2vw, 16px) clamp(18px, 3vw, 28px);
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 1rem);
    transition: .3s;
}

.hero-primary {
    background: #8b0d34;
    color: white;
}

.hero-secondary {
    border: 2px solid #0c3f36;
    color: #0c3f36;
    background: white;
}

/* ===== SEARCH BOX RESPONSIVO ===== */
.search-box {
    width: 90%;
    margin: -80px auto 50px;
    background: linear-gradient(90deg, #0c3f36, #124d43);
    padding: clamp(20px, 4vw, 35px);
    border-radius: 25px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.search-box h2 {
    color: white;
    margin-bottom: 20px;
    font-size: clamp(1.2rem, 4vw, 34px);
}

.search-input {
    width: 100%;
    max-width: 600px;
    margin: auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 5px 20px;
}

.search-input input {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px;
    font-size: clamp(14px, 2vw, 18px);
}

.search-input i {
    color: #7a0025;
    font-size: 20px;
}

/* ===== QUICK ACCESS RESPONSIVO ===== */
.section {
    width: 92%;
    margin: auto;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 34px);
    margin-bottom: 25px;
}

.cards {
   display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: clamp(20px, 3vw, 35px) clamp(15px, 2vw, 20px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card i {
    font-size: clamp(30px, 5vw, 42px);
    color: #7a0025;
    margin-bottom: 12px;
}

.card h3 {
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 500;
}

/* ===== DOS COLUMNAS RESPONSIVO ===== */
.container-custom {
    width: 92%;
    margin: 0 auto;
}

.two-columns {
    margin: 50px auto;
}

.two-columns-grid {
    display: grid;
    grid-template-columns: 35% 65%;  /* ← 35% izquierda, 65% derecha */
    gap: 30px;
}

/* Columna izquierda */
.tramites-col {
    background: white;
    border-radius: 25px;
    padding: clamp(15px, 3vw, 25px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tramites-col .section-title {
    font-size: clamp(1.2rem, 3vw, 24px);
    color: #0c3f36;
    margin-bottom: 20px;
}

.tramite-list {
    display: flex;
    flex-direction: column;
}

.tramite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.tramite-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tramite-info i {
    font-size: 18px;
    color: #8b0d34;
    width: 24px;
}

.tramite-info span {
    font-size: 13px;
    font-weight: 500;
    color: #222;
}

.tramite-link {
    color: #8b0d34;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

/* Directorio */
.directorio-card {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 12px;
    padding: clamp(20px, 4vw, 35px) clamp(15px, 3vw, 25px);
    text-align: center;
    border-top: 6px solid #611232;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: .3s;
}

.directorio-card:hover {
    transform: translateY(-4px);
}

.directorio-foto {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #611232;
}

.directorio-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directorio-card h3 {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    color: #611232;
}

.cargo {
    margin-top: 8px;
    color: #555;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 500;
}

.linea-gob {
    width: 70px;
    height: 2px;
    background: #caa27a;
    margin: 18px auto;
}

.lema {
    font-size: 0.72rem;
    color: #8b8b8b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Columna derecha - servicios */
.servicios-col {
    background: white;
    border-radius: 25px;
    padding: clamp(15px, 3vw, 30px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.servicios-col .section-title {
    font-size: clamp(1.2rem, 3vw, 28px);
    color: #0c3f36;
    margin-bottom: 25px;
}

.servicios-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.servicio-card {
    background: white;
    border-radius: 20px;
    padding: clamp(15px, 3vw, 25px);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
}

.servicio-card:hover {
    transform: translateY(-8px);
    border-color: #8b0d34;
}

.servicio-icon {
    width: min(80px, 15vw);
    height: min(80px, 15vw);
    background: #fef8e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.servicio-card:hover .servicio-icon {
    background: #8b0d34;
}

.servicio-icon i {
    font-size: clamp(30px, 5vw, 40px);
    color: #8b0d34;
    transition: all 0.3s;
}

.servicio-card:hover .servicio-icon i {
    color: white;
}

.servicio-card h3 {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 700;
    color: #0c3f36;
    margin-bottom: 12px;
}

.servicio-card p {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: #666;
    margin-bottom: 20px;
}

.btn-acordeon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: #8b0d34;
    font-weight: 600;
    padding: 0;
    width: 100%;
    text-align: center;
}

/* Acordeones */
.acordeon-panel {
    width: 100%;
    margin-top: 15px;
    animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acordeon-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.acordeon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.acordeon-header h3 {
    margin: 0;
    font-size: 0.9rem;
}

.btn-cerrar-acordeon {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.7rem;
}

.acordeon-body {
    background: white;
    padding: 15px;
    border-radius: 0 0 20px 20px;
}

.enlace-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f5f3;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.enlace-item:hover {
    background: #7b0c2e;
    color: white;
    transform: translateX(5px);
}

.enlace-item i {
    font-size: 1rem;
    width: 24px;
    color: #7b0c2e;
}

.enlace-item:hover i {
    color: white;
}

/* ===== NOTICIAS RESPONSIVO ===== */
.report {
    width: 92%;
    margin: 50px auto;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .report-grid {
        grid-template-columns: 1fr;
    }
}

/* TARJETA DE NOTICIA */
.news-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    transition: .3s;
    min-height: 140px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* IMAGEN A LA IZQUIERDA */
.news-img {
    width: 120px;
    min-width: 120px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.news-card:hover img {
    transform: scale(1.05);
}

/* CONTENIDO A LA DERECHA */
.news-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #222;
    font-weight: 700;
}

.news-content p {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-content span {
    color: #999;
    font-size: 0.7rem;
}

/* RESPONSIVE: en móvil, imagen arriba y texto abajo */
@media (max-width: 576px) {
    .news-card {
        flex-direction: column;
    }
    
    .news-img {
        width: 100%;
        min-width: 100%;
        height: 160px;
    }
}

/* ===== STATS RESPONSIVO ===== */
.stats {
    width: 92%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.stat {
    background: white;
    border-radius: 20px;
    padding: clamp(20px, 4vw, 30px);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
}

.stat h2 {
    font-size: clamp(28px, 5vw, 40px);
    color: #7a0025;
    margin-bottom: 10px;
}

/* ===== CONTACTO + MAPA RESPONSIVO ===== */
.contact-section {
    width: 92%;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    border-radius: 22px;
    padding: clamp(25px, 4vw, 40px);
    background: white;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.contact-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: #611232;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
    font-size: 0.8rem;
}

.contact-map {
    border-radius: 22px;
    overflow: hidden;
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
}

/* ===== SECCIÓN INSTITUCIONAL ===== */
.institucional-section {
    width: 92%;
    margin: 40px auto;
    background: #f7f7f7;
    border-radius: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.inst-item {
    display: flex;
    flex-direction: column;  /* ← icono arriba, texto abajo */
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(25px, 3vw, 40px) clamp(15px, 2vw, 25px);
    text-align: center;
    transition: .3s;
    border-right: 1px solid #e8e8e8;  /* separador entre items */
    cursor: pointer;
}

.inst-item:last-child {
    border-right: none;
}

.inst-item:hover {
    background: #efefef;
}

.inst-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inst-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.inst-text h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

.inst-text p {
    font-size: 0.73rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    max-width: 350px;
    white-space: nowrap;  
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .institucional-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .inst-item:nth-child(2) {
        border-right: none;
    }

    .inst-item:nth-child(1),
    .inst-item:nth-child(2) {
        border-bottom: 1px solid #e8e8e8;
    }
    .logo-secundario {
        height: 45px;
    }
    .logo-divider {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .institucional-section {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .inst-item {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }

    .inst-item:last-child {
        border-bottom: none;
    }
}

/* ===== FOOTER RESPONSIVO ===== */
footer {
    background: linear-gradient(90deg, #082d27, #031b17);
    color: white;
    padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 50px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.8rem;
}

.social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social i {
    font-size: 18px;
    cursor: pointer;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
        order: 3;
    }
    
    nav.active {
        display: flex;
    }
    
    .btns {
        order: 2;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .search-input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .topbar {
        text-align: center;
        justify-content: center;
    }
    
    .topbar-right {
        justify-content: center;
    }
    
    .two-columns-grid {
        grid-template-columns: 1fr;
    }
    
    .servicios-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .cards {
       grid-template-columns: repeat(4, 1fr);
    }
    
    .inst-item {
        border-bottom: 1px solid #e5e5e5;
    }
}

@media (max-width: 992px) {
    .two-columns-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cards { 
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (min-width: 1200px) {
    .two-columns-grid {
        grid-template-columns: 30% 70%;  
    }
}
@media (max-width: 576px) {
    .cards {
         grid-template-columns: repeat(4, 1fr); 
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        text-align: center;
        width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .institucional-section {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social {
        justify-content: center;
    }
}

/* ===== ANIMACIONES ===== */
.feature, .panel, .security, .info-panel {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.search-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    background: white;
    border-radius: 60px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-input {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    background: white;
    border-radius: 60px;
}

.search-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 10px;
    font-size: 16px;
    background: transparent;
}

.search-input i {
    color: #7a0025;
    font-size: 20px;
}

.resultados-container {
    display: none;
    background: white;
    margin-top: 15px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 1000;
}

.resultados-container.active {
    display: block;
}

.search-stats {
    padding: 12px 20px;
    background: #f8f5f3;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.result-item {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.result-item:hover {
    background: #f8f5f3;
}

.result-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.result-type {
    display: inline-block;
    background: #7b0c2e;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    margin-left: 8px;
}

.btn-ir-buscar {
    margin-top: 10px;
    background: #8b0d34;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #666;
}

.directorio-card{

    margin-top:30px;

    background:#ffffff;

    border-radius:12px;

    padding:35px 25px;

    text-align:center;

    border-top:6px solid #611232;

    box-shadow:
    0 4px 20px rgba(0,0,0,.06);

    transition:.3s;
}

.directorio-card:hover{

    transform:translateY(-4px);

    box-shadow:
    0 10px 28px rgba(0,0,0,.08);
}

/* ENCABEZADO */

.directorio-header{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    margin-bottom:20px;

    font-size:.78rem;

    color:#666;

    font-weight:500;

    letter-spacing:.5px;
}

.directorio-header img{

    width:28px;

    opacity:.85;
}

/* FOTO */
.directorio-foto {
    width: 200px;      /* ← Cambiado de 140px a 180px */
    height: 200px;     /* ← Cambiado de 140px a 180px */
    margin: 0 auto 22px;   /* ← Aumenté el margen inferior para separar del texto */
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #611232;
}

.directorio-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NOMBRE - ajuste de margen */
.directorio-card h3 {
    margin: 0;
    font-size: 1.1rem;   /* ← Ligeramente más grande */
    font-weight: 700;
    color: #611232;
}

/* CARGO - ajuste fino */
.cargo {
    margin-top: 8px;
    color: #555;
    font-size: 0.85rem;  /* ← Ligeramente más grande */
    font-weight: 500;
}

/* LÍNEA - se mantiene igual */
.linea-gob {
    width: 70px;
    height: 2px;
    background: #caa27a;
    margin: 18px auto;
}

/* LEMA - se mantiene igual */
.lema {
    font-size: 0.72rem;
    color: #8b8b8b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* =========================
   NOTICIAS COMPACTAS
========================= */

.report{

    width:92%;

    margin:50px auto;
}

/* ENCABEZADO */

.report-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:22px;
}

.report-top h2{

    font-size:2rem;

    font-weight:700;

    color:#111;
}

.report-top a{

    text-decoration:none;

    color:#611232;

    font-weight:600;

    font-size:.9rem;

    display:flex;

    align-items:center;

    gap:8px;

    transition:.3s;
}

.report-top a:hover{

    gap:12px;
}

/* GRID */

.report-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:18px;
}
@media(max-width:1400px){

    .report-grid{

        grid-template-columns:
        repeat(2,1fr);
    }

}

@media(max-width:700px){

    .report-grid{

        grid-template-columns:1fr;
    }

    .news-card{

        flex-direction:column;
    }

    .news-img{

        width:100%;

        min-width:100%;

        height:180px;
    }

}

/* CARD */

.news-card{

    background:#fff;

    border:1px solid #ececec;

    border-radius:14px;

    overflow:hidden;

    display:flex;

    align-items:stretch;

    transition:.3s;

    min-height:140px;
}

.news-card:hover{

    transform:translateY(-4px);

    box-shadow:
    0 8px 24px rgba(0,0,0,.06);
}

/* IMAGEN */

.news-img{

    width:170px;

    min-width:170px;

    height:auto;

    overflow:hidden;
}

.news-img img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.4s;
}

.news-card:hover img{

    transform:scale(1.05);
}

/* CONTENIDO */

.news-content{

    padding:18px;

    display:flex;

    flex-direction:column;

    justify-content:center;
}

.news-content h3{

    font-size:1rem;

    line-height:1.4;

    margin-bottom:10px;

    color:#222;

    font-weight:700;
}

.news-content p{

    color:#666;

    font-size:.84rem;

    line-height:1.5;

    margin-bottom:14px;
}

.news-content span{

    color:#999;

    font-size:.74rem;
}

/* RESPONSIVE */

@media(max-width:1000px){

    .report-grid{

        grid-template-columns:1fr;
    }

}

@media(max-width:700px){

    .news-card{

        flex-direction:column;
    }

    .news-img{

        width:100%;

        min-width:100%;

        height:180px;
    }

}


.institucional-section{

    width:92%;
    margin:40px auto;

    background:#f7f7f7;

    border-radius:22px;

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    overflow:hidden;

    border:1px solid #ececec;
}

/* ITEM */

.inst-item{

    display:flex;

    align-items:center;

    gap:22px;

    padding:35px 30px;

    position:relative;

    transition:.3s;
}

/* LINEAS */

.inst-item:not(:last-child)::after{

    content:'';

    position:absolute;

    top:25%;
    right:0;

    width:1px;
    height:50%;

    background:#dddddd;
}

/* HOVER */

.inst-item:hover{

   

    transform:translateY(-2px);
}

/* ICONOS */

.inst-icon{

    min-width:60px;
    width:60px;
    height:60px;

    display:flex;
    align-items:center;
    justify-content:center;
}

.inst-icon i{

    font-size:52px;

    color:#f8f5f3;
}

/* TEXTO */

.inst-text h3{

    font-size:17px;

    color:#111;

    margin-bottom:8px;

    font-weight:700;
}

.inst-text p{

    font-size:15px;

    color:#444;

    line-height:1.5;
}

/* RESPONSIVE */

@media(max-width:1100px){

    .institucional-section{

        grid-template-columns:1fr 1fr;
    }

    .inst-item:nth-child(2)::after{
        display:none;
    }

}

@media(max-width:700px){

    .institucional-section{

        grid-template-columns:1fr;
    }

    .inst-item::after{
        display:none;
    }

    .inst-item{

        border-bottom:1px solid #e5e5e5;
    }

}


.contact-section{

    width:92%;

    margin:60px auto;

    display:grid;

    grid-template-columns:
    1fr 1.2fr;

    gap:30px;

    align-items:stretch;
}

/* INFO */

.contact-info{

   

    border-radius:22px;

    padding:40px;



    box-shadow:
    0 6px 18px rgba(0,0,0,.04);
}

/* ETIQUETA */

.contact-tag{

    display:inline-block;

    background:#611232;

    color:white;

    padding:8px 16px;

    border-radius:50px;

    font-size:.72rem;

    letter-spacing:1px;

    margin-bottom:20px;

    font-weight:600;
}

/* TITULO */

.contact-info h2{

    font-size:2rem;

    margin-bottom:18px;

    color:#111;
}

/* TEXTO */

.contact-text{

    color:#666;

    line-height:1.8;

    margin-bottom:30px;

    font-size:.95rem;
}

/* ITEMS */

.contact-item{

    display:flex;

    gap:18px;

    margin-bottom:28px;

    align-items:flex-start;
}

.contact-item i{

    width:52px;
    height:52px;

    background:#611232;

    color:white;

    border-radius:16px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:1.1rem;

    flex-shrink:0;
}

.contact-item h4{

    font-size:1rem;

    margin-bottom:5px;

    color:#111;
}

.contact-item p{

    color:#666;

    line-height:1.6;

    font-size:.9rem;
}

/* MAPA */
.contact-map{
    width: 100%;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.contact-map iframe{
    width: 100%;
    height: 400px;
    border: 0;
}

/* RESPONSIVE */

@media(max-width:1000px){

    .contact-section{

        grid-template-columns:1fr;
    }

}

@media(max-width:700px){

    .contact-info{

        padding:30px 22px;
    }

    .contact-info h2{

        font-size:1.6rem;
    }

}

.modal-contacto{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    z-index:99999;
    justify-content:center;
    align-items:center;
}

.modal-contenido{
    background:white;
    width:90%;
    max-width:520px;
    border-radius:22px;
    padding:32px;
    position:relative;
    animation:fadeModal .3s ease;
}

.modal-contenido h2{
    text-align:center;
    color:#7b0c2e;
    margin-bottom:8px;
}

.modal-subtitulo{
    text-align:center;
    color:#666;
    margin-bottom:25px;
}

.cerrar-modal{
    position:absolute;
    top:14px;
    right:20px;
    font-size:32px;
    cursor:pointer;
    color:#7b0c2e;
}

.contacto-item{
    display:flex;
    gap:15px;
    margin-bottom:18px;
    align-items:flex-start;
}

.contacto-item i{
    width:45px;
    height:45px;
    background:#7b0c2e;
    color:white;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.contacto-item p{
    margin:4px 0 0;
    color:#666;
}

.modal-botones{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-top:25px;
}

.btn-modal{
    background:#7b0c2e;
    color:white;
    padding:12px;
    border-radius:14px;
    text-align:center;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.btn-modal:hover{
    background:#611232;
}

@keyframes fadeModal{
    from{opacity:0; transform:scale(.9);}
    to{opacity:1; transform:scale(1);}
}

@media(max-width:500px){
    .modal-botones{
        grid-template-columns:1fr;
    }
}

/* ===== BARRA CLIMA INSTITUCIONAL ===== */
.clima-ticker-wrap {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10;
    max-width: 560px;
    width: 55%;
}

.clima-ticker {
    background: #621132;
    border-radius: 50px;
    padding: 7px 18px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.clima-ubicacion {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 14px;
    border-right: 1px solid rgba(201,160,74,.35);
    flex-shrink: 0;
}

.clima-scroll-outer {
    overflow: hidden;
    flex: 1;
    margin-left: 14px;
}

.clima-scroll-track {
    display: flex;
    gap: 20px;
    animation: scrollClima 20s linear infinite;
    width: max-content;
}

.clima-scroll-track:hover {
    animation-play-state: paused;
}

.clima-dia-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.clima-dia-item .c-dia {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    font-weight: 600;
    min-width: 24px;
}

.clima-dia-item .c-icon {
    font-size: 15px;
    line-height: 1;
}

.clima-dia-item .c-temps {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.clima-dia-item .c-temps em {
    color: rgba(255,255,255,.5);
    font-style: normal;
    font-weight: 400;
}

.clima-sep {
    color: rgba(201,160,74,.4);
    font-size: 14px;
}

.clima-skeleton {
    font-size: 12px;
    color: rgba(255,255,255,.5);
}
.clima-aire {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 14px;
    border-right: 1px solid rgba(179, 142, 93);
    flex-shrink: 0;
    line-height: 1.3;
}

.aire-label {
    font-size: 10px;
    color: rgba(179, 142, 93);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.aire-valor {
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
    white-space: nowrap;
}

.clima-divider {
    width: 1px;
    height: 22px;
    background: rgba(201,160,74,.2);
    margin: 0 10px;
    flex-shrink: 0;
}

@keyframes scrollClima {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .clima-ticker-wrap {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 100%;
    }
}