/* Base mínimo para el módulo Hotspots Away (portable) */

@font-face {
    font-family: "adidasFG";
    font-style: normal;
    font-weight: 400;
    src:
        url("../fonts/adidasfg/adidasfg_compressed.woff2") format("woff2"),
        url("../fonts/adidasfg/adidasfg_compressed.woff") format("woff"),
        url("../fonts/adidasfg/adidasfg_compressed.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "adidasFG";
    font-style: normal;
    font-weight: 700;
    src:
        url("../fonts/adidasfg/adidasfg_compressedbold.woff2") format("woff2"),
        url("../fonts/adidasfg/adidasfg_compressedbold.woff") format("woff"),
        url("../fonts/adidasfg/adidasfg_compressedbold.otf") format("opentype");
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "adidasFG", sans-serif;
    vertical-align: baseline;
}

*:focus {
    outline: 0;
}

/* Gris del borde de bg/7.webp: Safari iOS lo usa en la barra de estado y en el rebote del scroll */
html {
    background-color: #9f9f9f;
    line-height: 1;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    pointer-events: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
    display: block;
}

.no_scroll {
    overflow: hidden;
}

.hide {
    display: none !important;
}

.awaypage {
    --c1: #fff;
    --c3: #9f9f9f;
    --c4: #ff78d9;
    --c5: #d4e6ff;
}

/* Sin fondo propio: si el body pinta color, tapa el ::before de .awaypage (z-index: -1) */
body {
    color: var(--c1);
    font-family: "adidasFG", sans-serif;
    position: relative;
    overflow-x: hidden;
}

.main_container {
    width: 100vw;
    height: auto;
    position: relative;
    padding-block-start: 0;
}

/* Layout de las cards de hotspots */
.layout_5_j {
    display: grid;
    grid-gap: 20px;
    grid-template-areas:
        "s1 s2_title"
        "s1 s2_hotspots"
        "s1 s2_advice"
        "s1 s2_btn";
    grid-template-rows: auto 1fr 28px 62px;
    grid-template-columns: 0.36fr 1fr;
}

@media only screen and (max-width: 768px) {
    .layout_5_j {
        grid-gap: 15px;
        grid-template-areas:
            "s1 s2_title"
            "s2_hotspots s2_hotspots"
            "s2_advice s2_advice"
            "s2_btn s2_btn";
        grid-template-rows: auto 1fr 28px auto;
        grid-template-columns: 1fr;
    }
}

.layout_5_j .e1 { grid-area: s1; }
.layout_5_j .e2 { grid-area: s2_title; }
.layout_5_j .e3 { grid-area: s2_hotspots; }
.layout_5_j .e4 { grid-area: s2_advice; }
.layout_5_j .e5 { grid-area: s2_btn; }

.awaypage .main_container .hotspots_away_jersey {
    height: auto;
    min-height: 100vh;
}

/* Fondo de página: desktop / mobile */
.awaypage::before {
    position: fixed;
    inset: 0;
    background-image: url("../img/bg/6.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    content: "";
}

@media only screen and (max-width: 768px) {
    .awaypage::before {
        background-image: url("../img/bg/7.webp");
    }
}

.awaypage .main_container .hotspots_away_jersey {
    background-color: transparent;
    padding-top: clamp(20px, 1.56vw, 30px);
    overflow-x: clip;
    /* Evita que el margin-bottom negativo de fit_to_viewport colapse fuera de la sección */
    display: flow-root;
}

/* Header: fila Z.N.E + logo + título */
.awaypage .container_title_hotspots_away_jersey {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.awaypage .zne_row {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.awaypage .container_title_hotspots_away_jersey .zne_row {
    margin-bottom: clamp(20px, 2.08vw, 40px);
}

.awaypage .zne_row_bottom {
    padding-block: clamp(20px, 2.08vw, 40px) clamp(20px, 1.56vw, 30px);
}

.awaypage .zne_item {
    font-family: "adidasFG", sans-serif;
    font-size: 30px;
    font-weight: 700;
    font-style: normal;
    line-height: 16.46px;
    letter-spacing: 0.2em;
    text-align: center;
    color: var(--c1);
    text-box: trim-both cap alphabetic;
    /* letter-spacing deja espacio tras la última letra; lo compensa para centrar */
    margin-right: -0.2em;
}

.awaypage .container_title_hotspots_away_jersey .logo_title_adidas {
    width: clamp(85px, 5.2vw, 100px);
    height: auto;
    fill: var(--c1);
    margin-bottom: clamp(10px, 1.04vw, 20px);
}

.awaypage .main_container .hotspots_away_jersey .container_title_hotspots_away_jersey .title_hotspots_away_jersey {
    font-family: "adidasFG", sans-serif;
    font-size: 50px;
    font-weight: 700;
    font-style: normal;
    line-height: 50px;
    letter-spacing: 0;
    text-align: center;
    color: var(--c1);
    text-box: trim-both cap alphabetic;
    margin-block-end: 0;
}

@media only screen and (max-width: 768px) {
    .awaypage .zne_item {
        font-size: clamp(20px, 7vw, 30px);
    }

    .awaypage .zne_item:nth-child(n + 4) {
        display: none;
    }

    .awaypage .container_title_hotspots_away_jersey .logo_title_adidas {
        width: 95px;
    }

    .awaypage .main_container .hotspots_away_jersey .container_title_hotspots_away_jersey .title_hotspots_away_jersey {
        font-size: clamp(2.25rem, 10vw, 2.75rem);
        max-width: 280px;
        line-height: 1;
    }
}

/* Blur lateral (solo desktop): queda sobre las cards laterales y bajo flechas, paginación y textos */
.awaypage .main_container .hotspots_away_jersey .side_blur {
    position: absolute;
    top: 0;
    bottom: 0;
    /* Ancho visible de la card lateral: (ancho - card activa [70%, máx. 875px]) / 2 - spaceBetween de Swiper.
       Va dentro del contenedor escalado por fit_to_viewport, así escala junto con las cards */
    width: calc((100% - min(70%, 875px)) / 2 - 50px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 5;
}

.awaypage .main_container .hotspots_away_jersey .side_blur_left {
    left: 0;
    background-image: url("../img/bg/left.webp");
}

.awaypage .main_container .hotspots_away_jersey .side_blur_right {
    right: 0;
    background-image: url("../img/bg/right.webp");
}

/* Sin estos contextos de apilamiento, las cards (z 1) y las flechas (z 10) comparten capa con el blur */
.awaypage .main_container .hotspots_away_jersey .container_hotspots_away_jersey,
.awaypage .main_container .hotspots_away_jersey .swiper_away_jersey {
    z-index: auto;
}

.awaypage .main_container .hotspots_away_jersey .container_title_hotspots_away_jersey,
.awaypage .main_container .hotspots_away_jersey .instruction_products,
.awaypage .main_container .hotspots_away_jersey .zne_row_bottom {
    position: relative;
    z-index: 6;
}

.awaypage .main_container .hotspots_away_jersey .instruction_products {
    margin: 8px 0 0;
}

@media only screen and (min-width: 769px) and (max-width: 1023px) {
    .awaypage .main_container .hotspots_away_jersey .side_blur {
        width: calc((100% - 70%) / 2 - 30px);
    }
}

@media only screen and (max-width: 768px) {
    .awaypage .main_container .hotspots_away_jersey .side_blur {
        display: none;
    }

    /* Flechas bajo la card, a los lados de la paginación + texto */
    .awaypage .main_container .hotspots_away_jersey .swiper_away_jersey .swiper-button-next,
    .awaypage .main_container .hotspots_away_jersey .swiper_away_jersey .swiper-button-prev {
        top: auto;
        bottom: 14px;
        transform: none;
    }

    .awaypage .main_container .hotspots_away_jersey .instruction_products {
        padding-inline: 70px;
    }
}

.awaypage .main_container .hotspots_away_jersey::before,
.awaypage .main_container .hotspots_away_jersey::after,
.awaypage .main_container .hotspots_away_jersey .bg_hotspots_away {
    display: none;
}
