* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #050406;
    color: #fff;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body.fondo-unico { 
    background-image: linear-gradient(rgba(17, 123, 93, 0.05), rgba(0, 0, 0, 0.1)), url('imagenes-de-fondo/imagen1.jpg'); 
    background-position: center center;
    background-size: cover;
}

/* --- CONTENEDOR MAESTRO --- */
.escenario-carrusel {
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    gap: 30px;
}

/* --- CABECERA DE FLUJO (BARRA LATERAL) --- */
.cabecera-holograma {
    width: 220px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 101;
    gap: 25px;
    flex-shrink: 0;
}

/* --- LOGO CORPORATIVO CONTENIDO --- */
.contenedor-logo-holograma {
    width: 100%;
    max-width: 185px; 
    transition: all 0.3s ease;
}

.contenedor-logo-holograma img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.7));
}

/* --- BOTONES DE FILTRO Y REGRESAR --- */
.filtros-holograma {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.btn-regresar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000; /* Letras Negras */
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.2s, background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
    width: 100%;
    text-align: center;
}

.btn-regresar:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
    color: #000000;
}

/* ESTILO INTEGRADO PARA EL BOTON PANTALLA COMPLETA */
.btn-pantalla-completa {
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.4);
    color: #000000; /* Letras Negras */
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.2s, background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
    width: 100%;
    text-align: center;
}

.btn-pantalla-completa:hover {
    background: rgba(0, 198, 255, 0.25);
    border-color: #00c6ff;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
    transform: translateX(4px);
    color: #000000;
}

.separador-menu {
    width: 100%;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    margin: 4px 0;
}

.btn-filtro {
    background: rgba(15, 12, 22, 0.7);
    border: 1px solid rgba(0, 198, 255, 0.3);
    color: #a0a5b5;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.2s, background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
    width: 100%;
    text-align: left;
}

.btn-filtro:hover {
    color: #fff;
    border-color: rgba(0, 198, 255, 0.8);
    transform: translateX(4px);
}

.btn-filtro.activo {
    background: rgba(0, 198, 255, 0.2);
    border-color: #00c6ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.btn-filtro span {
    font-size: 0.75rem;
    opacity: 0.6;
    float: right;
    margin-left: 4px;
    font-weight: 400;
    transition: opacity 0.3s;
}

.btn-filtro:hover span,
.btn-filtro.activo span {
    opacity: 0.9;
    color: #00c6ff;
}

/* --- ESCENARIO 3D CENTRAL EXPANDIBLE --- */
.escenario-3d {
    flex-grow: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    perspective-origin: center center;
}

.esfera-holograma {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    cursor: grab;
}
.esfera-holograma:active { cursor: grabbing; }

