/* =========================================================
   35 HISTORIAS — COLFUTURO
   STYLES.CSS
   ---------------------------------------------------------
   ESTILOS GLOBALES DEL SITIO
   ---------------------------------------------------------
   IMPORTANTE:
   Este archivo contiene únicamente los estilos base.
   Todo el responsive se encuentra en:

   css/mediaqueries.css
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    background: #000000;
    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   MAIN
   ---------------------------------------------------------
   El header inicial mide 86px.
========================================================= */

main {
    padding-top: 86px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed !important;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: 86px;

    z-index: 9999;

    background: #000000 !important;

    transition:
        height 0.35s ease,
        box-shadow 0.35s ease;
}


.site-header .header-inner {
    width: 100%;
    max-width: 1280px;
    height: 86px;

    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;

    transition:
        height 0.35s ease;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    color: inherit;
    text-decoration: none;
}


.logo img,
.site-header .logo img {
    display: block;

    width: 200px;
    height: auto;

    transition:
        width 0.35s ease;
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

.main-nav,
.site-header .main-nav {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 100px;
    margin-left: 220px;

    transition:
        gap 0.35s ease,
        margin-left 0.35s ease;
}


.main-nav a,
.site-header .main-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;

    height: 86px;

    color: #ffffff;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 16px;
    font-weight: 400;

    line-height: 1;
    letter-spacing: 0.02em;

    text-decoration: none;
    white-space: nowrap;

    transition:
        color 0.3s ease,
        height 0.35s ease;
}


/* =========================================================
   ROLLOVER MENÚ
========================================================= */

.main-nav a::after,
.site-header .main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 22px;

    height: 2px;

    background: #ab3050;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform 0.35s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.main-nav a:hover,
.site-header .main-nav a:hover {
    color: #ab3050;
    text-decoration: none;
}


.main-nav a:hover::after,
.main-nav a.active::after,
.site-header .main-nav a:hover::after,
.site-header .main-nav a.active::after {
    transform: scaleX(1);
}


/* =========================================================
   HEADER COMPACTO
   ---------------------------------------------------------
   El cambio lo controla componentes.js
========================================================= */

.site-header.header-compact {
    height: 60px !important;

    background: #000000 !important;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.30);
}


.site-header.header-compact .header-inner {
    height: 60px !important;
}


.site-header.header-compact .logo img {
    width: 160px !important;
}


.site-header.header-compact .main-nav {
    gap: 75px;
    margin-left: 190px;
}


.site-header.header-compact .main-nav a {
    height: 60px !important;
    font-size: 15px;
}


.site-header.header-compact .main-nav a::after {
    bottom: 13px !important;
}


/* =========================================================
   MENÚ HAMBURGUESA
   ---------------------------------------------------------
   El comportamiento responsive se define en
   mediaqueries.css.
========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;
    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 5px auto;

    background: #ffffff;
}


/* =========================================================
   GALERÍA
========================================================= */

.historias {
    position: relative;

    width: 100%;

    background: #000000;

    overflow: hidden;
}


.historias-stage {
    position: relative;

    width: 100%;

    background: #000000;

    overflow: hidden;
}


.historias-viewport {
    position: relative;

    width: 100%;

    overflow: hidden;
}


/* =========================================================
   GRID HISTORIAS
========================================================= */

.historias-grid {
    display: flex;
    flex-direction: row;

    width: max-content;
    height: 340px;

    transform:
        translate3d(0, 0, 0);

    will-change: transform;
}


/* =========================================================
   HISTORIA
========================================================= */

.historia {
    position: relative;

    display: block;

    flex:
        0 0 6.25vw;

    width:
        6.25vw;

    height: 340px;

    min-width: 0;

    overflow: hidden;

    background: #111111;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.15);

    cursor: pointer;

    color: inherit;
    text-decoration: none;

    transition:
        flex-basis 0.7s
        cubic-bezier(0.22, 1, 0.36, 1),
        width 0.7s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.historia:link,
.historia:visited,
.historia:hover,
.historia:active {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   IMAGEN
========================================================= */

.historia-imagen {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    filter:
        grayscale(100%);

    opacity: 0.72;

    transform:
        scale(1.01);

    transition:
        filter 0.7s ease,
        opacity 0.7s ease,
        transform 1s
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   OVERLAY
========================================================= */

.historia-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.10) 40%,
            rgba(0, 0, 0, 0.82) 100%
        );

    transition:
        background 0.6s ease;
}


/* =========================================================
   CONTENIDO HISTORIA
========================================================= */

