/* =========================================
   VIONEX - ESTILOS ESPECÍFICOS DE INICIO (INDEX)
   ========================================= */

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 20px rgba(100, 255, 218, 0.2); }
    50% { box-shadow: 0 0 50px rgba(100, 255, 218, 0.4); }
    100% { box-shadow: 0 0 20px rgba(100, 255, 218, 0.2); }
}

/* Animación de flotado para el globo de Vio */
@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-bounce-slow {
    animation: floatBubble 3s ease-in-out infinite;
}

/* Header con Imagen de Fondo y Brillo */
header {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Fondo fijo */
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.95)), 
                url('../assets/fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    padding-top: 60px; 
    padding-bottom: 80px;
}

/* Capa de brillo controlada por JS */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(100, 255, 218, 0.1) 0%, 
        transparent 50%
    );
    pointer-events: none;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Estilo del Logo Grande */
.vionex-logo-big {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--vionex-cyan);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out forwards, glowPulse 4s infinite ease-in-out;
}

@media (min-width: 768px) {
    .vionex-logo-big {
        width: 180px;
        height: 180px;
    }
}

/* Textos del Header */
header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}

.text-main {
    font-size: 1.5rem;
    color: var(--vionex-cyan);
    font-weight: 300;
    animation: fadeInUp 1.2s ease-out forwards;
}

/* Contenedor de Botones */
.buttons-container {
    margin-top: 3rem;
    margin-bottom: 6rem;
    animation: fadeInUp 1.6s ease-out forwards;
}

/* Sección de Beneficios */
.benefits-section {
    padding: 100px 0;
    background-color: #112240;
}

/* Mejoras visuales tarjetas */
.card-vionex i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-vionex:hover i {
    transform: scale(1.3) rotate(10deg);
    color: var(--vionex-cyan);
}

/* --- ESTILOS SECCIÓN "CONOCE A VIO" --- */

/* Contenedor de imagen con resplandor suave */
.group .blur {
    transition: opacity 0.5s ease;
}

.group:hover .blur {
    opacity: 0.6;
}

/* Tipografía de la sección */
h2.text-white {
    letter-spacing: -0.02em;
}

/* --- CHATBOT & TOOLTIP --- */

#chat-bubble {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    z-index: 60;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ocultar globo cuando el chat está abierto */
.chat-open #chat-bubble {
    opacity: 0;
    pointer-events: none;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    .text-main { font-size: 1.1rem; }
    header { padding-top: 80px; padding-bottom: 100px; }
    .buttons-container { margin-bottom: 4rem; }
    
    #chat-bubble {
        display: none; /* Evita distracciones en pantallas pequeñas */
    }

    /* Ajuste de orden en la sección de Vio para móvil */
    .order-2 {
        margin-top: 2rem;
    }
}