@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

:root {
    /* ---- Paleta oficial Chihuahua Online ---- */
    --magenta: #004eaa;
    --magenta-bright: #0260cf;
    --purpura: #7846b3;
    --purpura-light: #9568c6;
    --azul-gob: #004EAA;
    --gris-gob: #404040;
    --grad: var(--azul-gob);
    --grad-soft: rgba(0, 78, 170, 0.1);
    --bg: #eff2f6;
    --bg-soft: var(--bg);
    --ink: #000000;
    --muted: #8a8e8c;
    --border: #c4c4c4;
    --card: #ffffff;
    --shadow: 0 10px 40px rgba(0, 78, 170, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    font-family: "Gotham";
    background: white;
    color: var(--ink);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- NEW HEADER ---------- */
.main-header {
    position: relative;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
}

.header-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 32px;
}

.logos-left,
.logos-center,
.logos-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-ccm {
    height: 45px;
}

.logo-mch {
    height: 45px;
}

.logo-cho {
    height: 35px;
}

.logo-gob {
    height: 50px;
}

@media (max-width: 768px) {
    .header-logos {
        flex-direction: column;
        gap: 15px;
    }

    .dropdown-btn {
        font-size: 0;
        /* Oculta texto, deja el ícono */
        padding: 0 12px;
    }

    .search-input {
        font-size: 0.9rem;
    }
}

.header-search {
    padding: 0 32px 15px;
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--purpura);
    border-radius: 30px;
    background: #fff;
    position: relative;
    align-items: stretch;
}

.search-dropdown {
    background: var(--purpura-light);
    border-radius: 30px 0 0 30px;
    display: flex;
}

.dropdown-btn {
    background: transparent;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
}

.search-btn {
    background: var(--purpura-light);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 4px;
}

.header-nav-bottom {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 32px 15px;
    border-top: 1px solid #eee;
}

.nav-links-bottom {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--azul-gob);
}

.nav-links-bottom a {
    transition: color 0.2s;
}

.nav-links-bottom a:hover {
    color: var(--magenta);
}

.nav-item-dropdown a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-buscar-punto {
    background: #e6eff9;
    color: var(--azul-gob);
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.2s;
}

.btn-buscar-punto:hover {
    background: #d4e3f4;
    color: var(--azul-gob) !important;
}

.social-links-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-links-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    transition: transform 0.2s;
}

.social-links-header a:hover {
    transform: scale(1.1);
}

.social-links-header img {
    width: 30px;
    height: 30px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--azul-gob);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 900px) {
    .header-nav-bottom {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
    }

    .social-links-header {
        margin-left: auto;
    }

    .nav-links-bottom {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        text-align: center;
    }

    .nav-links-bottom.show-mobile {
        display: flex;
    }
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}

.search-results-dropdown.hidden {
    display: none;
}

.search-result-item {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    color: var(--ink);
    font-weight: 500;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-soft);
    color: var(--magenta);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: white;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
}

.hero canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.55;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 32px 80px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1eef6;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--purpura);
    margin-bottom: 22px;
}

.pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purpura);
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--azul-gob);
}

.hero h1 .grad {
    /* Retaining just in case */
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--azul-gob);
    font-weight: 500;
    margin-bottom: 35px;
    max-width: 580px;
}

.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.25s;
}

.btn-purple {
    background: var(--purpura-light);
    color: #fff;
    box-shadow: 0 8px 20px rgba(149, 104, 198, 0.3);
}

.btn-purple:hover {
    transform: translateY(-2px);
    background: var(--purpura);
    box-shadow: 0 12px 28px rgba(120, 70, 179, 0.4);
}

.btn-light-blue {
    background: #e6eff9;
    color: var(--azul-gob);
    border: 1px solid #d4e3f4;
}

.btn-light-blue:hover {
    background: #d4e3f4;
    transform: translateY(-2px);
}

/* ---- NEW VISUAL CORE ---- */
.new-visual-core {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wifi-center {
    position: relative;
    z-index: 10;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a777d6, #804ebf);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(120, 70, 179, 0.4);
}

.concentric-circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(120, 70, 179, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.c1 {
    width: 220px;
    height: 220px;
    background: rgba(120, 70, 179, 0.05);
}

.c2 {
    width: 320px;
    height: 320px;
}

.c3 {
    width: 440px;
    height: 440px;
    border: 1px solid rgba(120, 70, 179, 0.08);
}

.c4 {
    width: 580px;
    height: 580px;
    border: 1px dashed rgba(120, 70, 179, 0.1);
}

.satellite-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}

.satellite-node .s-wifi {
    margin-bottom: 6px;
}

.satellite-node .s-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--azul-gob), transparent);
    margin-bottom: 6px;
}