.historia-contenido {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    padding:
        20px
        10px;

    display: flex;
    flex-direction: column;

    justify-content: flex-end;
    align-items: flex-start;

    overflow: hidden;

    pointer-events: none;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.historia-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity 0.45s ease 0.15s,
        transform 0.6s ease 0.1s;
}


/* =========================================================
   NÚMERO
========================================================= */

.historia-numero {
    position: absolute;

    top: 25px;
    left: 25px;

    color:
        rgba(255, 255, 255, 0.12);

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: 100;

    line-height: 1;
    letter-spacing: 0.08em;

    opacity: 0.8;
}


/* =========================================================
   NOMBRE
========================================================= */

.historia-nombre {
    margin:
        0 0 14px;

    color: #ffffff;

    font-family:
        "Crimson Text",
        Georgia,
        serif;

    font-size: 26px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: -0.01em;

    white-space: normal;

    text-decoration: none;
}


/* =========================================================
   TAG
========================================================= */

.historia-tag {
    display: inline-flex;
    align-items: center;

    padding:
        7px
        11px;

    margin-bottom: 17px;

    background: #f5d547;

    color: #000000;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 10px;
    line-height: 1;
    font-weight: 500;

    letter-spacing: 0.01em;

    white-space: nowrap;

    border-radius: 5px;
}


/* =========================================================
   LINK
========================================================= */

.historia-link {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #fe0202;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;

    text-decoration: none;
    white-space: nowrap;

    pointer-events: none;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}


.historia .historia-nombre,
.historia .historia-tag,
.historia .historia-link,
.historia .historia-link span {
    text-decoration: none;
}


/* =========================================================
   FLECHA
========================================================= */

.historia-link span {
    font-size: 18px;
    line-height: 1;

    color: inherit;

    transition:
        transform 0.25s ease;
}


/* =========================================================
   ZONA ACTIVA
========================================================= */

.historia.is-active-zone {
    cursor: pointer;
}


.historia.is-active-zone:hover {
    flex-basis: 14vw;
    width: 18vw;
    z-index: 50;
}

.historia.is-active-zone:hover
.historia-imagen {
    filter:
        grayscale(0%);

    opacity: 1;

    transform:
        scale(1.04);
}


.historia.is-active-zone:hover
.historia-overlay {
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.05) 35%,
            rgba(0, 0, 0, 0.88) 100%
        );
}


.historia.is-active-zone:hover
.historia-info {
    opacity: 1;

    transform:
        translateY(0);
}


.historia:hover
.historia-link {
    color: #f5d547;

    gap: 14px;
}


.historia:hover
.historia-link span {
    color: #f5d547;

    transform:
        translateX(4px);
}


/* =========================================================
   HISTORIAS FUERA DE ZONA
========================================================= */

.historia:not(.is-active-zone) {
    cursor: default;
}


.historia:not(.is-active-zone)
.historia-imagen {
    filter:
        grayscale(100%);

    opacity: 0.55;
}


/* =========================================================
   DEGRADADOS LATERALES
========================================================= */

.fade-left,
.fade-right {
    position: absolute;

    top: 0;
    bottom: 0;

    width:
        max(
            0px,
            calc(
                (100% - 1280px) / 2
            )
        );

    z-index: 10;

    pointer-events: none;
}


.fade-left {
    left: 0;

    background:
        linear-gradient(
            to right,
            #000000 0%,
            #000000 18%,
            rgba(0, 0, 0, 0.98) 38%,
            rgba(0, 0, 0, 0.85) 55%,
            rgba(0, 0, 0, 0.45) 78%,
            rgba(0, 0, 0, 0) 100%
        );
}


.fade-right {
    right: 0;

    background:
        linear-gradient(
            to left,
            #000000 0%,
            #000000 18%,
            rgba(0, 0, 0, 0.98) 38%,
            rgba(0, 0, 0, 0.85) 55%,
            rgba(0, 0, 0, 0.45) 78%,
            rgba(0, 0, 0, 0) 100%
        );
}


/* =========================================================
   BOTONES GALERÍA
========================================================= */

.galeria-prev,
.galeria-next {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 100;

    width: 52px;
    height: 52px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.78);

    color: #ffffff;

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

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.galeria-prev {
    left: 18px;
}


.galeria-next {
    right: 18px;
}


.galeria-prev:hover,
.galeria-next:hover {
    background: #ab3050;

    transform:
        translateY(-50%)
        scale(1.08);
}


/* =========================================================
   INDICADOR HISTORIAS
========================================================= */

