    /* ── TOKENS ─────────────────────────────────── */
    :root {
      --navy: #13304D;
      --sky: #2FB3E3;
      --white: #F9F9FA;
      --muted: #7A8FA6;
      --card-bg: #FFFFFF;
      --radius: 12px;
      --shadow: 0 4px 24px rgba(19, 48, 77, .10);
      --trans: .3s ease;
    }

    /* ── BASE ───────────────────────────────────── */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    html {
      scroll-behavior: smooth
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: var(--white);
      color: var(--navy);
      overflow-x: hidden;
    }

    /* ── NAV ────────────────────────────────────── */
    .navbar-brand svg {
      width: 28px;
      height: 28px;
      stroke: var(--sky)
    }

    .navbar {
      background: var(--navy) !important;
      padding: .9rem 1.5rem
    }

    .navbar-brand-text {
      font-weight: 700;
      font-size: 1.05rem;
      color: #fff;
      letter-spacing: .3px;
      line-height: 1.1
    }

    .navbar-brand-sub {
      font-size: .68rem;
      font-weight: 300;
      color: var(--sky);
      letter-spacing: 1.5px;
      text-transform: uppercase
    }

    .nav-link {
      color: rgba(255, 255, 255, .75) !important;
      font-size: .85rem;
      font-weight: 400;
      transition: color var(--trans)
    }

    .nav-link:hover {
      color: var(--sky) !important
    }

    /* ── HERO ───────────────────────────────────── */

    .hero {
      background: linear-gradient(135deg, rgba(10, 44, 66, 0) 55%, rgba(26, 74, 110, 0) 100%), url('../img/f00.jpg');
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      background-attachment: fixed;
      padding: 5rem 0 3.5rem;
      position: relative;
      overflow: hidden;
      min-height: 100vh;
      display: flex;
      align-items: center;
    }

    /* Tablets */
    @media (max-width: 768px) {
      .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
      }
    }

    /* Móviles */
    @media (max-width: 480px) {
      .hero {
        background-position: 70% center;
        /* Ajusta el foco de la imagen en móviles */
        padding: 3rem 0 2rem;
      }
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      /* background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232FB3E3' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); */
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: rgba(47, 179, 227, .15);
      border: 1px solid rgba(47, 179, 227, .3);
      border-radius: 30px;
      padding: .25rem .85rem;
      font-size: .72rem;
      font-weight: 600;
      color: var(--sky);
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 1.2rem;
    }

    .hero-title {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
    }

    .hero-title span {
      color: var(--sky);
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
    }

    .hero-sub {
      font-size: .95rem;
      color: rgba(255, 255, 255, .65);
      max-width: 520px;
      line-height: 1.7;
      margin-top: .75rem;
      text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    }

    .hero-stat {
      background: rgba(19, 48, 77, 0.86);
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: var(--radius);
      padding: 1rem 1.4rem;
      text-align: center;
    }

    .hero-stat-num {
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--sky)
    }

    .hero-stat-lbl {
      font-size: .72rem;
      color: rgba(255, 255, 255, .55);
      text-transform: uppercase;
      letter-spacing: .8px
    }

    /* ── FILTERS BAR ────────────────────────────── */
    .filters-bar {
      background: #fff;
      border-bottom: 1px solid #e8edf2;
      padding: .85rem 0;
      /* position:sticky;top:62px;z-index:900; */
    }

    .filter-pill {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: var(--white);
      border: 1.5px solid #dce5ef;
      border-radius: 30px;
      padding: .38rem .9rem;
      font-size: .78rem;
      font-weight: 500;
      color: var(--muted);
      cursor: pointer;
      transition: all var(--trans);
      white-space: nowrap;
    }

    .filter-pill.active,
    .filter-pill:hover {
      background: var(--sky);
      border-color: var(--sky);
      color: #fff;
    }

    .filter-pill svg {
      width: 13px;
      height: 13px;
      flex-shrink: 0
    }

    .filter-service {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: var(--white);
      border: 1.5px solid #dce5ef;
      border-radius: 30px;
      padding: .38rem .85rem;
      font-size: .76rem;
      font-weight: 500;
      color: var(--muted);
      cursor: pointer;
      transition: all var(--trans);
    }

    .filter-service.active,
    .filter-service:hover {
      background: var(--navy);
      border-color: var(--navy);
      color: #fff;
    }

    .filter-service svg {
      width: 13px;
      height: 13px
    }

/* ── MAP SECTION ────────────────────────────── */
#map-section {
    padding: 2.5rem 0;
}

#map {
    height: 560px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e0eaf3;
}

