/* FUENTES */
@font-face {
    font-family: 'MajritBn';
    src: url('https://static.elpais.com/dist/resources/fonts/majrit/majrit-banner/Majrit-Banner-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* SOBRESCRITURA */
body .a_k,
body .a_t {
    display: none;
}

body .a_e {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    box-sizing: border-box;
    padding: 10%;
    position: relative;

    background: #C5EFEC;

    border-bottom: 0px;

    margin-bottom: 60px;
}

body .a_e .a_e_txt {
    padding-bottom: 0;
}

body .a_e .a_e_txt .a_st {
    margin: 0;

    font-family: 'MajritTx', sans-serif;
    font-weight: 582;
    letter-spacing: -0.2px;
    text-align: center;
}

/* APERTURA */
body .apertura {
    height: calc(100vh - 53px) !important;
    margin-bottom: 7.5vh;
}

body .apertura .apertura-container {
    width: 100%;
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
    text-align: center;

    position: relative;
    margin-top: 10px;
}

.apertura .apertura-images {
    position: relative;

    width: calc(100% - 32px);
    height: auto;
    max-width: 720px;
    aspect-ratio: 494 / 326;

    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
}

.apertura .apertura-images.visible {
    transition: opacity .5s ease;
    opacity: 1;
}

.apertura .apertura-images img {
    opacity: 0;
}

.apertura-images img.active {
    opacity: 1;
}

.apertura-images.visible img{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;

    overflow: hidden;
    object-fit: contain;
    object-position: bottom;
    opacity: 0;
    transition: opacity .5s ease;
}
.apertura-images.visible img.active {
    transition: opacity 1s ease;
    opacity: 1;
}

.apertura .apertura-title {
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 40px;
}

.apertura .apertura-title h1 {
    margin: 0 auto;

    font-family: 'MajritBn', sans-serif;
    font-weight: 300;
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -0.5px;
    text-align: center;
    text-transform: uppercase;

    text-wrap: balance;
    max-width: 360px;
}

/*.apertura .apertura-title h1 span:nth-child(1) {
    display: block;
    font-size: 30px;
}

.apertura .apertura-title h1 span:nth-child(2) {
    display: block;
    font-size: 40px;

    margin-top: -12px;
}*/

.apertura .apertura-title h2 {
    margin: 0 auto;

    font-family: 'MajritBn', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.5px;
    text-align: center;
}

.apertura .bajar {
    display: inline-block;
    text-align: left;
    margin: 0px auto 10px;
    position: relative;
    z-index: 1;
    opacity: 0;
    visibility: visible;
    animation: bajar 3s infinite 3s, opacidad 1s forwards 2s;
}
  
.apertura .bajar span {
    display: block;
    text-indent: -9999px;
    overflow: hidden;
    width: 15px;
    height: 15px;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    transform: rotate(135deg);
}

/* MEDIA QUERIES */
@media only screen and (min-width: 48em) {
    body .a_e {
        padding: 10% 12.5%;
        margin-bottom: 100px;
    }

    .apertura .apertura-title h1 {
        font-size: 70px;
        line-height: 76px;
        max-width: 650px;
    }

    /*.apertura .apertura-title h1 span:nth-child(1) {
        font-size: 50px;
    }

    .apertura .apertura-title h1 span:nth-child(2) {
        
        margin-top: 24px;
    }*/

    .apertura .apertura-title h2 {
        font-size: 20px;
        line-height: 30px;
    }
}

@media (min-width: 48em) and (max-height: 63em) {
    .apertura .apertura-images {
        max-width: 540px;
    }

    body .apertura .apertura-container {
        gap: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ANIMACIONES */
@keyframes opacidad {
    100% {
        opacity:1;
    }
}

@keyframes bajar {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-0.5rem);
    }
    50% {
        transform: translateY(0rem);
    }
    75% {
        transform: translateY(-0.25rem);
    } 
}