* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevenir el rebote y asegurar fondo negro en caso de que tarde en cargar */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; 
    background-color: #000000;
}

/* Ocultar la caja de carga y el círculo giratorio en las transiciones */
.pnlm-load-box,
.pnlm-spinner {
    display: none !important;
    opacity: 0 !important;
}

/* ============================================================
   MODO MARCA BLANCA: OCULTAR INTERFAZ NATIVA DE PANNELLUM
   ============================================================ */

/* 1. Ocultar controles de Zoom y Pantalla Completa (Arriba Izquierda) */
.pnlm-controls-container {
    display: none !important;
}

/* 2. Ocultar brújula, logo y botones de información (Abajo Derecha) */
.pnlm-compass,
.pnlm-about-msg,
.pnlm-panorama-info {
    display: none !important;
}

#panel-info {
    position: absolute;
    bottom: 20px;
    /* Cambiamos a 20px para que tenga la misma margen de abajo que la de arriba */
    right: 20px;
    /* 1. CLAVE: Misma margen derecha que el botón superior */
    width: 280px;
    width: max-content;
    /* 2. CLAVE: Reducimos el ancho para que coincida con la caja de arriba */
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Reduje un poquitito el espacio interior para que no se vea estirado */
}

/* Contenedor principal: alinea todos los grupos en una fila */
.contenedor-caracteristicas {
    /* O el nombre de la clase que le diste a la caja de los íconos */
    display: flex;
    flex-direction: row;
    /* Los pone uno al lado del otro */
    flex-wrap: wrap;
    /* AQUÍ ESTÁ LA MAGIA: Si no caben, los tira hacia abajo */
    gap: 10px;
    /* El espacio entre un ícono y otro */
}

/* Contenedor individual: alinea el ícono con su número respectivo */
.item-caracteristica {
    display: flex;
    align-items: center;
    gap: 6px;
    /* ESPACIO ENTRE EL ÍCONO Y EL NÚMERO */
}

/* Opcional: Hacer los íconos un poco más grandes o de otro color */
.item-caracteristica i {
    font-size: 18px;
    /* color: #a1b5c1; Si quisieras que los iconos tengan un color distinto al texto */
}

.logo-nadir-responsive {
    /* Responsive: Ocupará el 25% de la pantalla (móvil o PC) */
    width: 10vmin;

    /* Límites para que no se vea ni microscópico ni gigante */
    max-width: 150px;
    min-width: 80px;
    height: auto;

    /* ESTO ES LO QUE EVITA QUE SE MUEVA: Centrado perfecto */
    transform: translate(-50%, -50%);

    /* Limpiamos márgenes anteriores por si acaso */
    margin: 0 !important;

    pointer-events: none;
    /* Para que no estorbe al arrastrar */
}

/* ============================================================
   ESTILO DE PUNTO BLANCO CON ANIMACIÓN (ESTILO INMOBILIARIO)
   ============================================================ */

/* 1. Quitamos la flecha negra que trae Pannellum por defecto */
.pnlm-hotspot.pnlm-scene {
    background: none !important;
    border: none !important;
    width: 40px;
    /* Área de clic */
    height: 40px;
}

/* 2. El punto blanco central sólido */
.pnlm-hotspot.pnlm-scene::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    /* Tamaño del punto */
    height: 20px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    /* Sombra para que se vea en fondos claros */
    z-index: 2;
}

/* 3. El aro animado (el pulso) */
.pnlm-hotspot.pnlm-scene::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    /* Aplicamos la animación infinita */
    animation: pulsoInfinito 2s infinite;
}

/* 4. Definición del movimiento del pulso */
@keyframes pulsoInfinito {
    0% {
        width: 15px;
        height: 15px;
        opacity: 1;
    }

    100% {
        width: 50px;
        /* Hasta dónde se expande el círculo */
        height: 50px;
        opacity: 0;
        /* Se desvanece al final */
    }
}




/* --- MODO CREADOR --- */
#panel-creador {
    display: none;
    position: absolute;
    top: 200px;
    /* Lo ponemos un poco abajo para no tapar los controles de Pannellum */
    left: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    /* Fondo negro semitransparente */
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    /* Fuente de programador */
    z-index: 100;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#panel-creador h4 {
    margin-bottom: 12px;
    font-size: 14px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

#panel-creador p {
    margin: 5px 0;
    color: #4CAF50;
    /* Color verde para los números */
    font-size: 14px;
    font-weight: bold;
}

#btn-capturar {
    margin-top: 15px;
    width: 100%;
    background-color: #4CAF50;
    /* Botón verde */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#btn-capturar:hover {
    background-color: #45a049;
}


#contenedor-tour {
    position: relative;
    width: 100vw;
    /* Usamos altura dinámica (dvh) para esquivar la barra de Safari, 
       con fallbacks para navegadores antiguos */
    height: 100vh; 
    height: -webkit-fill-available;
    height: 100dvh; 
}

#panorama {
    width: 100%;
    height: 100%;
}

