/* =========================================
   BALDER HERO 2
   FUTURISTIC DIGITAL EXPERIENCE
========================================= */

.balder-hero2 {
    --b2-blue: #0D4C7C;
    --b2-dark-blue: #0E364F;
    --b2-light: #35BDF5;

    position: relative;
    width: 100%;
    min-height: 680px;
    height: min(760px, 92vh);
    overflow: hidden;
    isolation: isolate;

    background: #050D17;
    color: #fff;

    display: flex;
    align-items: center;
}

.b2-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;

    background:
        radial-gradient(
            ellipse at 75% 45%,
            rgba(13,76,124,.35),
            transparent 45%
        ),
        linear-gradient(
            115deg,
            #050D17,
            #081827 55%,
            #06101B
        );
}

.b2-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image: linear-gradient(
        to right,
        transparent,
        black 30%,
        black
    );

    transform: perspective(700px) rotateX(55deg) scale(1.8);
    transform-origin: bottom;
    opacity: .5;
}

.b2-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.b2-glow-one {
    width: 450px;
    height: 450px;
    background: #0878B9;
    opacity: .20;
    top: 5%;
    right: 10%;
}

.b2-glow-two {
    width: 300px;
    height: 300px;
    background: #0D4C7C;
    opacity: .20;
    bottom: -10%;
    left: 5%;
}

#b2-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .6;
}


/* ESCENA */

.b2-scene {
    position: relative;
    width: 100%;
    max-width: 1450px;
    height: 100%;
    min-height: inherit;
    margin: auto;
    padding: 80px 8%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ESTADO */

.b2-status {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 10px;
    letter-spacing: 3px;
    color: #91AFC5;

    margin-bottom: 35px;
}

.b2-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35BDF5;
    box-shadow: 0 0 15px #35BDF5;
}


/* TITULAR */

.b2-title {
    position: relative;
    z-index: 5;
    max-width: 850px;
}

.b2-title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    overflow: visible;

    line-height: 1.05;
}

.b2-word {
    display: inline-block;
    font-size: clamp(44px, 5.5vw, 76px);
    font-weight: 600;
    letter-spacing: -3.5px;
    color: #fff;
    will-change: transform, opacity;
}

.b2-gradient {
    background: linear-gradient(
        100deg,
        #FFFFFF 0%,
        #35BDF5 50%,
        #0D4C7C 100%
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}


/* DESCRIPCIÓN */

.b2-description {
    position: relative;
    z-index: 5;

    max-width: 450px;
    margin-top: 25px;

    color: #A2B5C6;
    font-size: 15px;
    line-height: 1.8;
}


/* BOTONES */

.b2-actions {
    position: relative;
    z-index: 6;

    display: flex;
    align-items: center;
    gap: 25px;

    margin-top: 30px;
}

.b2-button-primary,
.b2-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    min-height: 48px;
    padding: 0 22px;

    text-decoration: none;
    font-size: 13px;

    transition: .3s ease;
}

.b2-button-primary {
    background: #0D4C7C;
    color: #fff;
    border: 1px solid #1874AA;
}

.b2-button-primary:hover {
    background: #168BC5;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(53,189,245,.2);
}

.b2-button-secondary {
    color: #D2E2EE;
    border: 1px solid rgba(255,255,255,.15);
}

.b2-button-secondary:hover {
    border-color: #35BDF5;
    color: #35BDF5;
}


/* NÚCLEO */

.b2-core {
    position: absolute;

    width: 430px;
    height: 430px;

    right: 8%;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 1000px;
    z-index: 2;
}

