/*
Theme Name: Futbol Diario
Author: Futbol Diario team
Description: Theme de noticias deportivas.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: futboldiario
*/

/* =========================
   Google Fonts
========================= */
* {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  text-rendering: optimizeSpeed;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}


.section {
    display: block;
    padding: 3rem 1.5rem;
}

@media screen and (min-width: 1024px) {
    .section {
        padding: 5rem 3rem;
    } 
}

.section--dark {
    background: #000;
}

.section--light {
    background: #eaeaea;
}

.container {
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding: 0 30px;
}
@media screen and (min-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0;
    }
}

@media screen and (min-width: 1216px) {
    .container {
        max-width: 1152px;
    }
}

@media screen and (min-width: 1408px) {
    .container {
        max-width: 1344px;
    }
}

.ad-container {
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    background-color: aquamarine;
    border-radius: 10px;
    min-height: 90px;
}

.ad-container--horizontal {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 2rem auto;
}

.ad-container--vertical {
    width: 100%;
    max-width: 300px;
    height: 250px;
    /*margin: 2rem auto;*/
}

.social-marketing {
    background-color: #1D1D1B;
    border-radius: 10px;
    margin: 2rem 0;
    padding: 3rem 2rem;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
}

.social-marketing p {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    line-height: 1.5;
}

.social-marketing p span {
    font-size: 2.7rem;
    line-height: 1.25;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
}

.social-marketing__logo {
    width: 220px;
    height: auto;
    margin: 0 auto;
}

.social-marketing__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-marketing__links figure img {
    max-width: 40px;
    max-height: 40px;
}

/* HEADER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 120px; /* Altura inicial */
    transition: all 0.4s ease-in-out; /* Animación fluida */
    z-index: 1000;
    background-color: #1D1D1B;
    /*position: relative;*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 60px;
}

.main-header a {
    display: block;
}

.headerLogo {
    width: auto;
    height: 56px;
    transition: all 0.4s ease-in-out;
}

/* Clase que añadiremos con JS al hacer scroll */
.header-scrolled {
  height: 70px; /* Altura reducida */
}

.header-scrolled .headerLogo {
  height: 40px; /* Logo reducido */
}


/* Animacion sin JS */
.main-header {
  left: 0;
  animation: shrink auto linear forwards;
  animation-timeline: scroll();
  animation-range: 0px 150px;
}

.headerLogo {
    animation: logo-shrink auto linear forwards;
    animation-timeline: scroll();
  animation-range: 0px 150px;
}

@keyframes shrink {
  to {
    height: 70px;
  }
}

@keyframes logo-shrink {
  to {
    height: 45px;
    }
}


/* MARQUEE STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.marquee-wrapper {
    margin-top: 120px;
    background-color: #88bd00;
    padding: 0;
}

.marquee-wrapper .container {
    margin-inline: auto;
    padding-inline: 1rem;
}

.marquee {
    position: relative;
    display: flex;
    gap: 14px;
    overflow: hidden;
    background-color: #88bd00;
    padding: 10px 0;
}

.marquee-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

.marquee-item:last-child {
    margin-right: 14px;
}

.marquee-item::after {
    content: '//';
    position: absolute;
    right: -14px;
    color: #fff;
}

.breaking-news {
    background-color: #1D1D1B;
    text-transform: uppercase;
    padding: 6px 14px;
    z-index: 999;
    display: flex;
    align-items: center;
}

.breaking-news p {
    font-weight: 700;
    font-family: "Roboto", sans-serif;
    color: #fff;
    line-height: 1;
    margin: 0;
}


/* HERO STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.hero{
    position: relative;
    overflow: hidden;
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 164px);
}

.hero-body {
    position: relative;
    align-items: center;
    display: flex;
    flex-grow: 1;
    flex-shrink: 0;
    padding: 3rem;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
} 

.hero-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgb(0,0,0);
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 85%);
    z-index: 1;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

@media screen and (min-width: 768px) {
    .hero-img::before {
        background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0) 85%);
    }
}

.hero-content {
    max-width: 55vw;
    color: #fff;
}

.hero-content h1.title {
    font-size: 2.375rem;
    line-height: 1.1;
    margin-bottom: 32px;
    font-family: "Oswald", sans-serif;
}

@media screen and (min-width: 768px) {
    .hero-content h1.title {
        font-size: 4.375rem;
    }
}

.hero-content p.subtitle {
    font-size: 1.25rem;
    line-height: 1.4;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 36px;
}

.hero-author {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.hero-author-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-author span {
    font-size: 1rem;
    line-height: 1;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.hero-author strong {
    font-size: 1rem;
    line-height: 1;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

/* SECTION 3 NOTAS STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.featured-articles {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}

@media screen and (min-width: 1024px) {
    .featured-articles {
        grid-template-columns: 1fr 300px;
        grid-gap: 0 20px;
    }
}

.featured-articles__grid {
    display: grid;
    /*grid-template-columns: 58fr 42fr;*/
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-gap: 40px;
}