/* --- ESTILOS DEL MINIMAPA --- */
/* --- ESTILOS DEL MINIMAPA --- */
#minimapa {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 250px;
    height: 250px;

    /* 1. EFECTO GLASSMORPHISM (CRISTAL) */
    /* Quitamos el #ffffff y ponemos un blanco casi transparente */
    background-color: rgba(255, 255, 255, 0.15);
    /* Aplicamos el desenfoque al fondo (magia pura) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Necesario para que funcione en iPhone/Mac */

    /* 2. TU PLANO (¡OJO AQUÍ!) */
    /* Cambié la extensión a .png asumiendo que le quitarás el fondo blanco */
    background-image: url('assets/planos.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    /* 3. BORDES Y SOMBRAS PREMIUM */
    /* Cambiamos tu borde sólido por uno más fino y semi-transparente para dar brillo */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    /* Tu sombra original está perfecta */

    z-index: 10;
    overflow: hidden;
}

#punto-ubicacion {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #0088ff;
    border: 2px solid white;
    border-radius: 50%;
    /* ESTO ES INTOCABLE: Asegura que el punto se centre en la coordenada X/Y */
    transform: translate(-50%, -50%);
    transition: top 0.8s ease-in-out, left 0.8s ease-in-out;
    z-index: 20;
}

#radar-cono {
    position: absolute;
    width: 120px;
    height: 120px;
    /* Centramos este cuadrado de 120x120 justo sobre el punto de 16x16 */
    top: -52px;
    left: -52px;
    border-radius: 50%;
    /* Creamos un cono de 60 grados apuntando hacia "arriba" por defecto */
    background: conic-gradient(from -30deg at 50% 50%,
            rgba(0, 136, 255, 0.4) 0deg,
            rgba(0, 136, 255, 0.4) 60deg,
            transparent 60deg);
    transform-origin: 50% 50%;
    pointer-events: none;
}

/* ============================================================
   NUEVOS ESTILOS: TÍTULO DEL MINIMAPA E INTERFAZ PREMIUM
   ============================================================ */

/* 1. Ocultamos el título por defecto de Pannellum */
.pnlm-title-box {
    display: none !important;
}

/* 2. Estilos para el nuevo título dentro del cristal del minimapa */
#titulo-minimapa img {
    position: absolute;
    bottom: 12px;
    width: 50%;
    /* O el porcentaje que mejor se vea */

    /* LA MAGIA DEL CENTRADO ABSOLUTO */
    left: 50%;
    transform: translateX(-50%);
}

/* --- CLASE MAESTRA: EFECTO CRISTAL --- */
.panel-cristal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: white;
    font-family: Arial, sans-serif;
    z-index: 100;
    /* Asegura que esté por encima del tour */
}

/* 1. ESTILOS BARRA SUPERIOR IZQUIERDA */
#nav-superior {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    padding: 12px 24px;
}

.nav-titulo {
    font-weight: bold;
    margin-right: 30px;
    font-size: 14px;
}

.nav-enlaces a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 13px;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-enlaces a.activo,
.nav-enlaces a:hover {
    opacity: 1;
    border-bottom: 2px solid white;
    padding-bottom: 4px;
}

/* 2. ESTILOS BOTONES DERECHOS */
#acciones-superior {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.caja-accion {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accion-titulo {
    font-size: 10px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-blanco {
    background: #25D366;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp {
    color: #000000;
}

/* 3. ESTILOS PANEL DE INFORMACIÓN DERECHO */
#panel-info {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 280px;
    padding: 20px;
}

#panel-info h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
}

#panel-info p,
#panel-info ul {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
}

#panel-info ul {
    padding-left: 20px;
    margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE: MODO TABLET (Pantallas medianas y iPads)
   ============================================================ */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    
    /* 1. Reducimos el tamaño del minimapa */
    #minimapa {
        width: 200px;
        height: 200px;
        bottom: 20px;
        left: 20px;
    }

    /* 2. Hacemos la tarjeta de información un poco más compacta */
    #panel-info {
       display: none;
    }

}

@media screen and (max-width: 768px) {

    #minimapa {
        display: none;
    }

    #panel-info {
        display: none;
    }

    #panel-creador {
        display: none;
    }

    /* 1. Ocultamos el texto superior "CONTACTAR ASESOR" */
    .accion-titulo {
        display: none !important;
    }

    /* 2. Ajustamos la caja que contiene el botón */
    .caja-accion {
        padding: 5px !important;
        background: transparent !important;
        /* Opcional: quita el fondo de la caja */
        border: none !important;
    }

    /* 3. Transformamos el botón en un círculo con solo el icono */
    .btn-whatsapp {
        width: 50px;
        height: 50px;
        border-radius: 50% !important;
        /* Lo hace circular */
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0 !important;
        /* Oculta el texto "CHATEAR AHORA" */
    }

    /* 4. Aseguramos que el icono se vea grande y centrado */
    .btn-whatsapp i {
        font-size: 1.8rem !important;
        /* Aumentamos un poco el tamaño del icono */
        margin-right: 0 !important;
        /* Quitamos el margen que tenía para el texto */
    }

}