/* Importar fuente Inter + Montserrat (unificadas) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Palette VitalHealth - Simplificada */
    --vh-green: #4CAF50;
    --vh-green-dark: #388E3C;
    --vh-green-light: #E8F5E9;
    --vh-black: #1A1A1A;
    --vh-white: #FFFFFF;
    --vh-gray: #F5F7FA;
    --vh-gray-dark: #757575;
    
    /* Tokens UI Minimalistas */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Espaciado consistente */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

/* =========================================== */
/* CORRECCIONES CRÍTICAS PARA POSICIÓN FIJA */
/* =========================================== */

/* HTML y body SIN propiedades que interfieran con position: fixed */
html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip; /* Mejor que hidden para no interferir con fixed */
    position: static !important; /* Asegurar que no haya position relative */
    transform: none !important;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--vh-black);
    background-color: var(--vh-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    position: static !important; /* CRÍTICO: NO position relative */
    transform: none !important;
    overflow: visible !important; /* CRÍTICO: NO overflow hidden/clip */
}

/* Reset Minimalista */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================== */
/* GARANTIZAR QUE ELEMENTOS FIXED FUNCIONEN */
/* =========================================== */

/* =========================== */
/* CORRECCIÓN DE POSICIONES Y TAMAÑOS */
/* =========================== */

/* WhatsApp Float - Posición original */
.whatsapp-float {
    position: fixed !important;
    bottom: 100px !important; /* Original: 100px */
    right: 24px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    background: #25D366;
    color: var(--vh-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 9997 !important;
    border: 3px solid white;
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); } /* Más suave: -5px en lugar de -10px */
    100% { transform: translateY(0px); }
}

/* Chatbot Toggle - Posición original ajustada */
.chatbot-toggle {
    position: fixed !important;
    bottom: 24px !important; /* Original: 24px */
    right: 24px !important;
    width: 60px !important; /* Original: 70px - Reducido a 60px */
    height: 60px !important; /* Original: 70px - Reducido a 60px */
    border-radius: 50%;
    background: linear-gradient(135deg, #0056a9 0%, #0073ce 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 86, 169, 0.4); /* Original: 0 10px 30px */
    z-index: 9999 !important;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    border: 3px solid white; /* Original: 4px - Reducido a 3px */
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); } /* Más suave: -5px */
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Contenedor del chatbot - Posición ajustada */
.chatbot-container {
    position: fixed !important;
    bottom: 100px !important; /* Misma posición que WhatsApp */
    right: 24px !important;
    width: 380px !important; /* Original: 420px - Reducido */
    height: 500px !important; /* Original: 680px - Reducido */
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e9ecef;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* Ajustar posiciones cuando el chatbot está abierto */
.chatbot-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: flex;
}

/* Mover WhatsApp arriba cuando el chatbot está abierto */
.chatbot-container.active ~ .whatsapp-float {
    bottom: 600px !important; /* 100px (original) + 500px (altura del chatbot) */
}

