﻿/* ==========================================================================
   1. ESTRUCTURA BASE Y CENTRADO DE PANTALLA
   ========================================================================== */
.landing-hero-test {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 120px 20px 60px 20px;
    text-align: center;
    box-sizing: border-box;
    background-color: #f8fafc;
    overflow: hidden;
}

.landing-content-test {
    max-width: 800px;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.brand-badge-test {
    display: inline-block;
    background: #e0e7ff;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.landing-content-test h1 {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 700px;
    letter-spacing: -1.2px;
}

.landing-subtitle-test {
    font-size: 17px;
    color: #475569;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 620px;
}

.landing-actions-test {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* El botón premium con degradado real */
.btn-primary-landing-test {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
}

    .btn-primary-landing-test:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px -5px rgba(79, 70, 229, 0.45);
    }

/* Fila de beneficios con Bootstrap Icons */
.landing-features-preview {
    margin-top: 40px;
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

    .landing-features-preview span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .landing-features-preview i {
        color: #4f46e5;
        font-size: 15px;
    }

/* ==========================================================================
   2. NAVBAR SUPERIOR FLOTANTE
   ========================================================================== */
.custom-landing-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 24px 0;
    box-sizing: border-box;
}

.nav-container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 9px;
    height: 9px;
    background: #4f46e5;
    border-radius: 50%;
}

.btn-nav-primary {
    background: #0f172a;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.2s;
}

    .btn-nav-primary:hover {
        background: #1e293b;
    }

/* Fondo difuminado púrpura */
.landing-bg-glow-test {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(255,255,255,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* ==========================================================================
   3. SISTEMA DE ANIMACIONES Y MICROINTERACCIONES
   ========================================================================== */

/* Aparición desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aparición desde arriba (Para el Nav) */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flotación vertical infinita (Efecto sutil) */
@keyframes floatEffect {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Pulso de escala suave para el resplandor de fondo */
@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

/* Clases de Inicialización (Se ejecutan al cargar la página) */
.init-fade-down {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.init-fade-up-1 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.init-fade-up-2 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.init-fade-up-3 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.init-fade-up-4 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

/* Animaciones Continuas e Interactivas */
.anim-float {
    animation: floatEffect 4s ease-in-out infinite;
}

.anim-pulse {
    animation: pulseGlow 8s ease-in-out infinite;
}

/* Reacción de la flecha dentro del botón principal */
.btn-primary-landing-test i {
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-primary-landing-test:hover i {
    transform: translateX(4px);
}

/* Reacción individual de los features inferiores */
.landing-features-preview span {
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: default;
}

    .landing-features-preview span:hover {
        transform: translateY(-3px);
        color: #4f46e5;
    }

    .landing-features-preview span i {
        transition: transform 0.3s ease;
    }

    .landing-features-preview span:hover i {
        transform: scale(1.2);
    }

/* RESPONSIVO PARA MÓVILES */
@media (max-width: 768px) {
    .landing-hero-test {
        padding-top: 100px;
    }

    .landing-content-test h1 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .landing-subtitle-test {
        font-size: 15px;
    }

    .landing-features-preview {
        flex-direction: column;
        gap: 14px;
        margin-top: 30px;
    }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (LADO DERECHO FIJO - STICKY)
   ========================================================================== */
.whatsapp-btn-floater {
    position: fixed; /* Mantiene el botón fijo en la pantalla todo el tiempo */
    bottom: 30px;
    right: 30px; /* 👈 Fijado de forma permanente a la derecha */
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999; /* Máxima prioridad para que no lo tape ningún texto o fondo */
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none !important;
}

    /* Efecto al pasar el cursor (Hover) */
    .whatsapp-btn-floater:hover {
        transform: scale(1.05);
        background-color: #20ba5a;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    }

/* Anillo de pulso magnético continuo desde la derecha */
.whatsapp-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsappWaveRight 2.5s ease-out infinite;
    opacity: 0;
}

/* Animación de la onda expansiva */
@keyframes whatsappWaveRight {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Optimización para teléfonos celulares */
@media (max-width: 768px) {
    .whatsapp-btn-floater {
        bottom: 20px;
        right: 20px; /* Alineado correctamente en móviles */
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}