.b2-core-center {
    position: relative;
    z-index: 5;

    width: 115px;
    height: 115px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #1A6C9A,
            #0A263C 65%,
            #06111D
        );

    border: 1px solid rgba(53,189,245,.6);

    box-shadow:
        0 0 35px rgba(53,189,245,.35),
        inset 0 0 30px rgba(53,189,245,.2);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.b2-core-center span {
    font-size: 55px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.b2-core-center small {
    font-size: 9px;
    letter-spacing: 3px;
    color: #7CCEF4;
    margin-top: 6px;
}


/* ANILLOS */

.b2-core-ring {
    position: absolute;
    border: 1px solid rgba(53,189,245,.28);
    border-radius: 50%;
}

.ring-one {
    width: 180px;
    height: 180px;
}

.ring-two {
    width: 280px;
    height: 280px;
    border-style: dashed;
}

.ring-three {
    width: 400px;
    height: 400px;
    border-color: rgba(53,189,245,.12);
}


/* NODOS */

.b2-orbit-node {
    position: absolute;
    z-index: 6;

    padding: 10px 16px;

    background: rgba(7,24,39,.92);
    border: 1px solid rgba(53,189,245,.45);

    color: #A9DFF8;
    font-size: 10px;
    letter-spacing: 2px;

    box-shadow: 0 0 20px rgba(53,189,245,.12);
}

.node-web {
    top: 5%;
    left: 45%;
}

.node-ai {
    right: -2%;
    top: 48%;
}

.node-hosting {
    bottom: 6%;
    left: 34%;
}

.node-marketing {
    left: -5%;
    top: 45%;
}


/* TARJETAS */

.b2-floating-card {
    position: absolute;
    z-index: 7;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 13px 17px;

    background: rgba(8,24,39,.9);
    border: 1px solid rgba(255,255,255,.12);

    backdrop-filter: blur(15px);

    box-shadow: 0 15px 45px rgba(0,0,0,.3);
}

.b2-card-symbol {
    color: #35BDF5;
    font-size: 24px;
}

.b2-floating-card small {
    display: block;
    color: #6F94AD;
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.b2-floating-card strong {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}

.card-one {
    top: 16%;
    right: 3%;
}

.card-two {
    bottom: 19%;
    right: 0;
}

.card-three {
    bottom: 5%;
    right: 35%;
}


/* SCROLL */

.b2-scroll {
    position: absolute;
    bottom: 25px;
    left: 8%;

    display: flex;
    align-items: center;
    gap: 15px;

    color: #7793A8;
    font-size: 9px;
    letter-spacing: 2px;
}

.b2-scroll-track {
    width: 50px;
    height: 1px;
    background: rgba(53,189,245,.3);
    overflow: hidden;
}

.b2-scroll-track span {
    display: block;
    height: 100%;
    width: 50%;
    background: #35BDF5;
}


/* =========================================
   TABLETS
========================================= */

@media (max-width: 1050px) {

    .balder-hero2 {
        min-height: 650px;
        height: auto;
    }

    .b2-scene {
        padding: 100px 6% 80px;
    }

    .b2-core {
        width: 340px;
        height: 340px;
        right: 0;
        opacity: .85;
    }

    .ring-three {
        width: 320px;
        height: 320px;
    }

    .ring-two {
        width: 230px;
        height: 230px;
    }

    .b2-title {
        max-width: 650px;
    }

    .b2-word {
        font-size: clamp(42px, 6vw, 65px);
    }

    .card-one {
        right: 0;
    }

}


/* =========================================
   MÓVILES
========================================= */

@media (max-width: 650px) {

    .balder-hero2 {
        min-height: 780px;
        height: auto;
        align-items: flex-start;
    }

    .b2-scene {
        min-height: 780px;
        padding: 105px 24px 75px;
        justify-content: flex-start;
    }

    .b2-status {
        font-size: 9px;
        letter-spacing: 2px;
        margin-bottom: 27px;
    }

    .b2-title {
        width: 100%;
    }

    .b2-title-line {
        gap: 7px;
        margin-bottom: 4px;
    }

    .b2-word {
        font-size: clamp(37px, 10vw, 49px);
        letter-spacing: -2px;
        line-height: 1.05;
    }

    .b2-description {
        font-size: 13px;
        line-height: 1.7;
        margin-top: 18px;
        max-width: 340px;
    }

    .b2-actions {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 22px;
    }

    .b2-button-primary,
    .b2-button-secondary {
        min-height: 46px;
        font-size: 11px;
        padding: 0 15px;
    }

    /* NÚCLEO CENTRAL */

    .b2-core {
        position: relative;

        top: auto;
        right: auto;

        width: min(300px, 85vw);
        height: min(300px, 85vw);

        margin: 30px auto 0;

        transform: none;
    }

    .b2-core-center {
        width: 80px;
        height: 80px;
    }

    .b2-core-center span {
        font-size: 40px;
    }

    .b2-core-center small {
        font-size: 7px;
    }

    .ring-one {
        width: 125px;
        height: 125px;
    }

    .ring-two {
        width: 205px;
        height: 205px;
    }

    .ring-three {
        width: 285px;
        height: 285px;
    }

    .b2-orbit-node {
        font-size: 8px;
        padding: 7px 10px;
    }

    .node-marketing {
        left: -2%;
    }

    .node-ai {
        right: -2%;
    }

    /* TARJETAS */

    .b2-floating-card {
        display: none;
    }

    .b2-scroll {
        left: 24px;
        bottom: 22px;
        font-size: 8px;
    }

    .b2-grid {
        background-size: 35px 35px;
    }

}


/* MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

    .balder-hero2 *,
    .balder-hero2 *::before,
    .balder-hero2 *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}

/* =========================================
   BALDER HERO 2 - MÓDULOS TECNOLÓGICOS
========================================= */

.b2-core {
    overflow: visible;
}

/* MÓDULOS DE ENTRADA */

.b2-module {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    min-height: 38px;
    padding: 10px 15px;

    background: rgba(5, 20, 35, .92);
    border: 1px solid rgba(53, 189, 245, .65);

    color: #C8EDFF;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;

    box-shadow:
        0 0 15px rgba(53, 189, 245, .18),
        inset 0 0 15px rgba(53, 189, 245, .08);

    backdrop-filter: blur(12px);

    opacity: 0;
    white-space: nowrap;
    will-change: transform, opacity;
}

/* POSICIONES FINALES ALREDEDOR DEL NÚCLEO */

.module-web {
    top: 5%;
    left: 42%;
}

.module-marketing {
    top: 45%;
    left: -10%;
}

.module-ai {
    top: 18%;
    right: -5%;
}

.module-hosting {
    bottom: 5%;
    left: 35%;
}

.module-seo {
    top: 5%;
    left: 5%;
}

.module-whm {
    top: 35%;
    right: -12%;
}

.module-cpanel {
    bottom: 20%;
    right: -8%;
}

.module-aws {
    bottom: 5%;
    left: 5%;
}

.module-azure {
    top: 65%;
    left: -10%;
}

.module-email {
    top: 75%;
    right: 15%;
}

/* DOS ELEMENTOS FINALES */

.b2-final-module {
    position: absolute;
    z-index: 12;

    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 18px 24px;

    min-width: 165px;

    background: rgba(7, 28, 45, .96);
    border: 1px solid rgba(53, 189, 245, .75);

    box-shadow:
        0 0 30px rgba(53, 189, 245, .18),
        inset 0 0 20px rgba(53, 189, 245, .08);

    opacity: 0;
    visibility: hidden;
    transform: scale(.5);

    will-change: transform, opacity;
}

.b2-final-module span {
    font-size: 9px;
    color: #35BDF5;
    letter-spacing: 3px;
}

.b2-final-module strong {
    font-size: 13px;
    color: #fff;
    letter-spacing: 2px;
}

.final-development {
    top: 34%;
    left: 5%;
}

.final-marketing {
    bottom: 34%;
    right: 5%;
}

/* PANTALLAS MEDIANAS */

@media(max-width: 1050px) {

    .b2-module {
        font-size: 9px;
        min-width: 70px;
        padding: 8px 11px;
    }

    .b2-final-module {
        min-width: 145px;
        padding: 14px 17px;
    }

}

/* MÓVILES */

@media(max-width: 650px) {

    .b2-core {
        overflow: visible;
    }

    .b2-module {
        min-width: auto;
        min-height: 30px;
        padding: 7px 9px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .module-web {
        top: 0;
        left: 35%;
    }

    .module-marketing {
        top: 40%;
        left: -5%;
    }

    .module-ai {
        top: 15%;
        right: -3%;
    }

    .module-hosting {
        bottom: 0;
        left: 30%;
    }

    .module-seo {
        top: 5%;
        left: 0;
    }

    .module-whm {
        top: 35%;
        right: -8%;
    }

    .module-cpanel {
        bottom: 20%;
        right: -5%;
    }

    .module-aws {
        bottom: 5%;
        left: 0;
    }

    .module-azure {
        top: 65%;
        left: -5%;
    }

    .module-email {
        top: 75%;
        right: 0;
    }

    .b2-final-module {
        min-width: 125px;
        padding: 12px;
        gap: 5px;
    }

    .b2-final-module strong {
        font-size: 10px;
    }

    .final-development {
        top: 20%;
        left: -5%;
    }

    .final-marketing {
        bottom: 20%;
        right: -5%;
    }

}