* {
    box-sizing: border-box;
}

.hotspotsInteractivo {
    --colorMarca1: #008044;
    --colorMarca2: #EDBE16;
    --colorMarca3: #008044;
    --colorTexto: #000;
    --colorBlanco: #fff;

    width: 100%;
    max-width: 1400px;
    padding: 1em;
    margin-left: auto;
    margin-right: auto;
}

.hotspotsInteractivo p {
    line-height: 1.2;
    font-size: 18px;
}

.hotspotsInteractivo .lg-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.hotspotsInteractivo .lg-scene {
    position: relative;
}

.hotspotsInteractivo .lg-texts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: start;
}

.hotspotsInteractivo .lg-text {
    display: none;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hotspotsInteractivo .lg-text.active {
    display: block;
}

.hotspotsInteractivo .lg-hotspot__close {
    float: right;
    background-color: var(--colorMarca3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    margin-right: -10px;
    margin-top: -10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

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

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

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

.hotspotsInteractivo .lg-hotspot__button {
    height: 40px;
    width: 40px;
    padding: 0px;
    border-radius: 100%;
    border: 1px solid var(--colorMarca1);
    background-color: var(--colorBlanco);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: button-pulse 1s ease-in-out infinite;
    cursor: pointer;
}

.hotspotsInteractivo {
    counter-reset: hotspot;
}

.hotspotsInteractivo .lg-hotspot__button:after {
    content: counter(hotspot);
    counter-increment: hotspot;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--colorBlanco);
    height: 30px;
    width: 30px;
    border-radius: 100%;
    background-color: var(--colorMarca1);
    transition: border-color 1s linear;
}

.hotspotsInteractivo .lg-hotspot:hover .lg-hotspot__button:after,
.hotspotsInteractivo .lg-hotspot:active .lg-hotspot__button:after {
    background-color: var(--colorMarca2);
}

.hotspotsInteractivo .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;
    user-select: none;
    display: none;
    flex-flow: column;
    transition: all 0.1s linear;
    left: calc(100% + 40px);
}

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

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

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

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

.hotspots-item:nth-child(1) .lg-hotspot__title {
    --colorTitulo: #936C4C;
}

.hotspots-item:nth-child(2) .lg-hotspot__title {
    --colorTitulo: #926846;
}

.hotspots-item:nth-child(3) .lg-hotspot__title {
    --colorTitulo: #7D756C;
}

.hotspots-item:nth-child(4) .lg-hotspot__title {
    --colorTitulo: #C2965C;
}

.hotspots-item:nth-child(5) .lg-hotspot__title {
    --colorTitulo: #855838;
}

.hotspotsInteractivo .lg-hotspot__title {
    display: block;
    font-size: 20px;
    font-weight: normal;
    font-weight: bold;
    margin: 0 0 10px;
    color: var(--colorBlanco);
    background-color: var(--colorTitulo);
    padding-left: 20px;
    padding-right: 20px;
}

.hotspotsInteractivo .imgBorde {
    border: 4px solid;
    border-image-source: linear-gradient(to right, var(--colorMarca1), var(--colorMarca2), var(--colorMarca3));
    border-image-slice: 4;
    border-image-width: 3px;
    padding: 5px;
}

.hotspotsInteractivo .lg-hotspot__info {
    padding: 0 20px 10px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 4px solid var(--colorMarca3);
    align-items: center;
}

@media (max-width: 576px) {
    .hotspotsInteractivo .lg-hotspot__info {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 576px) {
    .hotspotsInteractivo .imagen {
        display: block;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    .lg-hotspot__info img.sz15 {
        width: 200px !important;
    }
}

.hotspotsInteractivo img.sz15 {
    width: 150px;
    min-width: 60px;
}

.hotspotsInteractivo img.sz2 {
    width: 200px;
}

.hotspotsInteractivo img.sz3 {
    width: 300px;
}

.hotspotsInteractivo img.sz4 {
    width: 400px;
}

.hotspotsInteractivo img.sz5 {
    width: 500px;
}

.hotspotsInteractivo img.sz6 {
    width: 600px;
}

.hotspotsInteractivo .lg-item1 {
    top: 38%;
    left: 100%;
}

.hotspotsInteractivo .lg-item2 {
    top: 48%;
    left: 100%;
}

.hotspotsInteractivo .lg-item3 {
    top: 60%;
    left: 100%;
}

.hotspotsInteractivo .lg-item4 {
    top: 70%;
    left: 100%;
}

.hotspotsInteractivo .lg-item5 {
    top: 84%;
    left: 100%;
}

@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;
    }
}

/* Responsive: Versión móvil */
@media (max-width: 768px) {
    .hotspotsInteractivo .lg-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hotspotsInteractivo .lg-scene {
        order: 1;
    }

    .hotspotsInteractivo .lg-texts {
        order: 2;
    }

    .hotspotsInteractivo .lg-image {
        width: 100%;
        height: auto;
    }

    .hotspotsInteractivo .lg-hotspot {
        width: 10%;
    }
}