/* CSS CUSTOMIZADO POR CENTRO INFORMÁTICO MILLENIUM */
/* Custom Font: NetZero (Pesos 300, 700 y 900) */

/* Regular / Light */
@font-face {
    font-family: "NetZero";
    src: url("../fonts/NetZero_Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
}

/* Medium */
@font-face {
    font-family: "NetZero";
    src: url("../fonts/NetZero_Medium.otf") format("opentype");
    font-style: normal;
    font-weight: 600;
}

/* Black */
@font-face {
    font-family: "NetZero";
    src: url("../fonts/NetZero_Black.otf") format("opentype");
    font-style: normal;
    font-weight: 900;
}

#millenium-hero {
    --mouse-x: 0;
    --mouse-y: 0;

    position: relative;
    overflow: hidden;
    min-height: 86vh;
    isolation: isolate;
}
#millenium-hero > .uk-section {
    position: absolute !important;
    inset: 0;

    width: 100%;
    min-height: 86vh !important;

    background-size: cover !important;
    background-position: center center !important;

    z-index: 0;

    transform: scale(1.04);
    will-change: transform;
}

#millenium-hero .millenium-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;
    pointer-events: none;

    background:

        /* NEGRO SUPERIOR PARA EL MENÚ */
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .72) 0%,
            rgba(0, 0, 0, .46) 11%,
            rgba(0, 0, 0, .22) 22%,
            rgba(0, 0, 0, .06) 33%,
            rgba(0, 0, 0, 0) 42%
        ),

        /* APOYO VISUAL IZQUIERDO */
        linear-gradient(
            90deg,
            rgba(14, 30, 38, .52) 0%,
            rgba(14, 30, 38, .30) 20%,
            rgba(14, 30, 38, .10) 38%,
            rgba(14, 30, 38, 0) 58%
        ),

        /* PROFUNDIDAD INFERIOR */
        linear-gradient(
            180deg,
            rgba(12, 24, 31, 0) 55%,
            rgba(12, 24, 31, .08) 75%,
            rgba(12, 24, 31, .22) 100%
        );
}

#millenium-hero .millenium-bg-word {
    position: absolute;

    left: 50%;
    top: 43%;

    z-index: 3;

    transform:
        translate(
            calc(-50% + var(--mouse-x) * 22px),
            calc(-50% + var(--mouse-y) * 12px)
        );

    font-family: inherit;
    font-size: clamp(150px, 20vw, 380px);
    font-weight: 800;
    line-height: .75;
    letter-spacing: -.07em;

    white-space: nowrap;

    color: transparent;

    -webkit-text-stroke:
        1px rgba(255, 255, 255, .22);

    opacity: .9;

    pointer-events: none;
    will-change: transform;
}

#millenium-hero .millenium-content {
    position: absolute;

    left: clamp(34px, 7vw, 120px);
    top: 50%;

    width: min(760px, 52vw);

    z-index: 5;

    transform:
        translateY(-50%)
        translate3d(
            calc(var(--mouse-x) * 6px),
            calc(var(--mouse-y) * 4px),
            0
        );

    color: #fff;
    will-change: transform;
}

#millenium-hero .millenium-title {
    margin: 0;

    font-family: inherit;
    font-size: clamp(58px, 7vw, 118px);
    font-weight: 700;

    line-height: .9;
    /*letter-spacing: -.05em;*/

    color: #fff;

    text-shadow:
        0 12px 36px rgba(0, 0, 0, .18);
}


#millenium-hero .millenium-title span {
    display: block;
}

#millenium-hero .millenium-scroll {
    position: absolute;

    left: 50%;
    bottom: 54px;

    transform: translateX(-50%);

    z-index: 6;

    width: 24px;
    height: 38px;

    border: 1.5px solid rgba(255,255,255,.68);
    border-radius: 20px;
}


#millenium-hero .millenium-scroll::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 7px;

    transform: translateX(-50%);

    width: 4px;
    height: 8px;

    border-radius: 10px;

    background:
        rgba(255,255,255,.92);

    animation:
        milleniumScrollDot 1.8s ease-in-out infinite;
}

#millenium-hero .millenium-bottom {
    position: absolute;

    left: -2%;
    bottom: -1px;

    width: 104%;
    height: clamp(68px, 7vw, 110px);

    z-index: 8;

    background: #fff;

    clip-path: polygon(
        0 62%,
        22% 62%,
        36% 70%,
        50% 100%,
        64% 70%,
        78% 62%,
        100% 62%,
        100% 100%,
        0 100%
    );

    pointer-events: none;
}

