/* Esto asegura que los elementos con ID sí reaccionen */
.hc-plano-section svg [id="individual"], 
.hc-plano-section svg [id="operational_excellence"], 
.hc-plano-section svg [id="sectorized_assets"]  {
    pointer-events: all !important;
    cursor: pointer !important;
}

/* Forzar que el círculo interno y externo sean blancos al estar activos */
.hc-plano-section svg  .is-active circle:first-of-type {
    fill: #FFFFFF !important;
    fill-opacity: 1 !important;
}

.hc-plano-section {
    min-height: 460px;
}

.hc-plano-section svg  .is-active circle:last-of-type{
     stroke: #FFFFFF !important;
}

/* 2. Control de los Vectores (individual_vector, etc.) */
/* Por defecto ocultamos los vectores */
#individual_vector, 
#operational_excellence_vector, 
#sectorized_assets_vector,
#gardens_vector,
#common_vector,
#accessibility_vector {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Para que no estorben al hacer clic */
}

/* 3. Clase que activa el vector (la pondrá el JS) */
.hc-plano-section .vector-active {
    opacity: 1 !important;
}

.hc-plano-section svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hc-plano-section {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#plano {
    pointer-events: none !important;
}

.hc-plano-section svg [id="comunes"] {
    pointer-events: all !important;
    cursor: pointer !important;
}

.hc-plano-section .hc-map-card {
    right: 0;
    border-radius: 2px;
    position: inherit;
    transform: translateY(0);
}

.hc-plano-section .hc-map-card__content-body {
    display: flex;
}

.hc-plano-section .hc-map-card-texts {
    flex: 1.2;
    padding: var(--padding-int);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 415px;
}

.hc-plano-section .plano-gallery-container {
    flex: 0.8;
}

.hc-plano-section .plano-gallery-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}

.hc-plano-section .plano-gallery-container .img-overlay-wrapper:hover {
    cursor: zoom-in;
}

.hc-plano-section .hc-map-card-texts .text-body {
    margin-top: 0;
    font-size: var(--size-14);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.161px;
}

.hc-plano-section .hc-map-card-texts .text-body p {
    font-size: var(--size-14);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.161px;
}

.hc-plano-section .hc-map-card__content {
    padding: 0;
}

.hc-plano-section .hc-map-card__footer {
    margin-top: auto;
    margin-bottom: 0;
    display: flex;
    gap: var(--padding-int);
    padding-top: var(--padding-int);
}

.hc-plano-section h3.title-card::after {
    display: block;
    margin-top: 10px;
    content: "";
    width: 120px;
    max-width: 100%;
    height: 1px;
    background-color: var(--primary);
    margin-bottom: var(--padding-int);
    
}

.hc-plano-section .splide__pagination__page,
#plano-lightbox .splide__pagination__page {
    background-color: var(--blanco);
    opacity: 1;
}

.hc-plano-section .splide__pagination__page.is-active,
#plano-lightbox .splide__pagination__page.is-active {
    background-color: var(--primary);
    opacity: 1;
}

.hc-plano-section .splide__arrows svg,
#plano-lightbox .splide__arrows svg {
    display: none;
}

.hc-plano-section .splide__arrow,
#plano-lightbox .splide__arrow {
    opacity: 1;
    background-color: var(--blanco);
}

.hc-plano-section .splide__arrow::before,
#plano-lightbox .splide__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/flecha_azul_btn.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 15px;
    height: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hc-plano-section .splide__arrow--prev::before, 
#plano-lightbox .splide__arrow--prev::before{
    transform: translate(-50%, -50%) rotate(180deg);
}

.hc-plano-section .splide, .hc-plano-section .splide__track--draggable {
    height: 100%;
}


/* Asegura que el lightbox esté por encima de todo */
.hc-lightbox {
    display: none; 
    position: fixed; 
    z-index: 10000; /* Superior al header y otros elementos */
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    background: rgba(255, 255, 255, 0.95);
    align-items: center; 
    justify-content: center;
    z-index: 9999999;
}

.hc-lightbox.is-active { display: flex; }

.hc-lightbox__close {
    position: absolute;
    top: var(--padding-int);
    right: var(--padding-int);
    border: none;
    width: 27px;
    height: 27px;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    background-color: transparent;
    background-image: url(../images/close_square_white.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Contenedor relativo para que el :after se posicione respecto a él */
.img-overlay-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    
}


#splide-lightbox img { 
    max-height: 85vh; 
    width: auto; 
    margin: 0 auto; 
    display: block; 
}

.hc-plano-section .plano-gallery-container .img-overlay-wrapper:after,
.hc-lightbox .plano-gallery-container .img-overlay-wrapper:after {
    content: " ";
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(214.28deg, rgba(81, 142, 170, 0) 18.36%, rgba(81, 142, 170, 0.6) 92%); 
    top: 0;
    right: 0;
}

#splide-lightbox-list .splide__pagination {
    display: none !important;
}

#developmentcapabilities {
    margin-top: var(--margin-section);
}

  .hc-plano-section .hc-map-card__close {
        display: none;
}

@media (max-width: 980px) {
    .hc-plano-section .hc-map-card__content-body {
        flex-direction: column-reverse;
    }

    .hc-plano-section .plano-gallery-container {
        max-height: 250px;
    }

    .hc-plano-section .plano-gallery-container img {
        max-height: 250px;
    }

    .hc-plano-section .hc-map-card, .hc-plano-section .hc-map-card-texts, .hc-plano-section {
        min-height: 0;
    }

    .hc-plano-section .hc-map-card__close {
        display: none;
    }
}