/* =====================================================
   ATTIENDE - Landing Page Premium Dark Mode
   Color Principal: Cyan (#06B6D4)
   ===================================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fondos */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Color Principal - Cyan */
    --primary-50: #ECFEFF;
    --primary-100: #CFFAFE;
    --primary-200: #A5F3FC;
    --primary-300: #67E8F9;
    --primary-400: #22D3EE;
    --primary-500: #06B6D4;
    --primary-600: #0891B2;
    --primary-700: #0E7490;
    --primary-800: #155E75;
    --primary-900: #164E63;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Acentos */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Tipografía */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PARTÍCULAS DE FONDO ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.8;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-400);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-500);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== BOTONES ===== */
.btn-primary {
    background: linear-gradient(135deg,
            var(--primary-600) 0%,
            var(--primary-500) 30%,
            var(--primary-400) 60%,
            var(--primary-500) 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.5),
        0 4px 24px rgba(6, 182, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 2px rgba(6, 182, 212, 0.8),
        0 8px 40px rgba(6, 182, 212, 0.6);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.btn-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(6, 182, 212, 0.5),
            0 4px 24px rgba(6, 182, 212, 0.4),
            0 0 60px rgba(6, 182, 212, 0.3);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(6, 182, 212, 0.8),
            0 8px 40px rgba(6, 182, 212, 0.6),
            0 0 80px rgba(6, 182, 212, 0.5);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: radial-gradient(ellipse at top, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 32px;
}

.label-icon {
    font-size: 18px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-tertiary);
    margin-bottom: 48px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.cta-microcopy {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0;
    padding-left: 4px;
}

.cta-microcopy strong {
    color: var(--primary-400);
    font-weight: 600;
}

.whatsapp-cta {
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(6, 182, 212, 0.3));
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.float-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-500);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-400);
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== SECTIONS ===== */
section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-400);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: linear-gradient(135deg,
            rgba(6, 182, 212, 0.08) 0%,
            rgba(6, 182, 212, 0.04) 50%,
            rgba(6, 182, 212, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.35);
    transform: translateY(-4px);
}

/* Prevenir conflicto con flip cards */
.service-card-back.glass-card:hover {
    transform: rotateY(180deg);
}

/* ===== SERVICIOS - FLIP CARDS ===== */
.services {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-flip {
    perspective: 1000px;
    height: 400px;
    cursor: pointer;
    position: relative;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

/* Estado hover - solo girar */
.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

/* Caras de la tarjeta */
.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(6, 182, 212, 0.1) 0%,
            rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 40px;
    text-align: center;
    transform: rotateY(0deg);
}

.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ícono - sin animaciones adicionales */
.service-icon-container {
    margin-bottom: 24px;
}

.service-icon {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

.service-title-front {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.service-title-back {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-300);
}

/* ===== BENEFICIOS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.benefit-card {
    position: relative;
    padding: 40px;
}

.benefit-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    color: rgba(6, 182, 212, 0.1);
    line-height: 1;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.benefit-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-tertiary);
}

/* ===== CÓMO FUNCIONA ===== */
.how-it-works {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(6, 182, 212, 0.2),
        0 0 40px rgba(6, 182, 212, 0.4);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-tertiary);
}

.step-connector {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-600) 0%, var(--primary-400) 100%);
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--primary-400);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* ===== TESTIMONIOS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
    position: relative;
}

.quote-icon {
    font-size: 64px;
    font-family: Georgia, serif;
    color: var(--primary-500);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.testimonial-rating {
    font-size: 18px;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-500);
    overflow: hidden;
}