.balon-esfera-fondo {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0.3; 
    background-image: url('imagenes-de-fondo/balon.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.nodo-holograma {
    position: absolute;
    width: 105px; 
    height: 135px;
    left: -52.5px;
    top: -67.5px;
    display: none;
    transform-style: preserve-3d;
    transition: opacity 0.3s;
}

.nodo-holograma.visible { display: block; }

.contenido-tarjeta {
    width: 105px; 
    height: 105px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.contenido-tarjeta.tarjeta-bodega {
    border: 2px solid rgba(0, 198, 255, 0.35);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.15);
}

.contenido-tarjeta.tarjeta-terreno {
    border: 2px solid rgba(234, 190, 63, 0.4);
    box-shadow: 0 0 15px rgba(234, 190, 63, 0.15);
}

.contenido-tarjeta.tarjeta-oficina {
    border: 2px solid rgba(186, 85, 211, 0.4);
    box-shadow: 0 0 15px rgba(186, 85, 211, 0.15);
}

.contenido-tarjeta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.contenido-tarjeta.tarjeta-seleccionada {
    border-color: #ffffff !important;
    box-shadow: 0 0 30px #ffffff, 0 0 15px rgba(255,255,255,0.5) !important;
    transform: scale(1.1);
}

.etiqueta-impresion-3d {
    width: 100%;
    margin-top: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.texto-impresion {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 3px 8px;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.texto-impresion.tag-bodega {
    color: #e0f7fc;
    background: rgba(4, 18, 30, 0.85); 
    border: 1px solid rgba(0, 198, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 198, 255, 0.2);
}

.texto-impresion.tag-terreno {
    color: #fff9e6;
    background: rgba(28, 23, 10, 0.88); 
    border: 1px solid rgba(234, 190, 63, 0.45);
    box-shadow: 0 2px 8px rgba(234, 190, 63, 0.15);
}

.texto-impresion.tag-oficina {
    color: #fbf0ff;
    background: rgba(24, 11, 30, 0.88); 
    border: 1px solid rgba(186, 85, 211, 0.45);
    box-shadow: 0 2px 8px rgba(186, 85, 211, 0.15);
}

/* --- PANEL INFERIOR FIJO EN LA BASE --- */
.panel-detalles-inferior {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 750px;
    background: rgba(12, 10, 18, 0.85);
    border: 1px solid rgba(0, 198, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 25px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #eee;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    z-index: 100;
    transition: opacity 0.3s ease, border-color 0.3s;
    display: none; 
    opacity: 0;
}

.panel-detalles-inferior.abierto { 
    display: block;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.4); 
}
.panel-detalles-inferior.abierto-bodega { border-color: rgba(0, 198, 255, 0.6); }
.panel-detalles-inferior.abierto-terreno { border-color: rgba(234, 190, 63, 0.5); }
.panel-detalles-inferior.abierto-oficina { border-color: rgba(0, 230, 118, 0.6); } 

.info-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 15px;
}

.btn-group-hologram {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-buy-hologram {
    border: none;
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-buy-hologram.btn-bodega { background: #00c6ff; }
.btn-buy-hologram.btn-terreno { background: #eabe3f; color: #0d0a02; } 
.btn-buy-hologram.btn-oficina { background: #00e676; color: #000; } 
.btn-buy-hologram:hover { background: #fff; color: #000; transform: scale(1.05); }

.btn-close-hologram {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.btn-close-hologram:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .escenario-carrusel {
        flex-direction: column;
        padding: 20px 10px;
        gap: 10px;
    }

    .cabecera-holograma {
        width: 100%;
        height: auto;
        align-items: center;
        gap: 12px;
    }
    .contenedor-logo-holograma {
        margin: 0 auto;
        max-width: 140px; 
    }

    .filtros-holograma { 
        flex-direction: row;
        gap: 8px; 
        justify-content: center;
        align-items: center;
    }
    
    .btn-filtro, .btn-pantalla-completa { 
        padding: 6px 12px; 
        font-size: 0.75rem; 
        width: auto;
        text-align: center;
    }
    .btn-filtro span {
        float: none;
    }
    .btn-regresar { 
        padding: 6px 12px; 
        font-size: 0.75rem; 
        width: auto;
        margin-bottom: 0;
    }
    .btn-regresar:hover, .btn-pantalla-completa:hover {
        transform: translateY(-2px);
    }
    .separador-menu {
        display: none;
    }

    .escenario-3d {
        width: 100%;
    }

    .nodo-holograma { 
        width: 68px;   
        height: 94px;  
        left: -34px;   
        top: -47px;    
    }
    .contenido-tarjeta { 
        width: 68px;   
        height: 68px;  
    }
    .texto-impresion { font-size: 0.65rem; padding: 2px 4px; }
    
    .panel-detalles-inferior { 
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 95%; 
        padding: 12px 15px; 
        margin-top: auto;
    }
    .panel-detalles-inferior:not(.abierto) {
        display: none !important;
    }
    .info-layout { 
        flex-direction: column; 
        text-align: center; 
        gap: 10px; 
        width: 100%;
    }
    .info-layout span {
        white-space: normal !important; 
        word-wrap: break-word;
        font-size: 0.85rem;
        line-height: 1.4;
    }
}