/* Ajustar posiciones en móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px !important; /* Ajustado para móviles */
        right: 20px !important;
        width: 50px !important; /* Reducido para móviles */
        height: 50px !important;
    }
    
    .chatbot-toggle {
        bottom: 20px !important; /* Ajustado para móviles */
        right: 20px !important;
        width: 50px !important; /* Reducido para móviles */
        height: 50px !important;
    }
    
    .chatbot-container {
        bottom: 20px !important; /* En móviles ocupa toda la pantalla */
        right: 20px !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
        height: 60vh !important; /* Altura relativa en móviles */
    }
    
    /* Ajustar cuando está abierto en móviles */
    .chatbot-container.active ~ .whatsapp-float {
        bottom: calc(60vh + 30px) !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 85px !important; /* Más ajustado para móviles pequeños */
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .chatbot-toggle {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .chatbot-container {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important; /* Pantalla completa en móviles pequeños */
        border-radius: 0 !important;
    }
    
    /* En pantalla completa, WhatsApp no se mueve */
    .chatbot-container.active ~ .whatsapp-float {
        bottom: 85px !important;
        right: 15px !important;
    }
}

/* Estilos visuales originales para los iconos */
.chatbot-toggle i {
    font-size: 24px !important; /* Original: 32px - Reducido */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.whatsapp-float i {
    font-size: 24px !important; /* Original: 28px - Reducido */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Notification badge ajustado */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    border-radius: 50%;
    width: 24px !important; /* Original: 28px - Reducido */
    height: 24px !important; /* Original: 28px - Reducido */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important; /* Original: 14px - Reducido */
    font-weight: bold;
    animation: pulse 1.5s infinite;
    border: 2px solid white !important; /* Original: 3px - Reducido */
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Chatbot message tooltip ajustado */
.chatbot-message {
    position: absolute;
    bottom: 70px !important; /* Original: 80px - Ajustado */
    right: 80px !important; /* Original: 100px - Ajustado */
    background: white;
    color: #343a40;
    padding: 10px 14px !important; /* Original: 12px 16px - Reducido */
    border-radius: 12px;
    font-size: 13px !important; /* Original: 14px - Reducido */
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    max-width: 180px !important; /* Original: 200px - Reducido */
    z-index: 1001;
    border-left: 4px solid #0056a9;
}

/* Hover effects ajustados */
.chatbot-toggle:hover {
    transform: scale(1.1) !important; /* Original: 1.15 - Reducido */
    box-shadow: 0 12px 30px rgba(0, 86, 169, 0.6) !important; /* Efecto más suave */
    animation: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* =========================================== */
/* RESTA DEL CSS (sin cambios problemáticos) */
/* =========================================== */

/* Tipografía Minimalista */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--vh-gray-dark);
}

/* Container */
.container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

/* Header Minimalista */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--vh-white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: var(--radius-sm);
}

.logo-text img {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

.header-cta {
    display: flex;
    align-items: center;
}

.header .cta-button {
    background: var(--vh-green);
    color: var(--vh-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.header .cta-button:hover {
    background: var(--vh-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Minimalista */
.hero {
    padding-top: 75px;
    padding-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--vh-white) 0%, var(--vh-green-light) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: flex-start;
    padding-top: 0.5rem;
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--vh-black);
}

.hero-title span {
    color: var(--vh-green);
    display: block;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--vh-gray-dark);
    margin-bottom: var(--space-md);
    max-width: 600px;
}

/* Feature Grid Minimalista */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--vh-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    line-height: 1.4;
    color: var(--vh-green);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--vh-gray-dark);
}

.feature-icon-b {
    width: 28px;
    height: 28px;
    background-color: rgba(111,167,115,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: var(--vh-green);
    flex-shrink: 0;
    font-size: 30px;
}

/* Stats Minimalista */
.stats {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--vh-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stats h2 {
    font-size: 1.5rem;
    color: var(--vh-green);
    text-align: center;
    margin-bottom: 0;
}

/* CTA Buttons Minimalistas */
.cta-button-left {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: #123E36;
    color: var(--vh-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: var(--space-md);
}

.cta-button-left:hover {
    background: var(--vh-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button-left .feature-icon-b {
    font-size: 1.5rem;
}

/* Hero Image Section Minimalista */
.hero-image {
    position: relative;
}

.hero-image h2 {
    font-size: 1.4rem;
    text-align: center;
    color: var(--vh-green);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--vh-black);
    width: 700px;
    height: auto;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.video-button {
    margin-top: var(--space-lg);
    text-align: center;
}

.video-button .cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: #25D366;
    color: var(--vh-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.video-button .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.video-button .cta-button i {
    font-size: 1.25rem;
}

/* =========================== */
/* ESTILOS DEL CHATBOT (detalles visuales) */
/* =========================== */

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg) !important; }
    50% { transform: translateY(-10px) rotate(5deg) !important; }
    100% { transform: translateY(0px) rotate(0deg) !important; }
}

@keyframes glow {
    0% { box-shadow: 0 10px 30px rgba(0, 86, 169, 0.6); }
    100% { box-shadow: 0 10px 40px rgba(0, 86, 169, 0.8), 0 0 20px rgba(0, 115, 206, 0.6); }
}

.chatbot-toggle:hover {
    transform: scale(1.15) rotate(10deg) !important;
    box-shadow: 0 15px 40px rgba(0, 86, 169, 0.8), 0 0 25px rgba(0, 115, 206, 0.8);
    animation: none;
}

.chatbot-toggle i {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.chatbot-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e9ecef;
    opacity: 0;
    transform: translateY(20px) scale(0.95) !important;
}

.chatbot-container.active {
    opacity: 1;
    transform: translateY(0) scale(1) !important;
    display: flex;
}

.chatbot-container.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95) !important;
    pointer-events: none;
    display: none;
}

.chatbot-header {
    background: linear-gradient(135deg, #0056a9 0%, #0073ce 100%);
    color: white;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.chatbot-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
}

.status {
    display: flex;
    align-items: center;
    font-size: 12px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.chatbot-actions {
    display: flex;
    gap: 8px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #fafbfc;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14px;
    animation: messageAppear 0.3s ease;
    position: relative;
}

@keyframes messageAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background-color: white;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    color: #343a40;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.user-message {
    background: linear-gradient(135deg, #0056a9 0%, #0073ce 100%);
    color: white;
    border-bottom-right-radius: 6px;
    align-self: flex-end;
    box-shadow: 0 2px 10px rgba(0, 86, 169, 0.2);
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
    background-color: white;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 80px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0056a9;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingAnimation {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.quick-option {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0056a9;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.quick-option:hover {
    background-color: #0056a9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 169, 0.2);
}

.chatbot-input-container {
    padding: 18px;
    border-top: 1px solid #e9ecef;
    background-color: white;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chatbot-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

.chatbot-input:focus {
    border-color: #0056a9;
    box-shadow: 0 0 0 3px rgba(0, 86, 169, 0.1);
}

.send-btn {
    background: linear-gradient(135deg, #0056a9 0%, #0073ce 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 86, 169, 0.2);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 86, 169, 0.3);
}

.send-btn:active {
    transform: scale(0.98);
}

.contact-specialist {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border-radius: 12px;
    padding: 18px;
    margin-top: 15px;
    text-align: center;
    animation: contactPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes contactPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.contact-form {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    animation: formAppear 0.4s ease;
}

@keyframes formAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-highlight {
    background-color: white;
    border-radius: 12px;
    padding: 18px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0056a9;
    animation: highlightAppear 0.4s ease;
}

@keyframes highlightAppear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.special-offer {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    border-radius: 12px;
    padding: 18px;
    margin-top: 15px;
    text-align: center;
    animation: offerPulse 3s infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

@keyframes offerPulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.suggestion {
    background-color: rgba(0, 86, 169, 0.1);
    border: 1px solid rgba(0, 86, 169, 0.2);
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0056a9;
}

.suggestion:hover {
    background-color: rgba(0, 86, 169, 0.2);
    transform: translateY(-2px);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.category-btn {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #757575;
}

.category-btn.active {
    background-color: #0056a9;
    color: white;
    border-color: #0056a9;
}

.category-btn:hover {
    background-color: #0056a9;
    color: white;
    transform: translateY(-2px);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.chatbot-message {
    position: absolute;
    bottom: 80px;
    right: 100px;
    background: white;
    color: #343a40;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    max-width: 200px;
    z-index: 1001;
    border-left: 4px solid #0056a9;
}

.chatbot-message:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.chatbot-toggle:hover .chatbot-message {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float i {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.whatsapp-text {
    position: absolute;
    right: 70px;
    background: white;
    color: #343a40;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Minimalista - CORREGIDO */
.footer {
    background: var(--vh-black);
    color: var(--vh-white);
    padding: 10px 0;
    margin-top: auto;
    width: 100%;
    text-align: center;
    position: relative;
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.ascend-link {
    color: var(--vh-green);
    text-decoration: none;
    transition: var(--transition);
}

.ascend-link:hover {
    color: var(--vh-white);
    text-decoration: underline;
}

/* Para móviles */
@media (max-width: 768px) {
    .footer {
        padding: var(--space-sm) 0;
    }
    
    .footer p,
    .footer-credit {
        font-size: 0.8rem;
    }
}

.ascend-link {
    color: var(--vh-green);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ascend-link:hover {
    color: var(--vh-white);
}

.ascend-text {
    position: relative;
    display: inline-block;
}

.ascend-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--vh-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ascend-link:hover .ascend-text::after {
    transform: scaleX(1);
}

/* Particles Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

.animate-fadeIn {
    animation: fadeInUp 0.6s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Scrollbar personalizado */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* =========================================== */
/* MEDIA QUERIES CORREGIDAS */
/* =========================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .feature-grid {
        max-width: 600px;
        margin: 0 auto var(--space-lg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-sm);
    }
    
    .header-cta {
        width: 100%;
        justify-content: center;
    }
    
    .header .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Ajustes CRÍTICOS para chatbot en móviles */
    .whatsapp-float {
        bottom: 100px !important;
        right: 20px !important;
        width: 60px !important;
        height: 60px !important;
        z-index: 9998 !important;
    }
    
    .chatbot-toggle {
        bottom: 180px !important;
        right: 20px !important;
        width: 70px !important;
        height: 70px !important;
        z-index: 10000 !important;
    }
    
    .chatbot-container {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .chatbot-message,
    .whatsapp-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: var(--space-sm);
    }
    
    .cta-button-left,
    .video-button .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-image h2 {
        font-size: 1.25rem;
    }
    
    /* Ajustes móviles pequeños */
    .whatsapp-float {
        bottom: 90px !important;
        right: 15px !important;
        width: 55px !important;
        height: 55px !important;
        z-index: 9998 !important;
    }
    
    .chatbot-toggle {
        bottom: 160px !important;
        right: 15px !important;
        width: 55px !important;
        height: 55px !important;
        z-index: 10000 !important;
    }
    
    .chatbot-container {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
    }

    .notification-badge {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: -4px;
        right: -4px;
    }

    .chatbot-message,
    .whatsapp-text {
        display: none;
    }    
    
    .footer-left p,
    .footer-credit {
        font-size: 0.8rem;
    }
}

/* ===================== */
/* CORRECCIONES MOBILE */
/* ===================== */

@media (max-width: 768px) {
    /* Header más compacto en móviles */
    .header {
        padding: 0.4rem 0;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 var(--space-sm);
        gap: 0;
    }
    
    .logo img {
        height: 45px;
    }
    
    .logo-text img {
        height: 30px;
    }
    
    .header-cta {
        width: auto;
    }
    
    .header .cta-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
        max-width: 150px;
    }
    
    /* Hero ajustado para móviles */
    .hero {
        padding-top: 80px;
        padding-bottom: var(--space-md);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding-top: 0;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    /* Títulos más pequeños en móviles */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: var(--space-sm);
    }
    
    .hero-title span {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: var(--space-md);
        padding: 0 var(--space-xs);
    }
    
    /* Feature Grid - una columna en móviles */
    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: var(--space-xs);
        margin-bottom: var(--space-md);
    }
    
    .feature-item {
        padding: var(--space-sm);
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .feature-icon {
        font-size: 1.2rem;
        min-width: 40px;
    }
    
    .feature-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Stats más pequeño */
    .stats {
        margin: var(--space-sm) 0;
        padding: var(--space-sm);
    }
    
    .stats h2 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    /* CTA Button en móviles */
    .cta-button-left {
        width: 90%;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
        margin: var(--space-sm) auto;
        display: flex;
    }
    
    /* Sección del video */
    .hero-image h2 {
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
        padding: 0 var(--space-xs);
        line-height: 1.3;
    }
    
    .video-wrapper {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-md);
    }
    
    .video-button {
        margin-top: var(--space-sm);
    }
    
    .video-button .cta-button {
        width: 90%;
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    /* Ocultar textos flotantes en móviles */
    .chatbot-message,
    .whatsapp-text {
        display: none;
    }
}

/* =========================== */
/* CORRECCIONES MÓVILES PEQUEÑOS (≤ 480px) */
/* =========================== */
@media (max-width: 480px) {
    .hero {
        padding-top: 70px;
    }
    
    .header .cta-button {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        max-width: 130px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text img {
        height: 25px;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-title span {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .feature-item {
        padding: 0.6rem;
    }
    
    .feature-icon {
        font-size: 1rem;
        min-width: 35px;
    }
    
    .feature-text {
        font-size: 0.75rem;
    }
    
    .cta-button-left {
        font-size: 0.8rem;
        padding: 0.6rem 0.9rem;
    }
    
    .hero-image h2 {
        font-size: 1rem;
    }
    
    .video-button .cta-button {
        font-size: 0.8rem;
        padding: 0.7rem 1rem;
    }
    
    /* Ocultar tooltips en móviles */
    .chatbot-message,
    .whatsapp-text {
        display: none;
    }
}

/* =========================== */
/* CORRECCIÓN PARA TEXTOS DESBORDADOS */
/* =========================== */
.hero-content, 
.hero-image, 
.feature-item,
.stats,
.cta-button-left {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Asegurar que los contenedores no hagan overflow */
.container, 
.hero-container, 
.feature-grid {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================== */
/* CORRECCIÓN ESPECÍFICA PARA BOTONES */
/* =========================== */
@media (max-width: 768px) {
    .header .cta-button,
    .cta-button-left,
    .video-button .cta-button {
        white-space: normal;
        line-height: 1.2;
        height: auto;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================== */
/* MEJORA DE TOCABILIDAD EN MÓVILES */
/* =========================== */
@media (max-width: 768px) {
    .feature-item,
    .cta-button-left,
    .video-button .cta-button,
    .header .cta-button {
        min-height: 44px;
    }
    
    .whatsapp-float,
    .chatbot-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

.mute-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 18px;
  color: white;
  cursor: pointer;
}