.author-avatar svg {
    width: 100%;
    height: 100%;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ===== FAQ SECTION ===== */
.faq {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 16px;
    background: rgba(6, 182, 212, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question span {
    padding-right: 24px;
}

.faq-icon {
    color: var(--primary-500);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-tertiary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA FINAL ===== */
.cta-final {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    padding: 120px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.cta-note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.6;
}

.cta-note strong {
    color: var(--primary-400);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    color: var(--primary-400);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-quaternary);
    margin-bottom: 8px;
}

.footer-location {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 56px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 16px 0;
        border-bottom: 1px solid rgba(6, 182, 212, 0.2);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
        animation: fade-in-down 0.3s ease forwards;
    }

    .nav-link {
        font-size: 18px;
        padding: 16px 24px;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 350px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .step-connector {
        width: 2px;
        height: 60px;
        background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-400) 100%);
    }

    .step-connector::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -6px;
        top: auto;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid var(--primary-400);
    }

    .section-title {
        font-size: 36px;
    }

    .cta-title {
        font-size: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Reducir partículas en mobile */
    .particle:nth-child(n+20) {
        display: none;
    }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float-wp 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0px 6px 25px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes float-wp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-whatsapp svg {
        width: 25px;
        height: 25px;
    }
}

/* ===== CHATBOT ANIMATION LOOP ===== */
.chat-loop-container {
    width: 100%;
    max-width: 420px;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.1);
    position: relative;
    font-family: var(--font-body);
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.4s ease;
}

.chat-loop-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.chat-loop-header {
    background: rgba(6, 182, 212, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.chat-loop-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.chat-loop-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-loop-info h4 {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.chat-loop-info p {
    font-size: 12px;
    color: var(--primary-400);
    margin: 0;
}

.chat-loop-body {
    padding: 24px 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-loop-body-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.chat-msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.msg-user {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg-bot {
    background: rgba(6, 182, 212, 0.15);
    color: #ECFEFF;
    border: 1px solid rgba(6, 182, 212, 0.3);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 16px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    
    /* Native flexbox flow instead of absolute */
    position: relative;
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    opacity: 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    border-radius: 50%;
    animation: typing-bounce 1s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* The Loop Animations (20s Total) */
.loop-msg-1 {
    animation: loop-m1 20s infinite ease-out;
}
.loop-typing-1 {
    animation: loop-t1 20s infinite ease-out;
}
.loop-msg-2 {
    animation: loop-m2 20s infinite ease-out;
}
.loop-msg-3 {
    animation: loop-m3 20s infinite ease-out;
}
.loop-typing-2 {
    animation: loop-t2 20s infinite ease-out;
}
.loop-msg-4 {
    animation: loop-m4 20s infinite ease-out;
}

@keyframes loop-m1 {
    0%, 4% { opacity: 0; transform: translateY(20px) scale(0.95); }
    5%, 89% { opacity: 1; transform: translateY(0) scale(1); }
    93%, 100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

@keyframes loop-t1 {
    0%, 9% { max-height: 0; padding: 0 16px; margin: 0; opacity: 0; transform: scale(0.9); }
    10%, 21% { max-height: 50px; padding: 12px 16px; margin: 0; opacity: 1; transform: scale(1); }
    22%, 100% { max-height: 0; padding: 0 16px; margin: 0; opacity: 0; transform: scale(0.9); }
}

@keyframes loop-m2 {
    0%, 22% { opacity: 0; transform: translateY(20px) scale(0.95); }
    23%, 89% { opacity: 1; transform: translateY(0) scale(1); }
    93%, 100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

@keyframes loop-m3 {
    0%, 39% { opacity: 0; transform: translateY(20px) scale(0.95); }
    40%, 89% { opacity: 1; transform: translateY(0) scale(1); }
    93%, 100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

@keyframes loop-t2 {
    0%, 44% { max-height: 0; padding: 0 16px; margin: 0; opacity: 0; transform: scale(0.9); }
    45%, 59% { max-height: 50px; padding: 12px 16px; margin: 0; opacity: 1; transform: scale(1); }
    60%, 100% { max-height: 0; padding: 0 16px; margin: 0; opacity: 0; transform: scale(0.9); }
}

@keyframes loop-m4 {
    0%, 60% { opacity: 0; transform: translateY(20px) scale(0.95); }
    61%, 89% { opacity: 1; transform: translateY(0) scale(1); }
    93%, 100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

@keyframes typing-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}