* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f8f5f3;
    color: #222;
}

a {
    text-decoration: none;
}

/* ===== TOPBAR ===== */
.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 ===== */
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: 16px;
}

.logo img {
    width: clamp(120px, 15vw, 180px);
    max-width: 100%;
}

.logo-divider {
    width: 1px;
    height: 40px;
    background: #d1d5db;
    flex-shrink: 0;
}

.logo-secundario {
    height: 70px;
    width: auto;
    object-fit: contain;
    transform: scale(1.8);
    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;
    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);
}

/* ===== MENÚ PANEL LATERAL ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1998;
    backdrop-filter: blur(2px);
}

.nav-overlay.active { display: block; }

.nav-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,.15);
    transition: right .3s ease;
    overflow: hidden;
}

.nav-panel.active {
    right: 0;
}

.nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0ece9;
    background: #f8f5f3;
    flex-shrink: 0;
}

.nav-panel-cerrar {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #7b0c2e;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.nav-panel-cerrar:hover {
    background: #fef2f2;
}

.nav-panel-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    overflow-y: auto;
}

.nav-panel-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: #222;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f8f5f3;
    transition: .2s;
}

.nav-panel-links a:hover {
    background: #fef2f2;
    color: #7b0c2e;
    padding-left: 30px;
}

.nav-panel-links a i {
    width: 20px;
    color: #7b0c2e;
    font-size: 0.95rem;
}

.nav-panel-footer {
    flex-shrink: 0;
    padding: 20px 24px;
    border-top: 1px solid #f0ece9;
    background: #13322B;
    text-align: center;
}

.nav-panel-footer p {
    color: rgba(255,255,255,.7);
    font-size: 0.72rem;
    margin: 2px 0;
}

/* ===== HERO ===== */
.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;
}

/* ===== BARRA CLIMA ===== */
.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: #fff;
    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,1);
    flex-shrink: 0;
    line-height: 1.3;
}

.aire-label {
    font-size: 10px;
    color: rgba(179,142,93,1);
    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%); }
}

/* ===== SEARCH BOX ===== */
.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-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;
}

/* ===== ACCESOS RÁPIDOS ===== */
.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;
    cursor: pointer;
}

.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 ===== */
.container-custom {
    width: 92%;
    margin: 0 auto;
}

.two-columns { margin: 50px auto; }

.two-columns-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 30px;
}

.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-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; }

.directorio-foto {
    width: 200px;
    height: 200px;
    margin: 0 auto 22px;
    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: 1.1rem;
    font-weight: 700;
    color: #611232;
}

.cargo {
    margin-top: 8px;
    color: #555;
    font-size: 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;
    margin-bottom: 0;
}

/* ===== 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 ===== */
.report { width: 92%; margin: 50px auto; }

.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; }

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.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);
}

.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); }

.news-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.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; }

/* ===== STATS ===== */
.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 ===== */
.contact-section {
    width: 92%;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: stretch;
}

.contact-info {
    border-radius: 22px;
    padding: 40px;
    background: white;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.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;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 18px; color: #111; }

.contact-text { color: #666; line-height: 1.8; margin-bottom: 30px; font-size: .95rem; }

.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; }

.contact-map {
    width: 100%;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.contact-map iframe { width: 100%; height: 400px; border: 0; }

/* ===== INSTITUCIONAL ===== */
.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;
}

.inst-item {
    display: flex;
    flex-direction: column;
    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;
    cursor: pointer;
    position: relative;
}

.inst-item:last-child { border-right: none; }
.inst-item:hover { background: #efefef; transform: translateY(-2px); }

.inst-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 0;
    width: 1px;
    height: 50%;
    background: #dddddd;
}

.inst-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inst-icon img { width: 100%; height: 100%; object-fit: contain; }
.inst-icon i { font-size: 52px; color: #f8f5f3; }

.inst-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.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;
    max-width: 350px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== FOOTER ===== */
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; }

/* ===== MODAL CONTACTO ===== */
.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); }
}

/* ===== 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); }
}

/* ========================================
   MEDIA QUERIES — UN SOLO BLOQUE POR BREAKPOINT
   ======================================== */

