.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(135deg, 
            rgba(6, 6, 20, 0.92) 0%,
            rgba(20, 8, 50, 0.85) 30%,
            rgba(10, 15, 40, 0.70) 60%,
            rgba(20, 8, 50, 0.80) 100%
        );
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    padding: 0 16px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero .hero-container .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.hero .hero-container .badge span {
    font-weight: 900;
    color: #4fc3f7;
}

.hero .hero-container .badge i {
    color: #4fc3f7;
    font-size: 1.1rem;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.hero .hero-container h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.hero .hero-container h1 .highlight-text {
    display: inline-block;
    position: relative;
    min-width: 120px;
    vertical-align: bottom;
}

.hero .hero-container h1 .highlight-text .word-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    min-width: 100px;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word {
    display: inline-block;
    position: relative;
    opacity: 1;
    transform: none;
    animation: none;
    border-right: 3px solid #f0a050;
    padding-right: 4px;
    animation: blinkCursor 0.7s step-end infinite;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word.complete {
    border-right: none;
    animation: none;
}

.hero .hero-container .typing-cursor {
    display: none;
}

@keyframes blinkCursor {
    0%, 100% { border-color: #f0a050; }
    50% { border-color: transparent; }
}

/* Colores para palabras dinámicas */
.hero .hero-container h1 .highlight-text .word-wrapper .word.color-1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word.color-2 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word.color-3 {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word.color-4 {
    background: linear-gradient(135deg, #22c55e, #15803d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word.color-5 {
    background: linear-gradient(135deg, #ec4899, #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word.color-6 {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word.color-7 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-container h1 .highlight-text .word-wrapper .word.color-8 {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-container .dynamic-description {
    font-size: 1rem;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.hero .hero-container .dynamic-description .desc-text {
    display: block;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: none;
}

.hero .hero-container .dynamic-description .desc-text.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: descFadeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero .hero-container .dynamic-description .desc-text.exit {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    animation: descFadeOut 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes descFadeIn {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
        filter: blur(4px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.01);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes descFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
        filter: blur(4px);
    }
}

/* ==========================================
   RESPONSIVE 
   ========================================== */
@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding-top: 80px;
        height: 40vh;
    }

    .hero .hero-container {
        padding: 0 20px;
    }

    .hero .hero-container .badge {
        font-size: 0.6rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    .hero .hero-container h1 .highlight-text .word-wrapper {
        min-width: 70px;
    }

    .hero .hero-container .dynamic-description {
        font-size: 0.85rem;
        line-height: 1.6;
        min-height: 90px;
        margin-bottom: 20px;
    }

    .hero-overlay {
        background: 
            linear-gradient(135deg, 
                rgba(6, 6, 20, 0.95) 0%,
                rgba(20, 8, 50, 0.90) 25%,
                rgba(10, 15, 40, 0.80) 55%,
                rgba(20, 8, 50, 0.88) 100%
            );
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
        padding-top: 70px;
    }

    .hero .hero-container h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .hero .hero-container h1 .highlight-text .word-wrapper .word {
        font-size: 1.6rem;
        min-width: 60px;
    }

    .hero .hero-container .dynamic-description {
        font-size: 0.8rem;
        min-height: 100px;
    }

    .hero .hero-container .badge {
        font-size: 0.55rem;
        padding: 3px 10px;
    }
}

@media (max-width: 380px) {
    .hero .hero-container h1 {
        font-size: 1.4rem;
    }

    .hero .hero-container h1 .highlight-text .word-wrapper .word {
        font-size: 1.4rem;
        min-width: 50px;
    }

    .hero .hero-container .dynamic-description {
        font-size: 0.75rem;
        min-height: 110px;
    }
}