/* ============================================
   HUMANPRO GLOBAL EFFECTS v2.0
   Harvard-level interactions & animations
   ============================================ */

/* ==================
   CUSTOM CURSOR
   ================== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #00d4ff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.2);
    border-color: #233dff;
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .custom-cursor, .cursor-dot { display: none; }
}

/* ==================
   FLOATING PARTICLES
   ================== */
@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================
   SCROLL ANIMATIONS
   ================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.from-left {
    transform: translateX(-60px);
}

.scroll-reveal.from-left.revealed {
    transform: translateX(0);
}

.scroll-reveal.from-right {
    transform: translateX(60px);
}

.scroll-reveal.from-right.revealed {
    transform: translateX(0);
}

.scroll-reveal.scale-in {
    transform: scale(0.8);
}

.scroll-reveal.scale-in.revealed {
    transform: scale(1);
}

/* Staggered animations */
.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ==================
   PARALLAX EFFECTS
   ================== */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-medium {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-fast {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ==================
   3D HOVER CARDS
   ================== */
.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-3d-inner {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateX(5deg) rotateY(5deg) translateZ(10px);
}

.card-3d-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.card-3d:hover .card-3d-shine {
    opacity: 1;
}

/* ==================
   DARK/LIGHT MODE
   ================== */
:root {
    --bg-primary: #050a30;
    --bg-secondary: rgba(5, 10, 48, 0.9);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-primary: #233dff;
    --accent-secondary: #00d4ff;
}

[data-theme="light"] {
    --bg-primary: #f4f6fc;
    --bg-secondary: #ffffff;
    --text-primary: #050a30;
    --text-secondary: rgba(5, 10, 48, 0.7);
}

.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    color: var(--accent-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(35, 61, 255, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 30px rgba(35, 61, 255, 0.5);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }

[data-theme="light"] .theme-toggle .fa-sun { display: block; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }

/* ==================
   BUTTON SOUND EFFECT
   ================== */
.btn-sound {
    position: relative;
    overflow: hidden;
}

.btn-sound::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-sound.clicked::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* ==================
   CONFETTI
   ================== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================
   MAGNETIC BUTTONS
   ================== */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================
   SMOOTH SCROLLBAR
   ================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

/* ==================
   GLOW TEXT
   ================== */
.glow-text {
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2);
}

/* ==================
   RIPPLE EFFECT
   ================== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==================
   TILT EFFECT
   ================== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card-content {
    transform: translateZ(30px);
}

/* ==================
   PRELOADER LOGO SIZE
   ================== */
.preloader-logo img {
    height: 100px !important;
    width: auto !important;
}

.neural-sphere {
    width: 280px;
    height: 280px;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 9999;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.whatsapp-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 15px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* ============================================
   CHAT BOT IA
   ============================================ */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9997;
}
.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    transition: all 0.4s ease;
    border: none;
    color: #fff;
    font-size: 1.5rem;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.5);
}

.chatbot-toggle.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.chatbot-toggle .fa-robot {
    animation: botFloat 3s ease-in-out infinite;
}