@media (min-width: 1200px) {
    .two-columns-grid { grid-template-columns: 30% 70%; }
}

@media (max-width: 1400px) {
    .report-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .institucional-section { grid-template-columns: 1fr 1fr; }
    .inst-item:nth-child(2)::after { display: none; }
}

@media (max-width: 1000px) {
    .report-grid { grid-template-columns: 1fr; }
    .contact-section { grid-template-columns: 1fr; }
}

@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%; }

    .two-columns-grid { grid-template-columns: 1fr; gap: 30px; }
    .cards { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    /* Header */
    header {
        padding: 10px 4%;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo img:first-child {
        width: 80px !important;
        max-width: 80px !important;
    }

    .logo-secundario {
        height: 35px !important;
        transform: scale(1) !important;
    }

    .logo-divider { height: 25px !important; }

    .menu-toggle {
        display: block !important;
        flex-shrink: 0;
    }

    /* Topbar */
    .topbar { text-align: center; justify-content: center; }
    .topbar-right { justify-content: center; }

    /* Clima */
    .clima-ticker-wrap {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
    }

    .clima-ticker { border-radius: 0 !important; padding: 5px 12px !important; }
    .clima-dias { display: none !important; }

    /* Layout */
    .two-columns-grid { grid-template-columns: 1fr; }
    .servicios-grid-3 { grid-template-columns: 1fr; }

    /* Cards accesos */
    .cards {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px;
    }

    .card { padding: 16px 8px; border-radius: 14px; }
    .card i { font-size: 24px; margin-bottom: 8px; }
    .card h3 { font-size: 0.65rem; }

    /* Noticias */
    .report-grid { grid-template-columns: 1fr; gap: 10px; }

    .news-card {
        flex-direction: row !important;
        min-height: 85px;
        overflow: hidden;
    }

    .news-img {
        width: 90px !important;
        min-width: 90px !important;
        max-width: 90px !important;
        height: auto !important;
        align-self: stretch;
        flex-shrink: 0;
    }

    .news-img img { width: 100%; height: 100%; object-fit: cover; }

    .news-content { flex: 1; padding: 10px 12px; overflow: hidden; }
    .news-content h3 { font-size: 0.72rem; margin-bottom: 4px; line-height: 1.3; }
    .news-content p { font-size: 0.7rem; line-height: 1.4; margin-bottom: 4px; }
    .news-content span { font-size: 0.65rem; color: #999; }

    /* Institucional */
    .institucional-section {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 95%;
    }

    .inst-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 12px !important;
        gap: 8px !important;
        border-bottom: 1px solid #e8e8e8;
    }

    .inst-item:not(:last-child)::after { display: none !important; }

    .inst-item:nth-child(1),
    .inst-item:nth-child(2) { border-bottom: 1px solid #e8e8e8 !important; }

    .inst-item:nth-child(1),
    .inst-item:nth-child(3) { border-right: 1px solid #e8e8e8 !important; }

    .inst-item:nth-child(2),
    .inst-item:nth-child(4) { border-right: none !important; }

    .inst-icon { width: 44px !important; height: 44px !important; min-width: 44px !important; }
    .inst-icon img { width: 100% !important; height: 100% !important; }

    .inst-text h3 { font-size: 0.82rem !important; font-weight: 700 !important; margin-bottom: 4px !important; }

    .inst-text p {
        font-size: 0.7rem !important;
        color: #666 !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: 100% !important;
    }
}

@media (max-width: 700px) {
    .institucional-section { grid-template-columns: 1fr !important; }
    .inst-item::after { display: none !important; }

    .contact-info { padding: 30px 22px; }
    .contact-info h2 { font-size: 1.6rem; }
}

@media (max-width: 576px) {
    .cards { grid-template-columns: repeat(4, 1fr) !important; }

    .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 !important; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social { justify-content: center; }

    .modal-botones { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .institucional-section { width: 95% !important; }
    .inst-item { border-right: none !important; border-bottom: 1px solid #e8e8e8 !important; }
    .inst-item:last-child { border-bottom: none !important; }
}

@media (max-width: 768px) and (min-width: 480px) {
    .institucional-section {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .institucional-section {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 400px) {
    .institucional-section {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}