@keyframes milleniumScrollDot {

    0% {
        opacity: 0;
        transform:
            translateX(-50%)
            translateY(0);
    }

    20% {
        opacity: 1;
    }

    70% {
        opacity: 1;
        transform:
            translateX(-50%)
            translateY(12px);
    }

    100% {
        opacity: 0;
        transform:
            translateX(-50%)
            translateY(14px);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    #millenium-hero .millenium-content {
        width: 58vw;
    }

    #millenium-hero .millenium-bg-word {
        font-size: 22vw;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    #millenium-hero {
        min-height: 92svh;
    }

    #millenium-hero > .uk-section {
        min-height: 92svh !important;

        background-position:
            54% center !important;

        transform:
            scale(1.02);
    }

    #millenium-hero .millenium-overlay {
        background:

            linear-gradient(
                180deg,
                rgba(0,0,0,.72) 0%,
                rgba(0,0,0,.42) 14%,
                rgba(0,0,0,.12) 30%,
                rgba(0,0,0,0) 42%
            ),

            linear-gradient(
                90deg,
                rgba(14,30,38,.50) 0%,
                rgba(14,30,38,.25) 50%,
                rgba(14,30,38,0) 100%
            );
    }

    #millenium-hero .millenium-bg-word {
        top: 39%;

        font-size: 25vw;

        -webkit-text-stroke:
            1px rgba(255,255,255,.16);
    }

    #millenium-hero .millenium-content {
        left: 7vw;
        top: 50%;

        width: 86vw;

        transform:
            translateY(-50%);
    }

    #millenium-hero .millenium-title {
        font-size:
            clamp(46px, 13vw, 74px);

        line-height: .92;
    }

    #millenium-hero .millenium-bottom {
        height: 64px;
    }

    #millenium-hero .millenium-scroll {
        bottom: 40px;
    }
}

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

    #millenium-hero *,
    #millenium-hero *::before,
    #millenium-hero *::after {
        animation: none !important;
        transition: none !important;
    }

    #millenium-hero .millenium-content {
        transform:
            translateY(-50%);
    }

    #millenium-hero .millenium-bg-word {
        transform:
            translate(-50%, -50%);
    }

    #millenium-hero > .uk-section {
        transform:
            none;
    }
}
/* =========================================================
   MILLENIUM CORTA
   Transición PNG entre ACCIONES y NOTICIAS
   =========================================================

   IMPORTANTE:
   La sección de Noticias también se llama .millenium-bottom,
   pero el HERO tiene internamente otro .millenium-bottom.

   Por eso NUNCA usamos aquí:
       .millenium-bottom { ... }

   Utilizamos:
       #tm-main > .millenium-bottom

   que identifica exclusivamente la sección de Noticias.
   ========================================================= */


/* =========================================================
   1. SECCIÓN SUPERIOR: ACCIONES
   ========================================================= */

#tm-main > .millenium-top {
    position: relative !important;
    z-index: 1;

    overflow: visible !important;
}


/* =========================================================
   2. SECCIÓN INFERIOR: NOTICIAS
   ========================================================= */

#tm-main > .millenium-bottom {
    position: relative !important;
    z-index: 1;

    overflow: visible !important;
}


/* =========================================================
   3. SECCIÓN PNG
   ========================================================= */

#tm-main > .millenium-corta {

    /*
     * Proporción original:
     * 2560 × 977
     */
    --corta-ratio: 0.381640625;

    /*
     * Ancho visual del PNG
     */
    --corta-image-width: 103vw;

    /*
     * Desplazamiento horizontal.
     *
     * positivo = paisaje hacia la derecha
     * negativo = paisaje hacia la izquierda
     */
    --corta-x: 0vw;

    /*
     * Solapamiento con Acciones
     */
    --corta-top-shift: -10vw;

    /*
     * Solapamiento con Noticias
     */
    --corta-bottom-shift: -7vw;


    position: relative !important;

    width: 100% !important;
    max-width: none !important;

    height:
        calc(
            var(--corta-image-width)
            * var(--corta-ratio)
        ) !important;

    min-height: 0 !important;

    margin-top:
        var(--corta-top-shift) !important;

    margin-bottom:
        var(--corta-bottom-shift) !important;

    padding: 0 !important;

    background: #efefef !important;
    background-color: #efefef !important;

    z-index: 20;

    /*
     * Recortamos únicamente lo que sobresalga
     * horizontalmente.
     */
    overflow-x: clip;
    overflow-y: visible;

    /*
     * El PNG no debe bloquear clics de los elementos
     * que quedan visualmente detrás de su transparencia.
     */
    pointer-events: none;
}