/* ── PANEL CONTAINER (NUEVO) ─────────────────── */
#panel-container {
    height: 560px;
    position: relative;
}

#panel-container #side-panel,
#panel-container #panel-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e0eaf3;
}

#panel-container #panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    padding: 2rem;
    z-index: 1;
}

#panel-container #side-panel {
    overflow-y: auto;
    z-index: 2;
    display: none;  /* Cambiado: usar display en lugar de visibility */
}

#panel-container #side-panel.visible {
    display: block;  /* Cambiado: mostrar con display block */
}
/* ── SIDE PANEL ─────────────────────────────── */
.panel-header {
    background: var(--navy);
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
}

.panel-tipo {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: .3rem;
}

.panel-nombre {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.panel-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    background: rgba(255, 255, 255, .1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans);
}

.panel-close:hover {
    background: rgba(255, 255, 255, .25);
}

.panel-body {
    padding: 1.2rem 1.3rem;
}

.panel-section-title {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin: .9rem 0 .4rem;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: .4rem;
}

.panel-info-row {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    margin: .35rem 0;
    font-size: .82rem;
    color: var(--navy);
}

.panel-info-row svg {
    width: 14px;
    height: 14px;
    stroke: var(--sky);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #edf7fd;
    color: #0e7eb3;
    border-radius: 6px;
    padding: .22rem .65rem;
    font-size: .72rem;
    font-weight: 500;
    margin: .2rem .15rem 0 0;
}

.service-chip svg {
    width: 11px;
    height: 11px;
}

.no-service {
    font-size: .82rem;
    color: var(--muted);
    font-style: italic;
}

/* ── MARKER CUSTOM ──────────────────────────── */
.marker-icon {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}

.marker-icon svg {
    transform: rotate(45deg);
    width: 15px;
    height: 15px;
    stroke: #fff;
}

.m-hospital {
    background: var(--navy);
}

.m-caps {
    background: var(--sky);
}
.m-cepam {
    background-color: #b84eb3;  /* el color que quieras */
}
.m-nodo {
    background: #4eb89c;
}
    /* ── PORTAL LINK SECTION ────────────────────── */
    #portal-section {
      background: linear-gradient(135deg, var(--navy), #1a4a6e);
      padding: 4rem 0;
      position: relative;
      overflow: hidden;
    }


    .portal-card {
      background: rgba(255, 255, 255, .06);
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: var(--radius);
      padding: 2rem;
      text-align: center;
    }

    .portal-card i {
      font-size: 48px;
      color: var(--sky);
      margin-bottom: 1rem;
      display: inline-block;
    }


    .portal-card svg {
      width: 48px;
      height: 48px;
      stroke: var(--sky);
      margin-bottom: 1rem
    }

    .portal-card h3 {
      color: #fff;
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: .5rem
    }

    .portal-card p {
      color: rgba(255, 255, 255, .6);
      font-size: .85rem;
      line-height: 1.7
    }

    .btn-portal {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      background: var(--sky);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: .75rem 1.6rem;
      font-size: .88rem;
      font-weight: 600;
      font-family: 'Poppins', sans-serif;
      text-decoration: none;
      margin-top: 1.2rem;
      transition: all var(--trans);
    }

    .btn-portal:hover {
      background: #1a9dcc;
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(47, 179, 227, .4)
    }

    .btn-portal svg {
      width: 16px;
      height: 16px
    }