.satellite-node .s-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dot-purple {
    background: var(--purpura);
}

.dot-blue {
    background: var(--azul-gob);
}

.dot-lightblue {
    background: #5a9bd4;
}

.dot-magenta {
    background: #d62865;
}

.top-left {
    top: 20px;
    left: 40px;
}

.top-right {
    top: 20px;
    right: 40px;
}

.bottom-left {
    bottom: 20px;
    left: 60px;
}

.bottom-right {
    bottom: 20px;
    right: 60px;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero .pill,
    .cta-row {
        justify-content: center;
    }

    .hero p.lead {
        margin: 0 auto 35px;
    }

    .new-visual-core {
        transform: scale(0.75);
        height: 350px;
    }
}

@media (max-width: 600px) {
    .new-visual-core {
        transform: scale(0.5);
        height: 250px;
    }

    .cta-row {
        flex-direction: column;
        width: 100%;
    }

    .cta-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- STATS ---------- */
.stats {
    max-width: 1300px;
    margin: -40px auto 0;
    position: relative;
    z-index: 5;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
}

.stats-grid,
.stats-bottom-box {
    background: #fff;
    border: 1px solid var(--purpura-light);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 28px 20px;
}

.stats-bottom-box {
    padding: 40px 20px;
}

.stats-bottom-title {
    text-align: center;
    margin-bottom: 40px;
}

.stats-bottom-title h2 {
    font-size: 2.2rem;
    color: var(--azul-gob);
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stats-bottom-title .inline-logo {
    height: 40px;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-num.bg-blue {
    background: var(--azul-gob);
}

.step-num.bg-purple {
    background: var(--purpura-light);
}

.step-text {
    font-size: 0.9rem;
    color: var(--azul-gob);
    margin-bottom: 20px;
    min-height: 40px;
}

.step-text small {
    font-size: 0.75rem;
    color: var(--muted);
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-icon.wifi img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--azul-gob);
    padding: 5px;
    border-radius: 5px;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.stat {
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: none;
}

.stat .num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--azul-gob);
}

.stat .lbl {
    color: var(--azul-gob);
    font-size: 0.95rem;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .steps-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin-top: 0;
        margin-bottom: 0px;
    }
}

@media (max-width: 780px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .stat {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat {
        border-bottom: 1px solid var(--border);
        padding-bottom: 15px;
        margin-bottom: 5px;
    }

    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* ---------- SECTIONS ---------- */
section.block {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 32px;
    background-color: white;
}

@media (max-width: 768px) {
    section.block {
        padding: 50px 20px;
    }
}

.eyebrow {
    color: var(--magenta);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h2.title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    max-width: 760px;
    line-height: 1.2;
}

h2.title .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin-bottom: 42px;
}

/* ---------- TECNOLOGÍA (profundo) ---------- */
.tech {
    /* background: var(--bg-soft);*/
    /*border-top: 1px solid var(--border);*/
    /*border-bottom: 1px solid var(--border);*/
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.eyebrow-tech {
    text-align: center;
    color: var(--purpura-light);
    letter-spacing: 2px;
}

.title-tech {
    text-align: center;
    color: var(--azul-gob);
    margin: 0 auto 12px;
}

.sub-tech {
    text-align: center;
    margin: 0 auto 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--purpura-light);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card-header {
    border: 1px solid var(--azul-gob);
    border-radius: 40px;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    margin-bottom: 20px;
    position: relative;
}

.card-title-text {
    color: var(--purpura-light);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.card-img {
    height: 140px;
    position: absolute;
    right: 20px;
    bottom: 0px;
}

.card-img-overflow {
    /* bottom: -15px;*/
}

.card-body {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding-right: 20px;
    flex: 1;
}

.card-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-pill {
    background: #e6eff9;
    color: var(--azul-gob);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--azul-gob);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 880px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .card-img {
        height: 60px;
    }
}

/* ---------- MAPA ---------- */
.map-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

.block-mapa {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 32px;
}

.eyebrow-mapa {
    color: var(--purpura-light);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-mapa {
    color: var(--azul-gob);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.sub-mapa {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 42px;
}

.search-panel {
    background: #fff;
    border: 1px solid var(--purpura-light);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.search-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--azul-gob);
    font-weight: 800;
}

.search-panel .hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
    background: #fafafa;
}

.search-box:focus {
    border-color: var(--azul-gob);
    box-shadow: 0 0 0 3px rgba(0, 78, 170, 0.12);
}

.muni-summary {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 18px 0 10px;
}

.municipios-list {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 4px;
}

.muni-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}

.muni-item:hover {
    border-color: var(--purpura-light);
    background: #fff;
}

.muni-item.active {
    background: #fff;
    border-color: var(--purpura);
}

.muni-item .name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--ink);
}

