* {
    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 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    /* Limpiamos márgenes anteriores por si acaso */
    margin: 0 !important;

    pointer-events: none;

    /* Tamaño responsivo: clamp(mínimo, preferido, máximo)
       El JS puede sobrescribir con inline style; aquí definimos el cap CSS por breakpoint.
       --nadir-max-size es la variable que limita el tamaño calculado por el visor. */
    max-width: var(--nadir-max-size, 100px) !important;
    max-height: var(--nadir-max-size, 100px) !important;
}

/* Desktop: hasta 110px */
:root {
    --nadir-max-size: clamp(80px, 8vw, 110px);
}

/* Tablet: hasta 90px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    :root {
        --nadir-max-size: clamp(70px, 7vw, 90px);
    }
}

/* Móvil: hasta 70px */
@media screen and (max-width: 768px) {
    :root {
        --nadir-max-size: clamp(55px, 14vw, 70px);
    }
}


/* ============================================================
   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%;
    /* Mantenemos el centrado aquí para que no se desfase */
    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;
    /* CORRECCIÓN: 'alternate' para que no salte, y 'ease-in-out' para suavizar */
    animation: pulsoInfinito 1.5s infinite alternate ease-in-out;
}

/* 4. Definición del movimiento del pulso (OPTIMIZADO) */
@keyframes pulsoInfinito {
    0% {
        /* Usamos scale(1) en lugar de width/height fijos. 
           IMPORTANTE: Siempre hay que mantener el translate(-50%, -50%) */
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        /* scale(3.3) hace que los 15px originales se vean de 50px visualmente */
        transform: translate(-50%, -50%) scale(3.3);
        /* No lo bajamos a 0 total (0.1) para que el retorno alterno se vea más natural */
        opacity: 0.1; 
    }
}

/* --- ESTILOS DEL PANEL ADMIN --- */
.btn-admin-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-admin-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-admin-nav.activo {
    background: #0088ff;
    border-color: #0088ff;
}

.admin-hidden {
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

#panel-admin {
    position: absolute;
    top: 90px;
    left: 20px;
    width: 320px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-section h5 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-section p {
    font-size: 13px;
    font-family: monospace;
    color: #4CAF50;
    font-weight: bold;
    margin: 2px 0;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lista-escenas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

.lista-escenas::-webkit-scrollbar,
#panel-admin::-webkit-scrollbar {
    width: 4px;
}
.lista-escenas::-webkit-scrollbar-thumb,
#panel-admin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.escena-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.escena-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.escena-item.activa {
    background: rgba(0, 136, 255, 0.2);
    border-color: rgba(0, 136, 255, 0.5);
    box-shadow: inset 0 0 5px rgba(0, 136, 255, 0.2);
}

.escena-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.escena-nombre {
    font-size: 13px;
    font-weight: bold;
    color: white;
}

.escena-id {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.escena-acciones {
    display: flex;
    gap: 6px;
}

.btn-icon {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.btn-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon.eliminar:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
}

.btn-primario-sm {
    background: #0088ff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primario-sm:hover {
    background: #0077ee;
}

.btn-primario-sm:active {
    transform: scale(0.97);
}

/* Modales */
.modal-hidden {
    display: none !important;
}

#modal-escena {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 200;
    
    /* Glassmorphism styling */
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-radius: 16px;
}

#modal-escena::-webkit-scrollbar {
    width: 6px;
}

#modal-escena::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.modal-header h4 {
    font-size: 15px;
    font-weight: bold;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: bold;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0088ff;
    box-shadow: 0 0 5px rgba(0, 136, 255, 0.4);
}

.form-group input.hidden {
    display: none;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.btn-primario {
    background: #0088ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primario:hover {
    background: #0077ee;
}

.btn-secundario {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secundario:hover {
    background: rgba(255, 255, 255, 0.16);
}


#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 --- */
/* Contenedor del Minimapa (Matterport style) */
#minimapa-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 250px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    
    /* EFECTO GLASSMORPHISM (CRISTAL) */
    background-color: rgb(0, 0, 0); /* Fondo oscuro premium */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* BORDES Y SOMBRAS PREMIUM */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Área del Plano del Minimapa */
#minimapa {
    position: relative;
    width: 100%;
    height: 200px; /* Alto del plano propiamente dicho */
    background-color: #ffffff; /* Fondo claro/blanco restaurado para máxima visibilidad */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

#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 */
/* Cabecera del Minimapa (Logo / Branding) */
#titulo-minimapa {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

#titulo-minimapa img {
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}

/* --- 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-container {
        width: 200px;
        bottom: 20px;
        left: 20px;
    }
    #minimapa {
        height: 160px;
    }

    /* 2. Hacemos la tarjeta de información un poco más compacta */
    #panel-info {
       display: none;
    }

}

@media screen and (max-width: 768px) {

    #minimapa-container {
        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 */
    }

}

/* --- ESTILOS DE HOTSPOTS DINÁMICOS --- */
.lista-hotspots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar para hotspots */
.lista-hotspots::-webkit-scrollbar {
    width: 4px;
}
.lista-hotspots::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.hotspot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 10px;
    border-radius: 6px;
    cursor: default;
    transition: background 0.2s;
}

