/* =========================================== */
/*      MEJORAS VISUALES - FEBRERO 2026        */
/* =========================================== */

/* 1. MESH GRADIENT ANIMADO (HERO) */
.hero {
    position: relative;
    overflow: hidden;
    /* Asegura que el fondo no se salga */
}

.hero-mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Detrás del contenido */
    background:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);
    filter: blur(40px);
    opacity: 0.6;
    animation: meshFlow 10s ease-in-out infinite alternate;
}

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

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

/* 2. EFECTO TYPEWRITER */
.typewriter-text {
    display: inline-block;
    color: #8b5cf6;
    /* Violeta vibrante */
    font-weight: 800;
    position: relative;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #8b5cf6;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 3. ELEMENTOS FLOTANTES 3D */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2));
    bottom: 30%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shape-3 {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    top: 60%;
    left: 20%;
    animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

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

/* Asegurar que el contenido del hero esté por encima del fondo */
.hero .container {
    position: relative;
    z-index: 2;
}