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

/* SOBRESCRITURA */
body {
    background-color: #FEFAEB !important;
}
body .a {
    background-color: transparent !important;
}

body .a_s:before {
  background: linear-gradient(to bottom, #FEFAEB30 23%,#FEFAEB 90%) !important;
}

/* APERTURA */
.tpl-a-especial .a_e:after {
    height: 0px !important;
}

header.a_e {
    width: calc(100% - 2rem);
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    position: relative;
}

header.a_e .a_e_txt {
    position: relative;
    order: 2;
}

header.a_e .a_e_txt .a_t {
    font-family: 'MajritBn',sans-serif;
    font-weight: 900;
    text-wrap: balance;

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

header.a_e .a_e_m {
    order: 1;
}

header.a_e .a_e_m .a_m {
    max-width: 400px;
    margin: 0 auto;
}

header.a_e .a_e_m .a_m_w {
    width: 100%;
    margin: 0 auto;
}

header.a_e .a_e_m .a_m_p {
    padding-top: 0px;
    margin-top: 0px;
    padding-bottom: 1.75rem;
    text-align: center;
}

header.a_e .a_e_m .a_m_p .a_m_m {
    font-family: 'MarcinAntB', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0px;
    text-align: right;
}

/* CONTENIDO (FOTOTEXTOS, LADILLOS, ETC) */
/* Ladillos */
body .a .a_c > h2 {
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-bottom: 4rem;
}
body .a .a_c > h2:after {
    position: absolute;
    bottom: -2px;
    background-color: #F7CF3C;
    height: 25px;
    left: unset;
    right: -10px;
    z-index: -1;
    
    width: 80%;
    max-width: 250px;
}

/* Fototextos */
body .a_fts {
  overflow: hidden;
}

body .a_fts + .a_fts {
  margin-top: calc(3.75rem - 20px);
}

body .a_ft {
    max-width: 375px;
    margin: 0 auto;
    margin-bottom: 40px;
    padding: 0;
    border-top: 5px solid #F7CF3C;
    background: #fff;
}

body .a_ft_m {
  margin-bottom: 0;
  overflow: hidden;
}

body .a_ft_txt {
  padding: 20px 17px 30px;
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.5;
}

body .a_ft:last-child {
  border-bottom: none;
  margin-bottom: 0px;
}

body .a_ft_t {
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

/* MEDIA QUERIES */
@media (min-width: 48em){
    header.a_e {
        border-bottom: 0px;
    }

    header.a_e .a_e_m .a_m {
        max-width: 520px;
        position: relative;
    }

    body .a_fts + .a_fts {
        margin-top: calc(3.75rem + 20px);
    }

    body .a_ft {
        grid-column-gap: 0.9375rem;
        margin-bottom: 80px;
        background: #fff;
        max-width: 700px;
    }

    body .a_ft_m {
        margin-bottom: 0;
        grid-column: 1 / 4;
    }

    body .a_ft_m a {
        height: 100%;
    }

    body .a_ft_m a img {
        height: 100%;
        object-fit: cover;
    }

    body .a_ft_txt {
        grid-column: 4 / 8;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 42px 30px 32px;
  }

    body .a .a_c > h2:after {
        bottom: -14px;
        height: 40px;
    }
}

@media (min-width: 62.5625em){
    header.a_e {
        flex-direction: row;
        align-items: center;
        gap: 0px;

        box-sizing: border-box;
        padding: 2rem 0px 1.875rem 0px;
    }

    header.a_e .a_e_m .a_m_w {
        border-bottom: 0px;
    }

    header.a_e .a_e_txt {
        order: 2;
        width: 45%;
        padding: 0px 8px 3.5rem 8px;
        padding-bottom: 3.5rem;
    }
    
    header.a_e .a_e_txt .a_t {
        font-size: 3rem;
        line-height: 3.25rem;
    }

    header.a_e .a_e_txt .a_st {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }

    header.a_e .a_e_m {
        order: 1;
        width: 55%;
    }

    header.a_e .a_e_m .a_m_p {
        position: absolute;
        bottom: 30px;
        left: 120px;
        padding-bottom: 0px;
    }

    header.a_e .a_e_txt:after {
        content: '';
        position: absolute;
        bottom: 0px;
        left: 50%;
        width: 20px;
        height: 20px;
        border-top: 1px solid #000;
        border-right: 1px solid #000;
        transform: translateX(-50%) rotate(135deg);
        animation: bajar 3s infinite;
    }

    body .a_fts {
        margin: 3.75rem var(--grid-10-1-column-content);
    }

    body .a_ft_txt {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 42px 30px 32px;

        font-size: 1rem;
        line-height: 1.5;
    }

    body .a_ft_t {
        line-height: 1;
        margin-bottom: 20px;
    }

    body .a .w-cr {
        margin: 3.75rem var(--grid-10-1-column-content);
    }
}

@media (min-width: 62.5625em) and (max-height: 62.5625em) {
    header.a_e {
        padding-top: 0px !important;
    }
}

@media (min-width: 74.9375em) {
    body .a_fts {
        margin: 3.75rem var(--grid-10-1-column-content);
    }

    body .a_ft {
        grid-column-gap: 0.9375rem;
    }
}

/* ANIMACIÓN */
@keyframes bajar {
    0%, 100% {
        transform: translateY(0) translateX(-50%) rotate(135deg);
    }
    25% {
        transform: translateY(-0.5rem) translateX(-50%) rotate(135deg);
    }
    50% {
        transform: translateY(0rem) translateX(-50%) rotate(135deg);
    }
    75% {
        transform: translateY(-0.25rem) translateX(-50%) rotate(135deg);
    } 
}