.hotspot-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hotspot-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.hotspot-nombre {
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.hotspot-coords {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
}

.btn-icon.mover:hover {
    color: #0088ff;
    background: rgba(0, 136, 255, 0.15);
}

/* Banner de colocación visual */
#banner-colocacion {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: bold;
    z-index: 150;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: #0088ff;
    transition: opacity 0.3s ease;
}

.btn-secundario-sm {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secundario-sm:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cursor de cruz en modo colocación */
.modo-colocacion .pnlm-render-container {
    cursor: crosshair !important;
}

/* Reutilizar modal para hotspot */
#modal-hotspot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 200;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   BRANDING DINÁMICO: SOPORTE PARA COLORES DEL PROYECTO
   ============================================================ */
:root {
    --primary-color: #0088ff;
    --primary-color-rgb: 0, 136, 255;
}

#punto-ubicacion {
    background-color: var(--primary-color) !important;
}

#radar-cono {
    background: conic-gradient(from -30deg at 50% 50%,
            rgba(var(--primary-color-rgb), 0.4) 0deg,
            rgba(var(--primary-color-rgb), 0.4) 60deg,
            transparent 60deg) !important;
}

.btn-primario, 
.btn-primario-sm, 
.btn-admin-nav.activo {
    background-color: var(--primary-color) !important;
}

.btn-primario:hover, 
.btn-primario-sm:hover {
    filter: brightness(0.9);
}

#banner-colocacion {
    border-color: var(--primary-color) !important;
}

.escena-item.activa {
    background: rgba(var(--primary-color-rgb), 0.2) !important;
    border-color: var(--primary-color) !important;
}

/* ============================================================
   ESTILOS DE ALTO CONTRASTE Y MEJORA VISUAL PARA EL PANEL ADMIN
   ============================================================ */
#panel-admin {
    background: rgba(15, 18, 22, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65) !important;
    border-radius: 12px !important;
}

#panel-admin h4 {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 0.5px;
}

#panel-admin .admin-section h5 {
    color: var(--primary-color, #0088ff) !important;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 11px;
}

#panel-admin .form-group label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
}

#panel-admin select,
#panel-admin input,
#panel-admin textarea {
    background: rgba(0, 0, 0, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    font-size: 12px;
    border-radius: 6px !important;
}

#panel-admin select:focus,
#panel-admin input:focus,
#panel-admin textarea:focus {
    border-color: var(--primary-color, #0088ff) !important;
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.6) !important;
}

#panel-admin .btn-primario-sm {
    background: var(--primary-color, #0088ff) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#panel-admin .btn-primario-sm:hover {
    filter: brightness(1.15) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.45) !important;
}

#panel-admin .escena-item,
#panel-admin .hotspot-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#panel-admin .escena-item:hover,
#panel-admin .hotspot-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

#panel-admin .escena-item.activa {
    background: rgba(var(--primary-color-rgb), 0.25) !important;
    border-color: var(--primary-color) !important;
    box-shadow: inset 0 0 8px rgba(var(--primary-color-rgb), 0.3) !important;
}

#panel-admin .btn-icon {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 5px 8px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

#panel-admin .btn-icon:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

#panel-admin .btn-icon.eliminar:hover,
#panel-admin .btn-icon.delete:hover {
    background: rgba(255, 77, 77, 0.22) !important;
    border-color: rgba(255, 77, 77, 0.45) !important;
    color: #ff6b6b !important;
}

#panel-admin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px;
}
#panel-admin::-webkit-scrollbar {
    width: 6px !important;
}

/* Feedback visual de edición en el visor */
#panorama.visual-edit-mode .pnlm-hotspot-base {
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.85), inset 0 0 10px rgba(255, 136, 0, 0.6) !important;
    border: 2px dashed rgba(255, 136, 0, 1) !important;
    animation: none !important;
}

#panorama.visual-edit-mode .pnlm-hotspot-base::after {
    background-color: #ff8800 !important;
}

#panorama.visual-edit-mode .pnlm-hotspot-base::before {
    display: none !important;
}

/* ============================================================
   ESTILOS ADICIONALES PARA NADIR BRANDING (TRÍPODE)
   ============================================================ */
.pnlm-hotspot.custom-nadir-hotspot {
    background: none !important;
    border: none !important;
    background-size: 0 0 !important;
    width: 10px !important;
    height: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
    z-index: 5 !important;
    cursor: default !important;
}

.pnlm-hotspot.custom-nadir-hotspot::after,
.pnlm-hotspot.custom-nadir-hotspot::before {
    display: none !important;
    content: none !important;
}

/* ============================================================
   ESTILOS DE PUNTOS INTERACTIVOS EN EL MINIMAPA (MATTERPORT)
   ============================================================ */
.minimap-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color, #0088ff);
    border: 2px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 15;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.minimap-dot:hover {
    background-color: #ffffff !important;
    border-color: var(--primary-color, #0088ff) !important;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.5);
}