/* ============================================================
   HERO SECTION - ESTILO FINAL PREMIUM
   ============================================================ */

.hero {
    position: relative;
    padding: 230px 0 0 0;
    text-align: center;
    min-height: 125vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #000;
    overflow: hidden;
    align-items: center;
}

/* ============================================================
   CAPAS HERO CINEMÁTICAS
   ============================================================ */

.hero-layers {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;

    background:
        radial-gradient(
            ellipse 165% 72% at 50% 50%,
            rgba(90, 255, 235, 0.86) 0%,
            rgba(56, 240, 215, 0.72) 18%,
            rgba(20, 210, 185, 0.52) 36%,
            rgba(8, 135, 120, 0.34) 54%,
            rgba(3, 55, 50, 0.18) 70%,
            transparent 88%
        ),
        linear-gradient(
            180deg,
            #000000 0%,
            #020c0b 24%,
            #06302b 50%,
            #020807 100%
        );
}

.hero-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    will-change: transform;
}

/* Oscurece todo para que el negro domine */
.hero-layers::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.14) 28%,
            rgba(0, 0, 0, 0.00) 48%,
            rgba(0, 0, 0, 0.14) 72%,
            rgba(0, 0, 0, 0.62) 100%
        ),
        radial-gradient(
            ellipse 140% 70% at 50% 50%,
            transparent 0%,
            transparent 48%,
            rgba(0, 0, 0, 0.22) 76%,
            rgba(0, 0, 0, 0.52) 100%
        );
}

/* ============================================================
   MONTAÑAS
   ============================================================ */

.hero-mountains {
    z-index: 1;
    opacity: 0.7;
    transform: scale(1.05);
    filter: brightness(0.8) contrast(1.1) saturate(0.9);
    animation: mountainsFloat 12s ease-in-out infinite;
}

/* ============================================================
   ESTRELLAS
   ============================================================ */

.hero-stars {
    z-index: 5;
    opacity: 1;
    mix-blend-mode: screen;

    filter:
        brightness(1.85)
        contrast(1.25)
        saturate(1.45)
        drop-shadow(0 0 8px rgba(120, 255, 245, 0.95))
        drop-shadow(0 0 18px rgba(0, 255, 220, 0.75))
        drop-shadow(0 0 36px rgba(0, 255, 220, 0.45));

    animation:
        starsFloat 18s ease-in-out infinite,
        starsPulse 3.8s ease-in-out infinite;
}

/* ============================================================
   GLOW CENTRAL CURVO
   ============================================================ */

.hero-glow {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(1500px, 110vw);
    height: 620px;

    z-index: 3;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at center,
            rgba(72, 255, 230, 0.42) 0%,
            rgba(42, 240, 210, 0.28) 24%,
            rgba(10, 160, 140, 0.14) 44%,
            rgba(0, 80, 70, 0.05) 62%,
            transparent 78%
        );

    border-radius: 50%;
    filter: blur(55px);
    opacity: 0.95;
    animation: glowPulse 7s ease-in-out infinite;
}

.hero-glow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -42%;
    transform: translateX(-50%);

    width: 110%;
    height: 72%;

    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.82) 38%,
        rgba(0, 0, 0, 0.35) 68%,
        transparent 100%
    );

    border-radius: 50%;
    filter: blur(20px);
}

.hero-glow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28%;
    transform: translateX(-50%);

    width: 120%;
    height: 55%;

    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 210, 0.16) 0%,
        rgba(0, 160, 140, 0.08) 42%,
        transparent 78%
    );

    border-radius: 50%;
    filter: blur(26px);
}

/* ============================================================
   PERSONA FULL CANVAS
   ============================================================ */

.hero-person-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    overflow: hidden;
    pointer-events: none;
}