/* Fondo fijo (parallax) para la sección portal */
#portal-section {
    background: linear-gradient(135deg, rgba(10, 44, 66, 0.5) 0%, rgba(18, 62, 90, 0.5) 100%), url('../img/fondo02.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#portal-section .section-title,
#portal-section p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Para móviles, desactivar el efecto parallax por rendimiento */
@media (max-width: 768px) {
    #portal-section {
        background-attachment: scroll;
    }
}








    /* ── NEWS CAROUSEL ──────────────────────────── */
    #news-section {
      padding: 4rem 0;
      background: var(--white)
    }

    .section-eyebrow {
      font-size: .72rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--sky);
      margin-bottom: .4rem;
    }

    .section-title {
      font-size: clamp(1.3rem, 3vw, 1.8rem);
      font-weight: 700;
      color: var(--navy);
      margin-bottom: .3rem
    }

    .section-sub {
      font-size: .88rem;
      color: var(--muted);
      margin-bottom: 2rem
    }

    .news-card {
      background: #fff;
      border-radius: var(--radius);
      border: 1px solid #e0eaf3;
      overflow: hidden;
      transition: transform var(--trans), box-shadow var(--trans);
      height: 100%;
    }

    .news-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow)
    }

    .news-img {
      height: 160px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.5rem;
    }

    .news-body {
      padding: 1.1rem
    }

    .news-tag {
      font-size: .68rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--sky);
      margin-bottom: .4rem;
    }

    .news-title {
      font-size: .92rem;
      font-weight: 600;
      color: var(--navy);
      line-height: 1.4;
      margin-bottom: .4rem
    }

    .news-desc {
      font-size: .8rem;
      color: var(--muted);
      line-height: 1.6
    }

    .news-date {
      font-size: .72rem;
      color: #b0bec9;
      margin-top: .6rem;
      display: flex;
      align-items: center;
      gap: .3rem
    }

    .news-date svg {
      width: 12px;
      height: 12px;
      stroke: currentColor
    }

    .carousel-btn {
      background: #fff;
      border: 1.5px solid #dce5ef;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--navy);
      transition: all var(--trans);
      flex-shrink: 0;
    }

    .carousel-btn:hover {
      background: var(--sky);
      border-color: var(--sky);
      color: #fff
    }

    .carousel-btn svg {
      width: 16px;
      height: 16px
    }

    #news-track {
      display: flex;
      gap: 1.25rem;
      overflow: hidden;
      transition: transform .5s cubic-bezier(.22, .68, 0, 1.2);
    }

    .news-slide {
      min-width: calc(33.333% - .84rem);
      flex-shrink: 0
    }

    @media(max-width:991px) {
      .news-slide {
        min-width: calc(50% - .63rem)
      }
    }

    @media(max-width:600px) {
      .news-slide {
        min-width: 100%
      }
    }

    /* ── FOOTER ─────────────────────────────────── */
    footer {
      background: var(--navy);
      padding: 2rem 0;
      margin-top: 0
    }

    footer p {
      color: rgba(255, 255, 255, .45);
      font-size: .78rem;
      text-align: center;
      margin: 0
    }

    footer a {
      color: var(--sky);
      text-decoration: none
    }

    /* ── LEGEND ─────────────────────────────────── */
    .map-legend {
      background: #fff;
      border-radius: 10px;
      padding: .85rem 1rem;
      box-shadow: var(--shadow);
      font-size: .77rem;
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: .4rem;
      color: var(--navy);
      font-weight: 500
    }

    .legend-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex-shrink: 0
    }

    /* ── UTILS ──────────────────────────────────── */
    .leaflet-popup-content-wrapper {
      border-radius: 8px;
      font-family: 'Poppins', sans-serif;
      padding: 0
    }

    .leaflet-popup-content {
      margin: 0;
      padding: 0
    }

    .popup-inner {
      padding: .8rem 1rem;
      min-width: 160px
    }

    .popup-inner strong {
      display: block;
      font-size: .85rem;
      color: var(--navy);
      margin-bottom: .15rem
    }

    .popup-inner small {
      font-size: .72rem;
      color: var(--muted)
    }

    .fade-in {
      animation: fadeInUp .5s ease both
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(16px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @media(max-width:767px) {
      #map {
        height: 380px
      }

      #side-panel {
        height: auto;
        max-height: 400px;
        margin-top: 1rem;
        display: none
      }

      #side-panel.visible {
        display: block
      }
    }

    .leaflet-container {
      font-family: 'Poppins', sans-serif
    }

/* Forzar el carrusel */
#news-track {
    display: flex !important;
    gap: 20px !important;
    transition: transform 0.5s ease !important;
}

.news-slide {
    flex-shrink: 0 !important;
    width: calc(33.333% - 13.34px) !important;
}

@media (max-width: 991px) {
    .news-slide {
        width: calc(50% - 10px) !important;
    }
}

@media (max-width: 600px) {
    .news-slide {
        width: 100% !important;
    }
}

.news-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0eaf3;
    overflow: hidden;
    height: 100%;
}

.news-img {
    height: 180px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 1rem;
}

.news-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #2FB3E3;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #13304D;
    margin-bottom: 0.5rem;
}

.news-desc {
    font-size: 0.8rem;
    color: #7A8FA6;
    line-height: 1.5;
}

.news-date {
    font-size: 0.7rem;
    color: #b0bec9;
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Contenedor del carrusel */
.news-carousel-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
}

/*---------------- Boton mapa*/
.btn-home-map {
    width: 34px !important;
    height: 34px !important;
    background: white !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #444;
    border-radius: 4px;
}
.btn-home-map:hover {
    background: #f4f4f4 !important;
    color: #13304D;
}

/*-------------------- noticias ------------------*/
.news-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 14px;
    background-color: #0ea5e9;
    color: #fff;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.news-link-btn:hover {
    background-color: #0284c7;
    color: #fff;
}