/* ============================================
   INTENSE ANIMATED SECTION TITLES
   ============================================ */

/* All section titles get dramatic animations */
.section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #00e5ff, #8b6bff, #00e5ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.5);
    animation: titleShimmer 4s ease-in-out infinite, titleFloat 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

/* Shimmer animation */
@keyframes titleShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Float animation */
@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Glowing underline effect */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    animation: underlineGrow 3s ease-in-out infinite;
}

@keyframes underlineGrow {

    0%,
    100% {
        width: 100px;
        opacity: 0.5;
    }

    50% {
        width: 200px;
        opacity: 1;
    }
}

/* Individual section title variations */
#confianza .section-header h2 {
    animation: titleShimmer 4s ease-in-out infinite,
        titleFloat 3s ease-in-out infinite,
        titlePulse 2s ease-in-out infinite;
}

#vision .section-header h2 {
    animation: titleShimmer 3.5s ease-in-out infinite,
        titleFloat 3s ease-in-out infinite,
        titleGlitch 6s infinite;
}

#mercados .section-header h2 {
    animation: titleShimmer 3s ease-in-out infinite,
        titleFloat 3s ease-in-out infinite,
        titlePulse 2.5s ease-in-out infinite;
    text-shadow: 0 0 60px rgba(0, 229, 255, 0.7);
}

#tecnologia .section-header h2 {
    animation: titleShimmer 3.5s ease-in-out infinite,
        titleFloat 3s ease-in-out infinite,
        titleGlitch 8s infinite;
}

#resultados .section-header h2 {
    animation: titleShimmer 3s ease-in-out infinite,
        titleFloat 3s ease-in-out infinite,
        titlePulse 2s ease-in-out infinite;
    text-shadow: 0 0 80px rgba(139, 107, 255, 0.8);
}

#roadmap .section-header h2 {
    animation: titleShimmer 2.5s ease-in-out infinite,
        titleFloat 3s ease-in-out infinite,
        titleGlitch 5s infinite,
        titlePulse 2s ease-in-out infinite;
    text-shadow: 0 0 100px rgba(0, 229, 255, 0.9);
}

/* Pulse effect */
@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

/* Glitch effect */
@keyframes titleGlitch {

    0%,
    90%,
    100% {
        transform: translate(0) skew(0deg);
    }

    92% {
        transform: translate(-3px, 2px) skew(2deg);
    }

    94% {
        transform: translate(3px, -2px) skew(-2deg);
    }

    96% {
        transform: translate(-2px, 1px) skew(1deg);
    }
}

/* Subtitle animations */
.section-header p {
    animation: fadeSlideUp 1s ease 0.3s both;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Small title badge animation */
.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #00e5ff;
    margin-bottom: 16px;
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    }

    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
    }
}