.hero-person {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0.95;
    mix-blend-mode: screen;

    transform: scale(1.16);

    filter:
        drop-shadow(0 0 10px rgba(255, 0, 140, 0.45))
        drop-shadow(0 0 34px rgba(255, 0, 140, 0.24))
        drop-shadow(0 0 70px rgba(0, 210, 255, 0.18));

    animation: personFloat 8s ease-in-out infinite;
    will-change: transform;
}

/* ============================================================
   LUZ AZUL SOBRE LA PERSONA
   ============================================================ */

.hero-person-energy {
    position: absolute;
    top: 25%;
    left: 73%;

    width: clamp(260px, 26vw, 470px);
    height: clamp(160px, 16vw, 300px);

    transform: translate(-50%, -50%) rotate(-8deg);

    z-index: 5;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 225, 255, 0.42) 0%,
            rgba(0, 190, 255, 0.24) 22%,
            rgba(0, 255, 220, 0.12) 46%,
            transparent 72%
        );

    border-radius: 50%;
    filter:
        blur(10px)
        drop-shadow(0 0 24px rgba(0, 215, 255, 0.55))
        drop-shadow(0 0 56px rgba(0, 255, 220, 0.25));

    opacity: 0.88;

    animation:
        energyPulse 4.5s ease-in-out infinite,
        energyDrift 9s ease-in-out infinite;
}

.hero-person-energy::before {
    content: "";
    position: absolute;
    inset: 24% 18%;
    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(185, 255, 255, 0.75) 0%,
            rgba(0, 230, 255, 0.34) 30%,
            transparent 70%
        );

    filter: blur(8px);
    opacity: 0.75;
}

.hero-person-energy::after {
    content: "";
    position: absolute;
    inset: 18% 8%;
    border-radius: 50%;

    border-top: 1px solid rgba(130, 255, 255, 0.42);
    border-left: 1px solid rgba(0, 255, 220, 0.16);
    border-right: 1px solid rgba(0, 120, 255, 0.18);

    filter:
        blur(0.4px)
        drop-shadow(0 0 12px rgba(0, 230, 255, 0.45));

    opacity: 0.85;
    animation: energyRotate 12s linear infinite;
}

/* ============================================================
   CONTENIDO
   ============================================================ */

.hero-content {
    position: relative;
    z-index: 20;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 0 20px 20px 20px;
}

.hero h1 {
    font-weight: 700;
    line-height: 1.1;
    max-width: 1100px;
    margin-bottom: 25px;
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(0, 255, 220, 0.12);
}

.hero-subtitle {
    color: var(--text-white);
    max-width: 760px;
    margin-bottom: 40px;
    opacity: 0.88;
}

.hero-btns a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #33ccbb;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--nx-dur-media) var(--nx-ease), transform var(--nx-dur-media) var(--nx-ease);
    box-shadow: 0 0 28px rgba(51, 204, 187, 0.22);
}

.btn-primary:hover {
    background: #2bb3a4;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 14px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color var(--nx-dur-media) var(--nx-ease), transform var(--nx-dur-media) var(--nx-ease);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.10);
}

.hero-mini-features {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.mini-item {
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
}

.dot {
    width: 16px;
    height: 16px;
    background-color: #00b39f;
    border-radius: 50%;
    animation: heartbeatDot 2s infinite ease-in-out;
}

/* ============================================================
   CARRUSEL DE BADGES INFINITO
   ============================================================ */

.hero-badges-carousel {
    position: relative;
    z-index: 20;
    width: 80%;
    overflow: hidden;
    padding: 0;
    margin-top: auto;
    margin-bottom: 40px;
}

.hero-badges-carousel::before,
.hero-badges-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.hero-badges-carousel::before {
    left: 0;
    background: linear-gradient(90deg, #000 0%, transparent 100%);
}

.hero-badges-carousel::after {
    right: 0;
    background: linear-gradient(270deg, #000 0%, transparent 100%);
}

.hero-badges-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;

    animation: badgeScroll 20s linear infinite;

    will-change: transform;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.bar-badge {
    display: flex;
    width: auto;
    padding: 14px 0;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-radius: 48px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.01) 52%,
            rgba(255, 255, 255, 0.10) 100%
        );

    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 15px 30px -15px rgba(0, 0, 0, 0.75),
        inset 0 -12px 20px rgba(255, 255, 255, 0.035);

    overflow: hidden;
}

.badge-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 34px;
    width: 100%;
}

.bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.bar-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.bar-badge p {
    color: #ffffff;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */

@keyframes badgeScroll {
    0% {
        transform: translate3d(0,0,0);
    }

    100% {
        transform: translate3d(-50%,0,0);
    }
}

@keyframes mountainsFloat {
    0% {
        transform: scale(1.05) translateY(0px);
    }

    50% {
        transform: scale(1.075) translateY(-8px);
    }

    100% {
        transform: scale(1.05) translateY(0px);
    }
}

@keyframes starsFloat {
    0% {
        transform: scale(1.01) translateY(0px) translateX(0px);
    }

    50% {
        transform: scale(1.03) translateY(-12px) translateX(8px);
    }

    100% {
        transform: scale(1.01) translateY(0px) translateX(0px);
    }
}

@keyframes starsPulse {
    0% {
        opacity: 0.82;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.82;
    }
}

@keyframes personFloat {
    0% {
        transform: scale(1.16) translateY(0px);
    }

    50% {
        transform: scale(1.18) translateY(-12px);
    }

    100% {
        transform: scale(1.16) translateY(0px);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.72;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.98;
        transform: translate(-50%, -50%) scale(1.08);
    }

    100% {
        opacity: 0.72;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes energyPulse {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -50%) rotate(-8deg) scale(1);
    }

    50% {
        opacity: 0.95;
        transform: translate(-50%, -50%) rotate(-8deg) scale(1.12);
    }

    100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) rotate(-8deg) scale(1);
    }
}

@keyframes energyDrift {
    0% {
        margin-top: 0;
        margin-left: 0;
    }

    50% {
        margin-top: -8px;
        margin-left: 12px;
    }

    100% {
        margin-top: 0;
        margin-left: 0;
    }
}

@keyframes energyRotate {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes heartbeatDot {
    0% {
        background-color: #00b39f;
        transform: scale(1);
    }

    45% {
        background-color: #ffffff;
        transform: scale(1.18);
    }

    60% {
        background-color: #ffffff;
        transform: scale(1.05);
    }

    100% {
        background-color: #00b39f;
        transform: scale(1);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
.hero-badges-track {
        animation-duration: 20s;
    }

    .hero-glow {
        width: 900px;
        height: 390px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 170px;
        min-height: 125vh;
    }

    .hero-layers {
        top: 70px;
    }
.hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-mini-features {
        flex-direction: column;
        gap: 10px;
    }

    .hero-glow {
        top: 55%;
        width: 720px;
        height: 320px;
        opacity: 0.78;
    }

    .hero-person {
        opacity: 0.72;
        animation: personFloatMobile 8s ease-in-out infinite;
    }

    .hero-person-energy {
        top: 29%;
        left: 72%;
        width: 250px;
        height: 170px;
        opacity: 0.72;
    }

    .hero-stars {
        opacity: 0.75;
    }

    .hero-badges-carousel {
        width: 100%;
        padding: 35px 0;
    }

    .hero-badges-carousel::before,
    .hero-badges-carousel::after {
        width: 60px;
    }

    .hero-badges-track {
        gap: 16px;
        animation-duration: 20s;
    }

    .bar-badge {
        border-radius: 32px;
        padding: 12px 0;
    }

    .badge-inner {
        padding: 0 24px;
        gap: 10px;
    }

    .bar-icon,
    .bar-icon img {
        width: 24px;
        height: 24px;
    }
}

@keyframes personFloatMobile {
    0% {
        transform: scale(1.25) translateY(0px);
    }

    50% {
        transform: scale(1.27) translateY(-10px);
    }

    100% {
        transform: scale(1.25) translateY(0px);
    }
}

