/* Estilo base por defecto (opcional) */
#panorama {
    width: 100%;
    height: auto;
    max-width: 800px;
    aspect-ratio: 16 / 10;
}

/* Estilos cuando se detecta dispositivo móvil */
.es-movil #panorama {
    width: 97vw;
    height: 97vh;
    max-width: none;
    aspect-ratio: unset;
}

/* Estilos cuando se detecta escritorio */
.es-escritorio #panorama {
    width: 100%;
    height: auto;
    max-width: 800px;
    aspect-ratio: 16 / 10;
}

    
.custom-hotspot-button {
    height: 50px;
    width: 50px;
    background-size: cover;
    background-position: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(108, 29, 69, 0.90);
    transition: transform 0.3s ease-in-out;
}

.custom-hotspot-button.active {
    transform: scale(5);
    /* Aumenta el tamaño */
}






div.custom-tooltip span {
    visibility: hidden;
    position: absolute;
    border-radius: 3px;
    background-color: #fff;
    color: #000;
    text-align: center;
    max-width: 200px;
    padding: 5px 10px;
    margin-left: -220px;
    cursor: default;

}

div.custom-tooltip:hover span {
    visibility: visible;
}

div.custom-tooltip:hover span:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    bottom: -20px;
    left: -10px;
    margin: 0 50%;
}

.boton-fijo {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    /* Asegúrate de que esté por encima del visor */
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-size: 16px;
}

#chatBotButton {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 70px;
    width: 70px;
    background-image: url('/pannellum/examples/Jasper preguntas.png');
    /* SIIS\360 prject\Panellum\pannellum\examples\Jasper preguntas.png*/
    background-size: cover;
    background-position: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    z-index: 1002;
    cursor: pointer;
    opacity: 1;
}

/* CÍRCULO DE NOTIFICACIÓN */
#chatNotification {
    position: absolute;
    top: 4px;
    right: 4px;
    height: 12px;
    width: 12px;
    background-color: red;
    border-radius: 50%;
    z-index: 1003;
    display: block;
}

/* CONTENEDOR DEL CHAT - parte superior derecha */
#chatContainer {
    display: none;
    position: absolute;
    top: 20px;
    right: 100px;
    width: 300px;
    height: 300px;
    max-height: 400px;
    background-color: rgba(255, 255, 255, 0.60);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* CABECERA DEL CHAT */
#chatHeader {
    background-color: rgba(74, 74, 74, 0.65);
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

/* ÁREA DE MENSAJES */
#chatMessages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

/* INPUT Y BOTÓN ENVIAR */
#chatInputContainer {
    display: flex;
    padding: 10px;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.65);
}

#chatInput {
    flex-grow: 1;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#chatSend {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    background-color: #4a4a4a;
    color: white;
    border: none;
    border-radius: 5px;
}

.mensaje-usuario {
    background-color: #d4eaff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #000;
    font-weight: 500;
    line-height: 1.4;
    align-self: flex-start;
    max-width: 75%;
    border-left: 4px solid #007acc;
}

.mensaje-bot {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #222;
    font-weight: 500;
    line-height: 1.4;
    align-self: flex-end;
    max-width: 75%;
    border-left: 4px solid #4a4a4a;
}