@media screen and (min-width: 768px) {
    .featured-articles__grid {
        grid-template-columns: 1fr 300px;
        grid-template-rows: auto auto;
        grid-gap: 20px;
    }

    .featured-articles__grid > article:first-child {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    .featured-articles__grid > article:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .featured-articles__grid > article:last-child {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
}

/* SECTION ARTILCE LIST STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.article-list__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 20px;
    row-gap: 40px;
}

@media screen and (min-width: 768px) {
    .article-list__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .article-list__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ARTICLES STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.card-content {
    background: transparent;
    box-sizing: border-box;
    flex-grow: 1;
}

.card-content .seccion {
    background-color: #88bd00;
    border-radius: 12px;
    color: #103250;
    text-transform: uppercase;
    font-size: 0.75rem;
    line-height: 1;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    padding: 4px 10px;
    width: fit-content;
}

.card-content h1 {
    color: #103250;
    text-transform: uppercase;
    font-size: 1.2rem;
    line-height: 1.2;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    margin: 10px 0 10px;
}

@media screen and (min-width: 768px) {
    .card-content h1 {
        font-size: 2.5rem;
    }
}

.card-content h3 {
    color: #103250;
    text-transform: uppercase;
    font-size: 1.175rem;
    line-height: 1.2;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    margin: 10px 0 10px;
}

.card-content p {
    color: #103250;
    font-size: 1.175rem;
    line-height: 1.2;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    display: none;
}

@media screen and (min-width: 768px) {
    .card-content p {
        display: block;
    }
}

.card-content .autor {
    color: #777;
    font-size: 0.75rem;
    line-height: 1;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.card-content .autor strong {
    color: #777;
    font-size: 0.75rem;
    line-height: 1;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

.cover-link {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.entry-box__medium,
.entry-box__small {
    display: flex;
    flex-direction: column;
    position: relative;
}

.entry-box__medium figure,
.entry-box__small figure {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.entry-box__medium figure img,
.entry-box__small figure img {
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.entry-box__medium .card-content,
.entry-box__small .card-content {
    background: #fff;
    border-radius: 0 0 5px 5px !important;
    box-sizing: border-box;
    padding: 16px 20px;
    flex-grow: 1;
}

/* FOOTER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
footer {
    background-color: #1D1D1B;
    color: #fff;
}

.footer--wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 0 2rem;
    gap: 1rem;
}

footer nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    gap: 1rem;
}

@media screen and (min-width: 768px) {
    footer nav ul {
        flex-direction: row;
    }
}

footer nav ul li a {
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
}

footer nav ul li a:hover {
    text-decoration: underline;
}

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

footer .footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 2.5rem;
}

footer .footer-social figure img {
    max-width: 50px;
    max-height: 50px;
}

footer .footer-copyright {
    padding: 1rem 0;
    background-color: #000;
}

footer .footer-copyright .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media screen and (min-width: 768px) {
    footer .footer-copyright .container {
        flex-direction: row;
    }
}

footer .footer-copyright p {
    font-weight: 400;
    text-align: center;
    font-size: 0.75rem;
}

footer .footer-copyright figure {
    height: auto;
    width: 100px;
}

/* NOTA STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.news {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.news aside {
    display: none
}

@media screen and (min-width: 1024px) {
    .news {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-gap: 0 20px;
        margin-top: 5rem;
        margin-bottom: 5rem;
    }

    .news aside {
        /*position: sticky;
        top: 90px;*/
        align-self: start;
        display: block;
    }
}

.news-section {
    background-color: #88bd00;
    border-radius: 12px;
    color: #103250;
    text-transform: uppercase;
    font-size: 0.75rem;
    line-height: 1;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    padding: 4px 10px;
    width: fit-content;
}

.news-title {
    color: #103250;
    text-transform: uppercase;
    font-size: 2rem;
    line-height: 1.2;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    margin: 1rem 0 1rem;
}

@media screen and (min-width: 768px) {
    .news-title {
        font-size: 2.75rem;
    }
}

.news-subtitle {
    color: #103250;
    font-size: 1.25rem;
    line-height: 1.2;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin-bottom: 1.5rem;
}

@media screen and (min-width: 768px) {
    .news-subtitle {
        font-size: 1.75rem;
    }
}

.news-author-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.news-author-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

@media screen and (min-width: 768px) {
    .news-author-img img {
        width: 58px;
        height: 58px;
    }
}

.news-author span {
    color: #88bd00;
    font-size: 0.75rem;
    font-weight: 500;
    display: block;
}

@media screen and (min-width: 768px) {
    .news-author span {
        font-size: 1rem;
    }
}

.news-author time {
    color: #1D1D1B;
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
}

.news-share {
    display: flex;
    gap: 10px;
}

.news-share figure img {
    max-width: 40px;
    max-height: 40px;
}

.news-preview-img {
    margin-bottom: 30px;
    aspect-ratio: 16 / 9;
    /*overflow: hidden;*/
}

.news-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-preview-img figcaption {
    background-color: #D9D9D9;
    padding: 10px 20px;
    color: #666;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-content {
    margin-bottom: 5rem;
}

.news-content h4 {
    color: #103250;
    font-weight: 500;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

@media screen and (min-width: 768px) {
    .news-content h4 {
        font-size: 2.75rem;
    }
}

.news-content p {
    font-weight: 400;
    font-size: 1rem;
    color: #1D1D1B;
    margin-bottom: 30px;
}

.news-content p a {
    color: #88bd00;
    text-decoration: none;
    font-weight: 600;
}

.news-content p a:hover {
    text-decoration: underline;
}

.news-content iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    margin-bottom: 30px;
    /*Added*/
    width: 100%;
    height: auto;
}

.news-more__heading-section {
    background-color: transparent;
    padding: 20px 0;
    margin-bottom: 2rem;
    border-top: 2px solid #88bd00;
    border-bottom: 2px solid #88bd00;
}

.news-more__heading-section h6{
    color: #103250;
    font-size: 1.5rem;
    line-height: 1;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    font-weight: 500;
}

.news-more__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media screen and (min-width: 768px) {
    .news-more__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-more .entry-box__small .card-content {
    background-color: #1D1D1B;
}

.news-more .entry-box__small .card-content .seccion,
.news-more .entry-box__small .card-content h3,
.news-more .entry-box__small .card-content .autor,
.news-more .entry-box__small .card-content .autor strong {
    color: #fff;
}