* {
    box-sizing: border-box;
}

.hotspotsInteractivo {
    --colorMarca1: #00979c;
    --colorMarca2: #50ca00;
    --colorMarca3: #f3f3f3;
    --colorMarca4: #00c48b;
    --colorMarca5: #2a5859;
    --colorTexto: #2d3738;

    width: 100%;
    padding: 1em;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
}

.lg-container {
    position: relative;
}

.lg-image {
    display: block;
    height: 100%;
    width: 800px;
    max-width: 100%;
}

.lg-hotspot {
    position: absolute;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 8%;
}


@media (max-width: 576px) {
    .lg-hotspot {
        width: 10%;
    }
}

.lg-hotspot--selected {
    z-index: 2;
}

.lg-hotspot--selected .lg-hotspot__label {
    display: flex;
}

.lg-hotspot__close {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--colorMarca4);
    /* Usando --colorMarca2 para el fondo */
    color: white;
    /* Usando --colorMarca3 para el texto */
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.3s;
}

.lg-hotspot__close:hover {
    transform: scale(1.05);
}



/* ACTIVAR PARA ICONOS ANIMADOS */

.lg-hotspot__button img {
    width: 100%;
    z-index: 1;
    cursor: pointer;
    transform: scale(1);
    transition: transform .3s;
}

.lg-hotspot:hover .lg-hotspot__button img,
.lg-hotspot:active .lg-hotspot__button img {
    transform: scale(.9);
}

.lg-hotspot__label {
    position: absolute;
    width: 250px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    line-height: 1.2;
    z-index: -1;
    border-radius: 5px;
    user-select: none;
    display: none;
    flex-flow: column;
    transition: all 0.1s linear;
}

@media (max-width: 576px) {
    .lg-hotspot__label {
        width: 200px;
    }
}

.lg-hotspot__label.left {
    right: calc(100% - 50px);
    transform: translateX(-10px);
}

.lg-hotspot__label.right {
    left: calc(100% - 50px);
    transform: translateX(10px);
}

.lg-hotspot__label.top {
    bottom: 100%;
    transform: translateY(-10px);
}

.lg-hotspot__label.bottom {
    top: 100%;
    transform: translateY(10px);
}

.lg-hotspot__label .lg-hotspot__title {
    margin: 0;
    padding: 10px 20px 10px 10px;
    background-color: var(--colorMarca5);
    font-size: 24px;
    font-weight: normal;
    color: white;
    border-radius: 5px 5px 0 0;
    border-bottom: 3px solid var(--colorMarca4);
    text-align: center;
    font-weight: bold;
}

.lg-hotspot__label p {
    margin: 0;
    padding: 15px;
    color: var(--colorTexto);
}

.lg-item1 {
    top: 3%;
    left: 14%;
}

.lg-item2 {
    top: 14%;
    left: 33%;
}

.lg-item3 {
    top: 21%;
    left: 50%;
}

.lg-item4 {
    top: 36%;
    left: 67%;
}

.lg-item5 {
    top: 56%;
    left: 86%;
}


@keyframes button-pulse {
    0% {
        transform: scale(1, 1);
        opacity: 1;
    }

    40% {
        transform: scale(1.15, 1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1, 1);
        opacity: 1;
    }
}


/* MODAL */
/* Estilos del modal actualizado a modalTooltip */

/* Modal con fondo oscuro y transición suave */
.modalTooltip {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo más oscuro y elegante */
    backdrop-filter: blur(5px); /* Efecto de desenfoque en el fondo */
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out; /* Transición suave en la visibilidad */
}

/* Estilo moderno del contenedor interno del modal */
.modalTooltip-inner {
    background: linear-gradient(145deg, #ffffff, #f0f0f0); /* Fondo suave con gradiente */
    margin: 0 auto;
    padding: 30px;
    border-radius: 16px; /* Esquinas más redondeadas */
    width: 70%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); /* Sombra más profunda */
    animation: fadeIn 0.4s ease-out;
    transition: transform 0.3s ease-out; /* Transición suave */
}

/* Animación de entrada del modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95); /* Efecto de zoom */
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Botón de cierre redondo y moderno */
.modalTooltip-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%; /* Botón redondo */
    background-color: #ff5a5a; /* Fondo rojo */
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra ligera */
}

.modalTooltip-close:hover {
    background-color: #e04141; /* Color más oscuro en hover */
}

/* Ajustes para la experiencia responsiva */
@media (max-width: 768px) {
    .modalTooltip-inner {
        width: 90%; /* Ajuste del ancho en pantallas pequeñas */
        padding: 20px;
    }

    .modalTooltip-close {
        top: 10px;
        right: 10px;
    }
}