.historias-indicador {
    width: 100%;
    max-width: 1280px;
    height: 32px;

    margin: 0 auto;

    padding:
        12px
        30px
        0;

    background: #000000;
}


.historias-indicador-lineas {
    width: 100%;
    height: 4px;

    display: flex;
    align-items: center;

    gap: 3px;
}


.historia-indicador {
    flex: 1;

    height: 2px;

    background:
        rgba(255, 255, 255, 0.35);

    cursor: pointer;

    transition:
        background 0.35s ease,
        height 0.35s ease,
        transform 0.35s ease;
}


.historia-indicador.active {
    height: 4px;

    background: #ab3050;
}


.historia-indicador:hover {
    background:
        rgba(255, 255, 255, 0.75);

    transform:
        scaleY(1.5);
}


.historia-indicador.active:hover {
    background: #ab3050;
}


/* =========================================================
   INDICADOR DE SCROLL — MOUSE
========================================================= */

.scroll-indicador {
    position: fixed;

    right: 8px;
    bottom: 30px;

    z-index: 2000;

    width: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

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

    opacity: 0.9;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.scroll-indicador img {
    display: block;

    width: 100%;
    height: auto;

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


.scroll-indicador:hover {
    opacity: 1;

    transform:
        translateY(-4px);
}


/* =========================================================
   ANIMACIÓN MOUSE
========================================================= */

@keyframes mouseScroll {

    0% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(7px);
    }

    100% {
        transform:
            translateY(0);
    }

}


/* =========================================================
   FOCUS MOUSE
========================================================= */

.scroll-indicador:focus-visible {
    outline:
        2px solid
        #ffffff;

    outline-offset: 5px;
}


/* =========================================================
   INTRO
========================================================= */

.intro-franja {
    width: 100%;
    max-width: 1280px;

    min-height: 115px;

    margin: 0 auto;

    padding:
        25px
        80px;

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

    background: #000000;

    text-align: center;
}


.intro-texto {
    max-width: 990px;

    margin: 0;

    color: #ffffff;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}


/* =========================================================
   ARTÍCULO HOME
========================================================= */

.articulo-franja {
    width: 100%;
    max-width: 1280px;

    min-height: 310px;

    margin: 0 auto;

    display: flex;
    flex-direction: row;
    align-items: stretch;

    background: #ffffff;

    overflow: hidden;
}


.articulo-contenido {
    position: relative;

    z-index: 2;

    width: 40%;

    padding:
        32px
        35px
        32px
        50px;

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

    background: #ffffff;
}


.articulo-kicker {
    display: block;

    margin-bottom: 7px;

    color: #fe0202;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;

    text-transform: uppercase;
}


.articulo-titulo {
    position: relative;

    margin: 0;
    padding-bottom: 14px;

    color: #000000;

    font-family:
        "Crimson Text",
        Georgia,
        serif;

    font-size: 34px;
    line-height: 0.96;
    font-weight: 600;
}


.articulo-titulo::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 62px;
    height: 3px;

    background: #fe0202;
}


.articulo-texto {
    max-width: 405px;

    margin:
        16px
        0
        17px;

    color: #444444;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.45;
}


.articulo-texto strong {
    color: #333333;
    font-weight: 600;
}


.articulo-boton {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    min-width: 135px;
    height: 27px;

    padding:
        0
        9px;

    border:
        1px solid
        #fe0202;

    background: #ffffff;

    color: #fe0202;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 12px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        gap 0.3s ease;
}


.articulo-flecha {
    font-size: 17px;
    line-height: 1;

    transition:
        transform 0.3s ease;
}


.articulo-boton:hover {
    background: #0057b8;
    border-color: #0057b8;
    color: #ffffff;

    gap: 30px;
}


.articulo-boton:hover
.articulo-flecha {
    transform:
        translateX(4px);
}


.articulo-boton:focus-visible {
    outline:
        2px solid
        #000000;

    outline-offset: 4px;
}


.articulo-foto {
    position: relative;

    width: 60%;
    min-height: 310px;

    overflow: hidden;
}


.articulo-imagen {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transition:
        transform 0.8s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.articulo-foto:hover
.articulo-imagen {
    transform:
        scale(1.15);
}


/* =========================================================
   CIFRAS
========================================================= */

.cifras-franja {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    background: #333333;

    color: #ffffff;
}


.cifras-contenedor {
    width: 100%;

    padding:
        15px
        30px
        13px;
}


.cifras-titulo {
    margin:
        0
        0
        25px;

    color: #ff0000;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;

    text-align: center;
    text-transform: uppercase;
}


.cifras-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}


.cifra {
    min-height: 125px;

    padding:
        13px
        24px
        2px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    border-left:
        1px solid
        rgba(255, 255, 255, 0.45);
}


.cifra:first-child {
    border-left: 0;
}


.cifra-numero {
    color: #ffffff;

    font-family:
        "Crimson Text",
        Georgia,
        serif;

    font-size: 43px;
    line-height: 1;
    font-weight: 600;
}


.cifra-numero-secundario {
    margin-top: 4px;
}


.cifra-nombre {
    margin-top: 3px;

    color: #ffffff;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 17px;
    line-height: 1.15;
}


.cifra-descripcion {
    max-width: 215px;

    margin:
        13px
        0
        0;

    color: #ffffff;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 12px;
    line-height: 1.35;
}


.cifra:nth-child(3)
.cifra-descripcion {
    margin-top: 9px;
}


/* =========================================================
   WHATSAPP
========================================================= */

.compartir-whatsapp svg {
    display: block;

    width: 17px;
    height: 17px;

    fill: currentColor;
}


/* =========================================================
   FOCUS GLOBAL
========================================================= */

.galeria-prev:focus-visible,
.galeria-next:focus-visible,
.menu-toggle:focus-visible,
.main-nav a:focus-visible,
.historia:focus-visible,
.historia-indicador:focus-visible {
    outline:
        2px solid
        #ffffff;

    outline-offset: 4px;
}


/* =========================================================
   FOOTER
   ---------------------------------------------------------
   El footer ocupa siempre el 100% del ancho.
   El contenido interior se limita a 1280px.
========================================================= */

#footer {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


.site-footer {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    background: #000000;
    color: #ffffff;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;
}


.footer-inner {
    width: 100%;
    max-width: 1280px;

    min-height: 245px;

    margin: 0 auto;

    padding:
        42px
        50px
        38px;

    display: grid;

    grid-template-columns:
        1.2fr
        1.2fr
        1.2fr;

    column-gap: 70px;

    align-items: start;
}


.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


.footer-logo {
    display: block;

    width: 145px;

    margin-bottom: 18px;

    text-decoration: none;
}


.footer-logo img {
    display: block;

    width: 100%;
    height: auto;
}


.footer-descripcion {
    max-width: 250px;

    margin:
        0
        0
        22px;

    color: #686868;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 12px;
    line-height: 1.5;

    text-align: center;
}


.footer-redes {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
}


.footer-red {
    width: 25px;
    height: 25px;

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

    text-decoration: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


.footer-red img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.footer-red:hover {
    transform:
        translateY(-3px);

    opacity: 0.7;
}


.footer-titulo {
    margin:
        5px
        0
        18px;

    color: #ffffff;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


.footer-texto {
    margin:
        0
        0
        13px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 10px;
    line-height: 1.6;
}


.footer-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 10px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 13px;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.footer-link:hover {
    color: #0057b8;
}


.footer-link-flecha {
    margin-left: 7px;

    font-size: 15px;
    line-height: 1;

    transition:
        transform 0.3s ease;
}


.footer-whatsapp:hover
.footer-link-flecha {
    transform:
        translateX(4px);
}


/* =========================================================
   BARRA INFERIOR DEL FOOTER
   ---------------------------------------------------------
   El fondo y el borde ocupan 100% de la pantalla.
   El contenido se limita a 1280px.
========================================================= */

.footer-bottom {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    background: #000000;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.18);
}


.footer-bottom-inner {
    width: 100%;
    max-width: 1280px;

    min-height: 50px;

    margin: 0 auto;

    padding:
        0
        50px;

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

    gap: 28px;
}


.footer-bottom p,
.footer-bottom a {
    color:
        rgba(255, 255, 255, 0.45);

    font-size: 10px;
    line-height: 1.4;

    text-decoration: none;
}


.footer-bottom a:hover {
    color: #0057b8;
}


/* =========================================================
   FOCUS FOOTER
========================================================= */

.footer-logo:focus-visible,
.footer-red:focus-visible,
.footer-link:focus-visible,
.footer-bottom a:focus-visible {
    outline:
        2px solid
        #ffffff;

    outline-offset: 4px;
}


/* =========================================================
   REDUCIR MOVIMIENTO
   ---------------------------------------------------------
   Preferencia de accesibilidad.
   No contiene reglas responsive.
========================================================= */

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

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition: none !important;
    }


    .scroll-indicador img {
        animation: none;
    }

}