/* Preloader que cubre toda la pantalla */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #22262e; /* o cualquier color de fondo */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilo del loader (spinner circular) */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Animación */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



#logoinmerso{
    position: fixed;
    bottom: 10px;
    left: calc(50% - 70px);
    z-index: 100000;
}
#sceneList{
    width: 220px;
    padding-top: 0;
    z-index: 10;
    height: 100%;
}
#sceneList .scenes{
    background-color: rgba(255,255,255,0.8);
    border-radius: 0px;
    margin-left: 0px;
    margin-top: 0px;
    overflow: auto;
    width: 220px;
    padding-top:0px;
    padding-bottom: 0px;
    height: 100%;
}

#sceneList .scene .text{
    font-size: 12px;
    color:#000;
    font-family: 'metropolisregular';
    width: 200px;
}

#sceneList .scene{
    width: 200px;
    margin-left: 10px;
    overflow: hidden;
    border-radius: 5px;
    background-repeat: no-repeat; 
    padding-left:10px; 
    background-size: 15px;
    background-position: center left;
}
#sceneList .scene.current{
    background-color:rgba(140,208,35,1);
    font-weight: bold;
}

.no-touch #sceneList .scene:hover {
  background-color:rgba(140,208,35,0.5);
}
#titleBar{
    right: 0;
    text-align: right;
}
#titleBar .sceneName{
    border-radius: 100px;
    background-color: rgba(0,0,0,0);
    font-family: 'metropolisbold';
    font-size: 20px;
    width: calc(100% - 20px);
    text-shadow: 1px 1px 5px #000;
    margin: auto;
    color:#fff;
}
#autorotateToggle{
    display: none;
    border-radius:50%;
    background-color: rgba(0,0,0,0.3);
}
#sceneListToggle{
    border-radius:50%;
    background-color: rgba(0,0,0,0.3);
}
#videoinfo{
    position: fixed;
   
    z-index: 100;
    right: 0px;
    top: calc(50% - 222px);
    transition:right ease 0.5s;
    -webkit-transition:right ease 0.5s;
    -moz-transition:right ease 0.5s;
    -o-transition:right ease 0.5s;
    
}
#videoinfo .marco{
    width: 250px;
    height: 444px;
     border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
}
#cuadroinfo{
    position: fixed;
    width: 250px;
   
    z-index: 3;
    right: 0px;
    top:calc(50% - 160px);
    
    color:#000;
    transition:right ease 0.5s;
    -webkit-transition:right ease 0.5s;
    -moz-transition:right ease 0.5s;
    -o-transition:right ease 0.5s;
    
}
#cuadroinfo.info-hide,#videoinfo.info-hide{
    right: -280px;
}
#cuadroinfo .cerrar, #videoinfo .cerrar{
    position: absolute;
    width: 25px;
    height: 30px;
    top:calc( 50% - 15px);
    background-color: rgba(228,228,228,1);
    background-size: 15px auto;
    background-image: url(images/replegar.png);
    background-repeat: no-repeat;
    background-position: 8px center;
    left:-25px;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    box-shadow: -3px 1px 2px rgba(0,0,0,0.2);
    cursor: pointer;
}
#cuadroinfo .marco{
    width: 250px;
    height: 319px;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
     border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    overflow: hidden;
}
#cuadroinfo .mapa{
    display: none; /* temporal: mostrar cuando existan los planos en maps/ */
    background-color: rgba(228,228,228,0.8);
    opacity: 1;
}
#cuadroinfo:not(.home) .info .detalle{
    height: 319px;
}
#cuadroinfo .mapa img{
    width: 100%;
    height: auto;
    display: block;
    
}
#cuadroinfo .detalle{
    background-color: rgba(255,255,255,0.8);
    height: 160px;
}
#cuadroinfo .area{
    padding: 15px;
}
#cuadroinfo .detalle .ubicacion{
    font-size: 11px;
    font-family: 'metropolisregular';
    font-weight: bold;
    background-image: url(images/ubicacion.png);
    background-repeat: no-repeat;
    height: 13px;
    background-size: auto 13px;
    padding-left: 15px;
}
#cuadroinfo .detalle .titulo{
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'metropolisbold';
    background-position: top right;
    background-repeat: no-repeat;
    background-size: auto 17px;
    line-height: 17px;
    padding-right: 20px;
    
}
#cuadroinfo .detalle .txt{
    font-size: 10px;
    font-family: 'metropolisregular';
    line-height: 15px;
}

#cuadroinfo .info{

}
#cuadroinfo .home{
    display: none;
}
#cuadroinfo.home .info{
    display: none;
}
#cuadroinfo.home .home{
    display: block;
}
#cuadroinfo.home .detalle{
    height: 319px;
}
#fullscreenToggle{
    display: block;
    top:auto;
    bottom:0;
    background: none;
}
#infoToggle{
    position: absolute;
    top:calc(50% - 20px);
    right: 0px;
    width: 40px;
    height: 40px;
    padding: 5px;
    
}

#infoToggle .icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
}
#infoToggle .icon.on {
    display: none;
}
#infoToggle .icon.off {
    display: block;
}





.link-hotspot-icon{
    animation: crecerRegresar 1s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes crecerRegresar {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.2);
      }
    }

    .info-hotspot .info-hotspot-header{
        background: none;
    }

    .info-hotspot .info-hotspot-title{
        font-family: 'metropolisregular';
        text-shadow: 2px 2px 3px rgba(0,0,0,1);
        font-size: 12px;
        padding-left: 10px;
    }
  

    .desktop .info-hotspot.visible .info-hotspot-text{
        display: none;
    }

    .desktop .info-hotspot.visible .info-hotspot-title-wrapper, .desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper{
        background-color: rgba(0,0,0,0.7);
        border-bottom-left-radius: 20px;
        border-top-left-radius: 20px;
    }

    .info-hotspot .info-hotspot-close-icon{
        width:20px;
        height: 20px;
    }

.info-hotspot-close-wrapper{
border-bottom-right-radius: 20px;
        border-top-right-radius: 20px !important;
    }
    .info-hotspot .info-hotspot-close-wrapper{
        background-color: rgba(0,0,0,0.7);
  
    }

    .info-hotspot-close-icon{
        margin-top:10px !important;   
    }
#sceneListToggle{
    z-index: 10;
    top:10px;
    left: 10px;
}

.mobile #sceneList{
    padding-top: 0;
}
.mobile #titleBar{
    right:0;
}