.muni-item .count {
    background: #e6eff9;
    color: var(--azul-gob);
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
}

.muni-item.active .count {
    background: var(--azul-gob);
    color: #fff;
}

.map-container {
    height: 100%;
    min-height: 600px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.map-container:focus {
    outline: 3px solid rgba(0, 78, 170, 0.24);
    outline-offset: 4px;
}

.leaflet-overlay-pane path.chihuahua-outline-path.is-drawing {
    animation: draw-chihuahua-outline 2.8s ease-out forwards;
}

.leaflet-overlay-pane path.chihuahua-outline-path.is-flashing {
    animation: chihuahua-state-flash 1s ease-out forwards;
}

@keyframes draw-chihuahua-outline {
    from {
        stroke-dashoffset: var(--chihuahua-outline-length, 1000);
        fill-opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        fill-opacity: 0;
    }
}

@keyframes chihuahua-state-flash {
    0% {
        fill-opacity: 0;
        stroke-opacity: 1;
        filter: drop-shadow(0 0 0 rgba(0, 78, 170, 0));
    }

    38% {
        fill-opacity: 0.28;
        stroke-opacity: 1;
        filter: drop-shadow(0 0 18px rgba(0, 78, 170, 0.55));
    }

    100% {
        fill-opacity: 0.05;
        stroke-opacity: 0.6;
        filter: drop-shadow(0 0 0 rgba(0, 78, 170, 0));
    }
}

@media (max-width: 900px) {
    .map-wrap {
        grid-template-columns: 1fr;
    }

    .search-panel {
        position: static;
    }

    .map-container {
        height: 400px;
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .search-panel {
        padding: 18px;
    }

    .map-container {
        height: 350px;
        min-height: auto;
    }
}

/* ---- markers ---- */
.custom-marker {
    background: var(--grad);
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2.5px solid #fff;
    box-shadow: 0 3px 10px rgba(120, 70, 179, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-marker::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: rotate(45deg);
}

.popup-title {
    font-weight: 800;
    color: var(--purpura);
    margin-bottom: 5px;
    font-size: 1rem;
}

.popup-info {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 9px;
}

.popup-rate {
    font-size: 0.82rem;
    margin-bottom: 9px;
}

.popup-btn {
    background: var(--grad);
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
}

/* ---------- CONEXIONES ---------- */
.block-conexiones {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 32px;
}

.conexiones-header {
    max-width: 900px;
    margin-bottom: 40px;
}

.eyebrow-conexiones {
    color: var(--purpura-light);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-conexiones {
    color: var(--azul-gob);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.sub-conexiones {
    color: var(--muted);
    font-size: 1.05rem;
}

.conexiones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.conexion-card {
    background: #fff;
    border: 1px solid var(--purpura-light);
    border-radius: 16px;
    padding: 2px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.conexion-img {
    /*height: 55px;*/
    max-width: 50%;
    object-fit: contain;
}

.conexion-data {
    text-align: right;
}

.conexion-num {
    color: var(--purpura-light);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.conexion-lbl {
    color: var(--azul-gob);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

@media (max-width: 900px) {
    .conexiones-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .conexion-card {
        padding: 15px 20px;
    }

    .conexion-num {
        font-size: 2.2rem;
    }

    .conexion-img {
        height: 45px;
    }
}

/* ---------- PARTICIPA ---------- */
.block-participa {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 32px;
}

.participa-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.participa-text-content {
    max-width: 700px;
}

.eyebrow-participa {
    color: var(--purpura-light);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-participa {
    color: var(--azul-gob);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.sub-participa {
    color: var(--muted);
    font-size: 1.05rem;
}

.participa-action {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 25px;
}

.btn-datos {
    background: #fff;
    border: 1px solid var(--azul-gob);
    color: var(--azul-gob);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: 0.2s;
    width: 100%;
}

.btn-datos:hover {
    background: #e6eff9;
}

.solicitud-card {
    background: #fff;
    border: 1px solid var(--purpura-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.solicitud-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.solicitud-icon .icon-box {
    width: 60px;
    height: 60px;
    background: var(--azul-gob);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.solicitud-info h3 {
    color: var(--azul-gob);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.solicitud-info p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.btn-solicitud {
    background: var(--purpura-light);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    font-family: inherit;
}

.btn-solicitud:hover {
    background: var(--purpura);
}

@media (max-width: 880px) {
    .participa-header {
        flex-direction: column;
    }

    .participa-action {
        padding-top: 0;
    }

    .solicitud-content {
        flex-direction: column;
        text-align: center;
    }

    .solicitud-card {
        padding: 25px 20px;
    }

    .map-wrap {
        grid-template-columns: 1fr;
    }

    section.block {
        padding: 55px 20px;
    }
}

/* ---------- MODAL ---------- */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(31, 23, 51, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-bg.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(31, 23, 51, 0.3);
}

@media (max-width: 600px) {
    .modal-bg {
        padding: 15px;
    }

    .modal {
        padding: 20px;
        border-radius: 16px;
        max-height: 95vh;
    }
}

.modal h3 {
    font-size: 1.35rem;
    color: var(--purpura);
    margin-bottom: 4px;
}

.modal .msub {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.modal label {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 6px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.modal input,
.modal textarea,
.modal select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-family: inherit;
    outline: none;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
    border-color: var(--magenta);
}

.dependencia-fields.is-hidden {
    display: none;
}

.modal textarea {
    resize: vertical;
    min-height: 88px;
}

.rating {
    display: flex;
    gap: 5px;
    margin-bottom: 16px;
}

.star {
    font-size: 1.7rem;
    cursor: pointer;
    color: #dcd5e2;
    transition: 0.15s;
}

.star.on {
    color: #ffb400;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.comments-list {
    margin-top: 22px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.comments-list h4 {
    font-size: 0.92rem;
    margin-bottom: 12px;
    color: var(--muted);
}

.comment {
    background: var(--bg-soft);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 3px solid var(--magenta);
}

.comment .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.comment .text {
    font-size: 0.92rem;
}

/* ---------- COMENTARIOS (Plantilla) ---------- */
.eyebrow-comentarios {
    color: var(--magenta-bright);
    font-weight: 900;
    text-align: center;
    letter-spacing: 2px;
}

.title-comentarios {
    color: var(--azul-gob);
    font-weight: 900;
    text-align: center;
    margin: 0 auto 15px auto;
}

.sub-comentarios {
    color: #333333;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    margin: 0 auto 40px auto;
    max-width: 800px;
}

.block-comentarios {
    background: #fcfcfd;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 78, 170, 0.08);
    max-width: 1300px;
    margin: 40px auto;
    padding: 60px 20px 40px 20px;
    /* Asegurar espaciado interior para los títulos */
}

.block-comentarios::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(230, 239, 249, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
    pointer-events: none;
    border-radius: 20px;
}

.eyebrow-comentarios,
.title-comentarios,
.sub-comentarios {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.comments-carousel-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.comments-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex: 1;
    min-width: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.comment-card.side-card {
    transform: scale(0.85);
    opacity: 0.5;
}

.comment-card.side-card:hover {
    opacity: 0.8;
}

.comment-card.center-card.active {
    transform: scale(1);
    z-index: 2;
    border: 2px solid var(--purpura-light);
    box-shadow: 0 15px 35px rgba(0, 78, 170, 0.12);
    opacity: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comment-date {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
}

.comment-badge {
    background: #e6eff9;
    color: var(--azul-gob);
    font-size: 0.65rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.comment-stars {
    font-size: 2.2rem;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 4px;
}

.star.filled {
    color: var(--purpura);
}

.star.empty {
    color: #ddd;
}

.comment-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--azul-gob);
    margin-bottom: 10px;
    text-align: left;
}

.comment-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    text-align: left;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background: var(--azul-gob);
}

@media (max-width: 768px) {
    .comments-carousel {
        flex-direction: column;
    }

    .comment-card.side-card {
        display: none;
    }

    .comment-card.center-card.active {
        transform: scale(1);
    }
}

/* ---------- FOOTER ---------- */
/* ---------- NEW FOOTER ---------- */
.site-footer {
    background-color: #fff;
    padding: 40px 40px 20px;
    position: relative;
    color: #333;
    border-top: 1px solid #eaeaea;
}

.site-footer .container-lg {
    max-width: 1300px;
    margin: 0 auto;
}

.site-footer .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.site-footer .col-md-3 {
    flex: 0 0 25%;
    max-width: 300px;
}

.site-footer .col-md-9 {
    flex: 1;
}

.footer-logo img {
    max-width: 220px;
    height: auto;
    margin-bottom: 25px;
}

.footer-redes-texto {
    font-weight: 800;
    color: var(--azul-gob);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-redes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-redes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--azul-gob);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition:
        transform 0.2s,
        background-color 0.2s;
}

.footer-redes a:hover {
    transform: scale(1.1);
    background-color: var(--purpura);
}

.footer-redes a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.site-footer .nav.flex-row {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    gap: 20px;
}

.site-footer .menu-item--expanded {
    flex: 1;
    position: relative;
}

.site-footer .nav.flex-row>.menu-item--expanded>span.nav-link {
    font-weight: 800;
    color: var(--azul-gob);
    font-size: 1.15rem;
    font-style: italic;
    display: block;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--purpura-light);
}

.site-footer .nav.flex-row>.menu-item--expanded:first-child>span.nav-link {
    border-bottom: 4px solid var(--azul-gob);
}

.site-footer .flex-column {
    list-style: none;
    padding: 0;
    margin: 0;
}


.site-footer .flex-column .nav-link {
    color: #333333;
    font-size: 14.4px;
    font-family: 'Gotham', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.site-footer .flex-column .nav-link:hover {
    color: var(--azul-gob);
    text-decoration: underline;
}

.site-footer__bottom {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-bottom: 20px;
}

.footer-linea {
    display: flex;
    height: 14px;
    flex: 1;
    margin-right: 25px;
    max-width: 75%;
}

.footer-linea-color {
    background-color: var(--azul-gob);
    flex: 0 0 75%;
}

.footer-linea-gris {
    background-color: var(--purpura-light);
    flex: 0 0 25%;
}

.footer-copyright {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    white-space: nowrap;
}

.img-background {
    position: absolute;
    right: -20px;
    bottom: -20px;
    max-width: 350px;
    opacity: 0.05;
    pointer-events: none;
}

@media (max-width: 900px) {
    .site-footer .row {
        flex-direction: column;
    }

    .site-footer .col-md-3 {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-logo img {
        margin: 0 auto 20px;
    }

    .footer-redes {
        justify-content: center;
    }

    .site-footer .nav.flex-row {
        flex-direction: column;
        gap: 30px;
    }

    .site-footer .nav.flex-row>.menu-item--expanded>span.nav-link {
        margin-top: 0;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: stretch;
        margin-top: 40px;
    }

    .footer-linea {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-copyright {
        text-align: center;
        white-space: normal;
    }
}

/* ---------- ACCESIBILIDAD (A11Y) ---------- */

/* Clases de Accesibilidad (A11Y) */
body.a11y-text-xl {
    font-size: 130% !important;
}

body.a11y-high-contrast {
    --bg: #000000 !important;
    --bg-soft: #111111 !important;
    --card: #1a1a1a !important;
    --ink: #ffffff !important;
    --muted: #dddddd !important;
    --border: #ffff00 !important;
    --purpura: #ffff00 !important;
    --magenta: #ffff00 !important;
    --azul-gob: #ffff00 !important;
    background: var(--bg) !important;
    color: var(--ink) !important;
}

body.a11y-high-contrast * {
    border-color: #ffff00 !important;
}

body.a11y-high-contrast a,
body.a11y-high-contrast .btn,
body.a11y-high-contrast button {
    color: #000 !important;
    background: #ffff00 !important;
    border: 2px solid #fff !important;
}

body.a11y-grayscale>*:not(.a11y-launcher):not(.a11y-panel):not(.chatbot-launcher):not(.chatbot-container) {
    filter: grayscale(100%) !important;
}

body.a11y-large-cursor,
body.a11y-large-cursor * {
    cursor:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%23000" stroke="%23fff" stroke-width="2" d="M4 0l16 12-6.5 1.5L18 22l-4 2-4.5-8.5L4 20Z"/></svg>'),
        auto !important;
}

body.a11y-keyboard-nav *:focus {
    outline: 3px solid var(--magenta-bright) !important;
    outline-offset: 2px !important;
}

body.a11y-dyslexia * {
    font-family: "Gotham" !important;
}

body.a11y-vertical-space * {
    line-height: 2 !important;
}

body.a11y-horizontal-space * {
    letter-spacing: 2px !important;
    word-spacing: 5px !important;
}

body.a11y-highlight-links a {
    text-decoration: underline !important;
    text-decoration-color: var(--magenta) !important;
    text-decoration-thickness: 3px !important;
    background-color: rgba(0, 78, 170, 0.1) !important;
}

body.a11y-focus-visible *:focus {
    outline: 4px solid #ff0 !important;
    outline-offset: 4px !important;
    background: #000 !important;
    color: #fff !important;
}

body.a11y-pause-animations * {
    animation: none !important;
    transition: none !important;
}

body.a11y-hide-images img,
body.a11y-hide-images picture,
body.a11y-hide-images svg {
    visibility: hidden !important;
}

body.a11y-color-saturation>*:not(.a11y-launcher):not(.a11y-panel):not(.chatbot-launcher):not(.chatbot-container) {
    filter: saturate(200%) !important;
}

.a11y-launcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--purpura-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.a11y-launcher img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.a11y-panel {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: none;
    max-height: 75vh;
    overflow: hidden;
    flex-direction: column;
    font-family: "Gotham";
}

.a11y-panel.show {
    display: flex;
}

.a11y-header {
    background: var(--azul-gob);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-size: 1.15rem;
}

.a11y-header img {
    width: 32px;
    height: 32px;
}

.a11y-content {
    overflow-y: auto;
    padding: 15px 20px;
    flex: 1;
}

.a11y-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
}

.a11y-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.a11y-icon-box {
    width: 45px;
    height: 45px;
    background: #9b59b6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.a11y-item-text h4 {
    margin: 0 0 3px 0;
    font-size: 1rem;
    color: var(--azul-gob);
    font-weight: 700;
}

.a11y-item-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.2;
}

.a11y-toggle {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.a11y-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.a11y-toggle.active {
    background: #9b59b6;
}

.a11y-toggle.active::after {
    transform: translateX(20px);
}

.a11y-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.a11y-reset-btn {
    background: var(--azul-gob);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    font-size: 1rem;
}

.a11y-compliance {
    font-size: 0.8rem;
    color: #666;
    text-align: left;
    margin-top: 10px;
}

/* ---------- CHATBOT ---------- */
.chatbot-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border: none;
    background: var(--azul-gob);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99997;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.chatbot-launcher:hover {
    transform: scale(1.1);
}

.chatbot-launcher.hidden {
    display: none;
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 550px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chatbot-container.hidden {
    display: none;
}

.chatbot-header {
    background: var(--azul-gob);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.chatbot-title {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-actions button {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chatbot-embed {
    flex: 1;
    width: 100%;
    border: none;
}

/* ---- NEW TOP BAR ---- */
.newTopBar {
    background-color: #014eaa;
    color: white;
    font-family: 'Gotham', sans-serif;
    font-size: 13px;
    width: 100%;
}

.newTopBar__header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    text-align: center;
}

.newTopBar__toggle {
    cursor: pointer;
    margin-left: 8px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.newTopBar__toggle:hover {
    text-decoration: underline;
}

.newTopBar__content {
    display: none;
    background-color: #014eaa;
    padding: 15px 10%;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
}

.newTopBar.expanded .newTopBar__content {
    display: flex;
}

.newTopBar__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.newTopBar__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newTopBar__text p {
    margin: 0;
    line-height: 1.4;
}

.newTopBar__text p:first-child {
    font-size: 15px;
    margin-bottom: 5px;
}

.newTopBar__text p:last-child {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .newTopBar__content {
        flex-direction: column;
        align-items: center;
    }

    .newTopBar__item {
        max-width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .a11y-launcher {
        width: 65px;
        height: 65px;
        bottom: 25px;
        left: 20px;
        background: var(--purpura-light);
    }

    .a11y-panel {
        width: calc(100vw - 120px);
        min-width: 280px;
        max-width: 320px;
        left: 20px;
        bottom: 100px;
    }
}

.leaflet-tile-pane {
    filter: grayscale(100%) opacity(0.6) brightness(1.2);
}