:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand span {
    letter-spacing: 2px;
}

/* --- HERO --- */
.hero {
    padding: 160px 0 80px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.15), transparent);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(90deg, #00e5ff, #7c4dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CARDS & BUTTONS --- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.btn-neon {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-neon:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 20px var(--primary);
}

.badge-low-cost {
    background: #0dcaf0; 
    color: #000;         
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* --- WHATSAPP FLOAT --- */
.wsp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000; /* Prioridad máxima sobre otros elementos */
    text-decoration: none;
    transition: all 0.3s ease;
}

.wsp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* --- FIBI (CHATBOT) --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

#fibi-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
}

#fibi-launcher {
    animation: float 3s ease-in-out infinite, pulse-border 2s infinite;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

#fibi-launcher:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

#fibi-window {
    display: none; 
    position: absolute; /* Relativo al contenedor */
    bottom: 80px;
    left: 0;
    width: 320px;
    height: 450px;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    background: rgba(15, 23, 42, 0.98);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

/* Burbujas de Chat */
#fibi-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.bot-msg {
    background: #1e293b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 15px 15px 15px 0;
    margin: 8px 0;
    max-width: 85%;
    font-size: 0.9rem;
}

.user-msg {
    background: var(--primary);
    color: #000;
    padding: 8px 12px;
    border-radius: 15px 15px 0 15px;
    margin: 8px 0;
    max-width: 85%;
    margin-left: auto;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
}
.wsp-float-new {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    text-decoration: none;
    transition: 0.3s;
}
/* Animación de puntos */
.typing {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fff;
    animation: typing 1s infinite inset;
    margin: 0 2px;
}
@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    .wsp-float {
        width: 55px !important;
        height: 55px !important;
        bottom: 25px !important;
        right: 20px !important;
        font-size: 28px !important;
    }

    #fibi-container {
        bottom: 25px !important;
        left: 20px !important;
    }

    #fibi-launcher {
        width: 55px !important;
        height: 55px !important;
    }

    #fibi-window {
        width: calc(100vw - 40px) !important;
        left: 0 !important;
        bottom: 75px !important;
        height: 65vh !important;
    }
}