/* --- GLOBAL STYLES --- */
body {
    background-color: #050505;
    color: #e5e5e5;
}

/* --- LOGO ANIMATIONS --- */
.main-logo {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    will-change: transform;
}

.main-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* --- HERO ANIMATIONS --- */
@keyframes fastZoom {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.3);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.hero-cinematic-home {
    position: relative;
    overflow: hidden;
}

.hero-cinematic-home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Opacidad ajustada */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('https://raptormarketer.com/img/centro-de-comando-digital.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: fastZoom 10s infinite alternate ease-in-out;
}

/* --- FOOTER ANIMATIONS --- */
@keyframes scanLine {
    0% {
        background-position: -50% 0;
    }

    100% {
        background-position: 150% 0;
    }
}

.footer-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00FFFF, transparent);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    animation: scanLine 2.5s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 20;
}

.header-scanner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00FFFF, transparent);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    animation: scanLine 2.5s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 60;
}

/* --- WHATSAPP WIDGET --- */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(57, 255, 20, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #39FF14;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 10px #39FF14;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: pulse-green 2s infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.wa-capture-card {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 300px;
    background-color: #0D0D0D;
    border: 1px solid #39FF14;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-capture-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.wa-input {
    width: 100%;
    background-color: #111;
    border: 1px solid #333;
    color: #FFFFFF !important;
    padding: 10px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.3s;
}

.wa-input:focus {
    border-color: #39FF14;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

.wa-input.error {
    border-color: #ef4444;
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Custom Input Styles for other forms (reused) */
.custom-input {
    color: #FFFFFF !important;
    background-color: #111111 !important;
    border: 1px solid #333 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-error {
    border: 1px solid #FF0000 !important;
    box-shadow: 0 0 5px #FF0000;
    animation: shake 0.3s;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    5% {
        transform: scale(1.02);
    }

    10% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.02);
    }

    20% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.animate-heartbeat {
    animation: heartbeat 2s infinite;
}

/* Desktop Slim Header Logic if needed beyond Tailwind */
.desktop-slim-header {
    /* Tailwind classes handle this mostly, adding specifics here if needed */
}

/* Logo Sizing Desktop Override if md:h-32 isn't catching due to specificity */
@media (min-width: 768px) {
    .desktop-overflow-logo {
        height: 8rem;
        /* h-32 base for tablets */
    }
}

/* Reduce logo size 50% only on desktop (>= 1024px) vs tablet base */
@media (min-width: 1024px) {
    .desktop-overflow-logo {
        height: 3.2rem;
        /* Reduced by 20% */
        margin-left: -1.5rem;
        /* Shift left */
    }
}