@keyframes botFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 200px);
    background: rgba(5, 10, 48, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: 24px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.chatbot-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.chatbot-header {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.chatbot-info h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.chatbot-info span {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chatbot-info span::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chatbot-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 85%;
    padding: 0.875rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: messageIn 0.3s ease;
}

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

.chat-message.bot {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: linear-gradient(135deg, #233dff, #00d4ff);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.typing {
    display: flex;
    gap: 0.35rem;
    padding: 1rem;
}

.chat-message.typing span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.chat-message.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-reply {
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-reply:hover {
    background: rgba(124, 58, 237, 0.3);
    border-color: #7c3aed;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    gap: 0.75rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(5, 10, 48, 0.8);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 25px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.chatbot-input input:focus {
    outline: none;
    border-color: #7c3aed;
}

.chatbot-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-send {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9997;
        right: 15px;
    }
    
    .chatbot-window {
        width: calc(100vw - 30px);
        right: -70px;
    }
}

/* BOTÓN VOLVER ARRIBA */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #233dff, #00d4ff);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(35,61,255,0.4);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(35,61,255,0.5);
}

/* BARRA DE PROGRESO DE SCROLL */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #233dff, #00d4ff);
    z-index: 10001;
    transition: width 0.1s ease;
}

/* CONTADOR ANIMADO MEJORADO */
.stats-counter {
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(35,61,255,0.1), rgba(0,212,255,0.05));
    border-top: 1px solid rgba(35,61,255,0.2);
    border-bottom: 1px solid rgba(35,61,255,0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #233dff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-icon {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 0.75rem;
}

/* CÓMO FUNCIONA */
.how-it-works {
    padding: 5rem 5%;
    background: rgba(5,10,48,0.98);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 3rem auto;
    flex-wrap: wrap;
}

.step-card {
    background: linear-gradient(135deg, rgba(35,61,255,0.1), rgba(0,212,255,0.05));
    border: 2px solid rgba(35,61,255,0.3);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    position: relative;
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0,212,255,0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #233dff, #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(35,61,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    font-size: 1.75rem;
    color: #00d4ff;
}

.step-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.step-connector {
    color: #00d4ff;
    font-size: 1.5rem;
    opacity: 0.5;
}

.how-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-how {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #233dff, #00d4ff);
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-how:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(35,61,255,0.4);
}

@media (max-width: 768px) {
    .step-connector { display: none; }
    .steps-container { flex-direction: column; }
}

/* BANNER DE URGENCIA */
.urgency-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    padding: 0.75rem 1rem;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.urgency-banner.visible {
    transform: translateY(0);
}

.urgency-banner p {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.urgency-banner .urgency-timer {
    background: rgba(0,0,0,0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.urgency-banner .btn-urgency {
    padding: 0.5rem 1.25rem;
    background: #fff;
    color: #dc2626;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.urgency-banner .btn-urgency:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.urgency-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* NEWSLETTER POPUP */
.newsletter-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,10,48,0.95);
    z-index: 100001;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.newsletter-popup-overlay.active { display: flex; }

.newsletter-popup {
    background: linear-gradient(135deg, rgba(5,10,48,0.98), rgba(35,61,255,0.1));
    border: 2px solid #00d4ff;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popIn 0.4s ease;
}

.newsletter-popup-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.25rem;
    cursor: pointer;
}

.newsletter-popup h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.newsletter-popup h2 span {
    color: #00d4ff;
}

.newsletter-popup .offer-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 20px;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.newsletter-popup p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 1rem;
    border: 2px solid rgba(35,61,255,0.3);
    border-radius: 12px;
    background: rgba(5,10,48,0.5);
    color: #fff;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #00d4ff;
}

.newsletter-form button {
    padding: 1rem;
    background: linear-gradient(135deg, #233dff, #00d4ff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(35,61,255,0.4);
}

.newsletter-popup .skip-link {
    display: block;
    margin-top: 1rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    cursor: pointer;
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
    position: fixed;
    bottom: 160px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(35,61,255,0.2);
    border: 2px solid rgba(35,61,255,0.4);
    border-radius: 50%;
    color: #00d4ff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(35,61,255,0.4);
    transform: scale(1.1);
}

/* LIGHT MODE */
body.light-mode {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f7ff 100%) !important;
    color: #1a1a2e;
}

body.light-mode .main-header {
    background: rgba(255,255,255,0.95);
    border-color: rgba(35,61,255,0.1);
}

body.light-mode .nav-menu a,
body.light-mode .logo-text {
    color: #1a1a2e;
}

body.light-mode section,
body.light-mode .card,
body.light-mode .service-card,
body.light-mode .testimonial-card,
body.light-mode .faq-item,
body.light-mode .article-content,
body.light-mode .roi-calculator,
body.light-mode .input-panel,
body.light-mode .output-panel {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(35,61,255,0.15) !important;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode .section-title {
    color: #1a1a2e;
}

body.light-mode p,
body.light-mode li,
body.light-mode span:not(.section-badge) {
    color: #4a4a6a !important;
}

body.light-mode .neural-bg {
    opacity: 0.3;
}

body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background: rgba(35,61,255,0.05) !important;
    color: #1a1a2e !important;
    border-color: rgba(35,61,255,0.2) !important;
}

body.light-mode .footer-bottom,
body.light-mode footer {
    background: rgba(5,10,48,0.95);
    color: rgba(255,255,255,0.8);
}

body.light-mode .theme-toggle {
    background: rgba(35,61,255,0.1);
    color: #233dff;
}

/* =============================================
   MICRO-ANIMACIONES HOVER
   ============================================= */

/* Botones con efecto ripple */
.btn-primary,
.btn-submit,
.cta-button,
.btn-cta,
.btn-testimonial,
.btn-como-funciona {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-submit::after,
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after,
.btn-submit:hover::after,
.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

/* Cards con efecto glow */
.service-card,
.testimonial-card,
.caso-card,
.term-card,
.offer-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover,
.testimonial-card:hover,
.caso-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Iconos con rotación */
.service-card i,
.paso-icono i,
.garantia-badge i {
    transition: transform 0.4s ease;
}

.service-card:hover i,
.paso-card:hover .paso-icono i {
    transform: rotate(10deg) scale(1.1);
}

/* Links con underline animado */
.nav-menu a,
.footer-links a {
    position: relative;
}

.nav-menu a::after,
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #233dff, #00d4ff);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.footer-links a:hover::after {
    width: 100%;
}

/* Inputs con focus glow */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(0,212,255,0.2);
}

/* Stats numbers pulse */
.stat-box .number,
.stat .number {
    transition: transform 0.3s ease;
}

.stat-box:hover .number,
.stat:hover .number {
    transform: scale(1.1);
}

/* FAQ chevron bounce */
.faq-question:hover i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Social icons pop */
.social-links a,
.share-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover,
.share-btn:hover {
    transform: translateY(-5px) scale(1.15);
}

/* WhatsApp float pulse */
.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Badge shine effect */
.section-badge,
.article-category,
.caso-badge {
    position: relative;
    overflow: hidden;
}

.section-badge::before,
.article-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Image zoom on hover */
.caso-avatar,
.author-avatar {
    transition: transform 0.3s ease;
}

.caso-card:hover .caso-avatar,
.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

/* Gradient border animation */
.featured-card,
.offer-card.featured {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============ BOTONES FLOTANTES - POSICIONES CORREGIDAS ============ */
/* WhatsApp - esquina inferior derecha */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 997;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Chatbot - arriba del WhatsApp */
.chatbot-toggle,
.chatbot-button {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    z-index: 996;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover,
.chatbot-button:hover {
    transform: scale(1.1);
}

/* Theme toggle - más arriba */
.theme-toggle {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(35, 61, 255, 0.2);
    border: 2px solid rgba(35, 61, 255, 0.4);
    border-radius: 50%;
    color: #00d4ff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 995;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(35, 61, 255, 0.4);
    transform: scale(1.1);
}

/* Scroll to top - lado izquierdo para no amontonar */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #233dff, #00d4ff);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    border: none;
    z-index: 994;
    box-shadow: 0 5px 20px rgba(35, 61, 255, 0.4);
    transition: all 0.3s ease;
}

.scroll-top-btn.visible {
    display: flex;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
}

/* SOCIAL PROOF POPUP */
.social-proof-popup {
    position: fixed;
    bottom: 100px;
    left: 25px;
    background: rgba(5, 10, 48, 0.98);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    padding: 0;
    z-index: 9998;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.social-proof-popup.visible {
    transform: translateX(0);
}

.sp-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    position: relative;
}

.sp-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sp-text {
    flex: 1;
}

.sp-name {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.sp-action {
    display: block;
    color: #10b981;
    font-size: 0.85rem;
    margin: 0.15rem 0;
}

.sp-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.sp-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.sp-close:hover {
    color: #fff;
}

@media (max-width: 500px) {
    .social-proof-popup {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* ============ BANNER URGENCIA MEJORADO ============ */
.urgency-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.urgency-banner.visible {
    transform: translateY(0);
}

.urgency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.urgency-banner p {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
}

.urgency-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #dc2626;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.urgency-discount {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.btn-urgency {
    padding: 0.5rem 1.25rem;
    background: #fff;
    color: #dc2626;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-urgency:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.urgency-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.urgency-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .urgency-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .urgency-banner p {
        font-size: 0.8rem;
    }
}
