body { 
    margin: 0; 
    padding: 0; 
    background-color: #0b0f19; 
    overflow: hidden; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

#map { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 100%; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

#map.mapa-activo {
    opacity: 1;
}

/* ================= PRELOADER CORPORATIVO ================= */
.preloader-capa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #07090e;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-contenido {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 160px;
    height: auto;
    animation: pulsoLogo 1.8s infinite ease-in-out;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.preloader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #60a5fa;
    border-radius: 50%;
    animation: girarSpinner 0.9s linear infinite;
}

@keyframes pulsoLogo {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes girarSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= PORTADAS DE PRESENTACIÓN ================= */
.portada-capa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.oculto-portada {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fondo Portada 1 (Efecto circuito tecnológico sutil con movimiento) */
.portada-1-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #050b14 0%, #0b172a 100%);
    background-image: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.25) 0%, transparent 70%);
    z-index: 1;
}

.portada-contenido {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    padding: 0 20px;
    animation: floatSlow 4s ease-in-out infinite;
}

.logo-asesores {
    width: 220px;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.logo-onyx-portada {
    width: 320px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.6));
}

.subtitulo-portada {
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.pie-portada {
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0 0 25px 0;
}

.ano-presentacion {
    color: #60a5fa;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 35px;
}

/* Fondo Portada 2 (Imagen 4K corporativa con la mano robótica y el edificio) */
.portada-2-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('Remove_text_from_image_4K_202608141933.jpeg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    filter: brightness(0.65) contrast(1.1);
}

.portada-contenido-2 {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1100px;
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}

.titulo-automatizacion {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.desc-automatizacion {
    color: #94a3b8;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0 0 35px 0;
}

/* Botones de Acción Interactivos de Lujo */
.btn-accion {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-accion:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ================= MENÚ MINIMALISTA LATERAL DERECHO ================= */
.menu-flotante {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    width: 235px;
    max-height: 90vh;
    overflow-y: auto;
}

.menu-flotante h3 {
    color: #ffffff;
    font-size: 14px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
}

.menu-seccion {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    margin-top: 4px;
}

.menu-btn {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.menu-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ================= TARJETA LATERAL DE BONDADES (EXTREMO IZQUIERDO MAXIMIZADO) ================= */
.tarjeta-bondad {
    position: absolute;
    top: 30px; 
    left: 30px; /* Separación elegante del borde */
    background: rgba(10, 15, 30, 0.95); /* Fondo ligeramente más profundo y opaco */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 6px solid #3b82f6; /* Acento corporativo lateral que da mucha presencia */
    border-radius: 16px;
    padding: 35px 40px; /* Mucho más espacio interior para que respire */
    z-index: 1000;
    width: 380px; /* Tamaño robusto ideal para leer en pantalla grande */
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideInCardLeft 0.4s ease-out forwards;
}

@keyframes slideInCardLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.tarjeta-bondad h4 {
    margin: 0 0 15px 0;
    font-size: 24px; /* Título mucho más imponente */
    color: #60a5fa;
    letter-spacing: 0.5px;
    padding-right: 30px;
    line-height: 1.3;
}

.tarjeta-bondad p {
    margin: 0;
    font-size: 16px; /* Texto grande y presentable para exposición */
    color: #cbd5e1;
    line-height: 1.6;
}

.cerrar-tarjeta {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05); /* Botón de cerrar tipo burbuja */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cerrar-tarjeta:hover {
    background: rgba(239, 68, 68, 0.8);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.05);
}

/* ================= MODAL FULL SIZE ARQUITECTURA ================= */
.modal-plano {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.modal-contenido {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 92vh;
    padding: 35px 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    color: #ffffff;
    position: relative;
    overflow-y: auto;
}

.modal-header h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.modal-header p {
    margin: 0 0 20px 0;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.modal-imagen-contenedor {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.img-plano {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
}

.modal-detalles-abajo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.modal-columna h3 {
    font-size: 14px;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 10px 0;
}

.modal-columna ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

.modal-columna li {
    margin-bottom: 6px;
}

.cerrar-modal {
    position: absolute;
    top: 25px; right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cerrar-modal:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* ================= CONTENEDORES DINÁMICOS Y LOGOS ================= */
.onix-marcador-wrapper, 
.sky-marcador-wrapper, 
.promenade-marcador-wrapper, 
.nesttower-marcador-wrapper {
    position: absolute;
    width: 0; height: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.oculto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.onix-logo-gta {
    position: absolute; left: -40px; bottom: 0; width: 80px; height: 80px;
    background-image: url('onyx_logo.png'); background-size: contain; background-repeat: no-repeat; background-position: center;
    pointer-events: auto; cursor: pointer; animation: gta-bounce 2s infinite ease-in-out;
}

.sky-logo-gta {
    position: absolute; left: -40px; bottom: 0; width: 80px; height: 80px;
    background-image: url('sky_logo.png'); background-size: contain; background-repeat: no-repeat; background-position: center;
    pointer-events: auto; cursor: pointer; animation: gta-bounce 2s infinite ease-in-out;
}

.promenade-logo-gta {
    position: absolute; left: -40px; bottom: 0; width: 80px; height: 80px;
    background-image: url('promenade_logo.png'); background-size: contain; background-repeat: no-repeat; background-position: center;
    pointer-events: auto; cursor: pointer; animation: gta-bounce 2s infinite ease-in-out;
}

.nesttower-logo-gta {
    position: absolute; left: -40px; bottom: 0; width: 80px; height: 80px;
    background-image: url('nesttower_logo.png'); background-size: contain; background-repeat: no-repeat; background-position: center;
    pointer-events: auto; cursor: pointer; animation: gta-bounce 2s infinite ease-in-out;
}

.precio-tag {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: 95px; 
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: auto;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

@keyframes gta-bounce {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0px 6px 4px rgba(0,0,0,0.5)); }
    50% { transform: translateY(-12px); filter: drop-shadow(0px 20px 8px rgba(0,0,0,0.2)); }
}

/* Fondo Portada 1 (Video 4K con Capa Oscura) */
.bg-video {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Asegura que el video llene toda la pantalla sin deformarse */
    z-index: 0;
}

.portada-1-bg-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Un gradiente oscuro elegante que permite ver el video de fondo al 25% de opacidad */
    background: linear-gradient(135deg, rgba(5, 11, 20, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

/* Aseguramos que el contenido siga estando por encima del video y del overlay */
.portada-contenido {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    padding: 0 20px;
    animation: floatSlow 4s ease-in-out infinite;
}