/* =========================================================
   4. ELIMINAR PADDING DE UK-SECTION
   ========================================================= */

#tm-main > .millenium-corta.uk-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* =========================================================
   5. GRID GENERADO POR YOOTHEME
   ========================================================= */

#tm-main > .millenium-corta > .uk-grid {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Columna */
#tm-main > .millenium-corta
> .uk-grid
> [class*="uk-width"] {

    position: static !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   6. WRAPPER DEL ELEMENTO IMAGE
   ========================================================= */

#tm-main > .millenium-corta .uk-margin {
    position: static !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


#tm-main > .millenium-corta .uk-grid-margin {
    margin-top: 0 !important;
}


/* =========================================================
   7. PICTURE
   ========================================================= */

#tm-main > .millenium-corta picture {
    position: absolute;

    top: 0;
    left: 50%;

    display: block;

    width: var(--corta-image-width);

    max-width: none !important;

    /*
     * Aquí controlamos el encuadre horizontal.
     */
    transform:
        translateX(
            calc(
                -50% + var(--corta-x)
            )
        );

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   8. PNG
   ========================================================= */

#tm-main > .millenium-corta .el-image {
    display: block;

    width: 100% !important;
    height: auto !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   9. PANTALLAS MUY GRANDES
   1600px+
   ========================================================= */

@media (min-width: 1600px) {

    #tm-main > .millenium-corta {

        /*
         * Un poco más grande que el viewport:
         * evita que aparezca el pequeño borde blanco
         * lateral por redondeos/subpíxeles.
         */
        --corta-image-width: 104vw;

        --corta-x: 0vw;

        --corta-top-shift: -10vw;

        /*
         * Más penetración en Noticias para ocultar
         * el pequeño blanco inferior izquierdo.
         */
        --corta-bottom-shift: -8.2vw;
    }
}


/* =========================================================
   10. DESKTOP / LAPTOP
   1200 - 1599
   ========================================================= */

@media
(min-width: 1200px)
and
(max-width: 1599px) {

    #tm-main > .millenium-corta {

        --corta-image-width: 104vw;

        --corta-x: 0vw;

        --corta-top-shift: -10vw;

        --corta-bottom-shift: -7.8vw;
    }
}


/* =========================================================
   11. LAPTOP PEQUEÑO / TABLET HORIZONTAL
   960 - 1199
   ========================================================= */

@media
(min-width: 960px)
and
(max-width: 1199px) {

    #tm-main > .millenium-corta {

        --corta-image-width: 112vw;

        /*
         * Desplazamos ligeramente el PNG hacia la derecha.
         */
        --corta-x: 2vw;

        --corta-top-shift: -10.5vw;

        --corta-bottom-shift: -7.5vw;
    }
}


/* =========================================================
   12. TABLET
   640 - 959
   ========================================================= */

@media
(min-width: 640px)
and
(max-width: 959px) {

    #tm-main > .millenium-corta {

        /*
         * El tamaño que ya funcionaba bien.
         */
        --corta-image-width: 130vw;

        /*
         * Aquí hacemos exactamente el ajuste solicitado:
         * metemos los molinos algo más dentro del viewport.
         */
        --corta-x: 6vw;

        --corta-top-shift: -11vw;

        --corta-bottom-shift: -8vw;
    }
}


/* =========================================================
   13. MÓVIL
   421 - 639
   ========================================================= */

@media
(min-width: 421px)
and
(max-width: 639px) {

    #tm-main > .millenium-corta {

        /*
         * En móvil ampliamos más el PNG.
         */
        --corta-image-width: 155vw;

        /*
         * Movimiento importante hacia la derecha
         * para introducir los molinos en pantalla.
         */
        --corta-x: 16vw;

        --corta-top-shift: -12vw;

        --corta-bottom-shift: -9vw;
    }
}


/* =========================================================
   14. MÓVIL ESTRECHO
   <= 420
   ========================================================= */

@media (max-width: 420px) {

    #tm-main > .millenium-corta {

        /*
         * No ampliamos demasiado porque queremos
         * conservar los molinos visibles.
         */
        --corta-image-width: 160vw;

        /*
         * Desplazamiento mayor hacia la derecha.
         */
        --corta-x: 21vw;

        --corta-top-shift: -12vw;

        --corta-bottom-shift: -10vw;
    }
}