﻿/* ===================================================================
   SECCIÓN: LA EXPO (3D Futuristic Hub - Eye Care & Compact)
   =================================================================== */
.expo-futuristic-section {
    position: relative;
    /* 1. Redujimos el padding para aprovechar mejor el espacio */
    padding: 60px 0;
    /* 2. Color de fondo suave que no cansa la vista */
    background: #F0F4F8;
    overflow: hidden;
    color: var(--brandDark);
    font-family: system-ui, -apple-system, sans-serif;
}

/* Patrón tecnológico sutil de fondo */
.tech-lines-bg {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: linear-gradient(rgba(58, 152, 154, 0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 152, 154, 0.6) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px);
}

/* Cabecera de Sección (Menos margen) */
.expo-bento-header {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 20px; /* Reducido de 48px */
}

.massive-title-3d {
    font-size: clamp(28px, 5vw, 50px); /* Un pelín más compacto */
    font-weight: 900;
    color: var(--brandDark);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.text-gradient-brand {
    background: linear-gradient(135deg, var(--brandDark) 0%, #3A989A 50%, #C79532 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.kicker-brand {
    background: rgba(58, 152, 154, 0.08);
    color: #3A989A;
    border: 1px solid rgba(58, 152, 154, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
}

/* =========================================
   CONTENEDOR DE LA ESCENA 3D
   ========================================= */
.expo-3d-scene {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 520px; /* Reducido de 600px para ahorrar espacio vertical */
    margin: 20px auto 0; /* Reducido de 60px */
    perspective: 1800px;
}

/* =========================================
   NÚCLEO CENTRAL
   ========================================= */
.core-hub-3d {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -260px;
    margin-top: -180px;
    width: 520px;
    height: 360px;
    /* Ahora que el fondo de la web es gris, hacemos la tarjeta pura y blanca para que destaque */
    background: #ffffff;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
    transform: translateZ(40px);
    transition: all 0.3s ease;
}

    /* Borde gradiente corporativo */
    .core-hub-3d::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 32px;
        padding: 2px;
        background: linear-gradient(135deg, #3A989A, #E03C31, #C79532);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

.core-content h3 {
    color: var(--brandDark);
    font-size: 28px;
    font-weight: 850;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.impact-text {
    color: var(--brandDark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
    opacity: 0.9;
}

.futuristic-chips {
    justify-content: center;
    gap: 8px;
}

.chip-brand {
    background: rgba(36, 75, 92, 0.05);
    border: 1px solid rgba(16, 24, 40, 0.15);
    color: var(--brandDark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================
   NODOS SATÉLITES
   ========================================= */
.satellite-node {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -110px;
    margin-top: -85px;
    width: 220px;
    height: 170px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    z-index: 5;
    transform: translate(var(--tx), var(--ty)) translateZ(var(--tz));
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

/* Distancias Matemáticas Perfectas (Toque mínimo) */
.s-1 {
    --tx: -320px;
    --ty: -140px;
    --tz: -20px;
}

.s-2 {
    --tx: 320px;
    --ty: -140px;
    --tz: -20px;
}

.s-3 {
    --tx: -320px;
    --ty: 140px;
    --tz: -20px;
}

.s-4 {
    --tx: 320px;
    --ty: 140px;
    --tz: -20px;
}

.satellite-node h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--brandDark);
    margin: 10px 0 4px 0;
}

.satellite-node p {
    color: var(--brandDark);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
    opacity: 0.8;
}

.node-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
}

    .node-icon svg {
        width: 22px;
        height: 22px;
    }

/* Tintes suaves sobre las tarjetas */
.color-turq {
    background: color-mix(in srgb, #3A989A 4%, #ffffff 96%);
    border: 1px solid rgba(58, 152, 154, 0.3);
}

    .color-turq .node-icon {
        background: rgba(58, 152, 154, 0.1);
        color: #3A989A;
    }

.color-red {
    background: color-mix(in srgb, #E03C31 4%, #ffffff 96%);
    border: 1px solid rgba(224, 60, 49, 0.3);
}

    .color-red .node-icon {
        background: rgba(224, 60, 49, 0.1);
        color: #E03C31;
    }

.color-green {
    background: color-mix(in srgb, #6DBB43 4%, #ffffff 96%);
    border: 1px solid rgba(109, 187, 67, 0.3);
}

    .color-green .node-icon {
        background: rgba(109, 187, 67, 0.1);
        color: #6DBB43;
    }

.color-gold {
    background: color-mix(in srgb, #C79532 4%, #ffffff 96%);
    border: 1px solid rgba(199, 149, 50, 0.3);
}

    .color-gold .node-icon {
        background: rgba(199, 149, 50, 0.1);
        color: #C79532;
    }

/* =========================================
   ANIMACIÓN Y HOVER (Manual y Automático)
   ========================================= */
.satellite-node:hover,
.satellite-node.auto-hover {
    --tz: 60px; /* Pasa al frente */
    z-index: 20;
    background: #ffffff; /* Se vuelve blanca pura al frente */
    transform: translate(var(--tx), var(--ty)) translateZ(var(--tz)) scale(1.05);
}

.color-turq:hover, .color-turq.auto-hover {
    box-shadow: 0 20px 40px rgba(58, 152, 154, 0.2);
    border-color: #3A989A;
}

.color-red:hover, .color-red.auto-hover {
    box-shadow: 0 20px 40px rgba(224, 60, 49, 0.2);
    border-color: #E03C31;
}

.color-green:hover, .color-green.auto-hover {
    box-shadow: 0 20px 40px rgba(109, 187, 67, 0.2);
    border-color: #6DBB43;
}

.color-gold:hover, .color-gold.auto-hover {
    box-shadow: 0 20px 40px rgba(199, 149, 50, 0.2);
    border-color: #C79532;
}

/* Responsive */
@media (max-width: 1024px) {
    .expo-futuristic-section {
        padding: 60px 0;
    }

    .expo-3d-scene {
        height: auto;
        perspective: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        max-width: 100%;
    }

    .core-hub-3d, .satellite-node {
        position: relative;
        left: auto;
        top: auto;
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none !important;
    }

    .core-hub-3d {
        padding: 32px 20px;
        border-radius: 24px;
        border-width: 1px;
        border-style: solid;
    }

    .satellite-node {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        justify-content: flex-start;
        padding: 20px;
        border-radius: 16px;
    }

    .node-icon {
        margin-bottom: 0;
        min-width: 44px;
    }

    .satellite-node h4 {
        margin-top: 0;
    }
}
