.news-layout {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    padding: 20px;
    font-family: 'Georgia', serif;
    /* estilo periódico */
}

.news-main {
    display: grid;
    margin-top: 20px;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    align-items: start;
}

/* Estado inicial (oculto) */
.animations {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Cuando aparece en pantalla */
.animations.show {
    opacity: 1;
    transform: translateY(0);
}

/* Contenido principal */
.news-feature .category {
    display: block !important;
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.categories {
    width: 100%;
    margin-top: 25px;
    padding: 1rem 2rem;
    border-bottom: 2px solid #ddd;
    border-left: 10px solid green;
}

.news-feature .title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-feature .summary {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.news-feature .read-time {
    font-size: 0.8rem;
    color: gray;
}

/* Imagen central */
.news-feature-img img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Aside lateral */
.news-side article {
    margin-bottom: 15px;
}

.news-side .title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.news-side .read-time {
    font-size: 0.8rem;
    color: gray;
}

/* ✅ Responsive */
@media (max-width: 1024px) {
    .news-main {
        grid-template-columns: 1fr 1fr;
        /* texto + imagen */
    }

    .news-side {
        grid-column: 1 / -1;
        /* aside debajo */
    }
}

@media (max-width: 768px) {
    .news-main {
        grid-template-columns: 1fr;
        /* todo en una sola columna */
    }

    .news-feature .title {
        font-size: 1.4rem;
    }

    .news-side {
        margin-top: 20px;
    }
}


.news-feature .category {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #777;
}

.news-feature .title {
    font-size: 1.6rem;
    margin: 10px 0;
    line-height: 1.3;
}

.news-feature .summary {
    color: #444;
    font-size: 1rem;
    margin-bottom: 10px;
}

.read-time {
    font-size: 0.8rem;
    color: #999;
}

.news-feature-img img {
    width: 100%;
    border-radius: 4px;
}

.news-side article {
    margin-bottom: 20px;
}

.news-side .title {
    font-size: 1rem;
    line-height: 1.4;
}

.news-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-article img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-article .title {
    font-size: 1.2rem;
    margin: 5px 0;
}

.news-main-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* texto - imagen - lateral */
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    align-items: start;
}

/* ✅ Responsive */
@media (max-width: 1024px) {
    .news-main-detail {
        grid-template-columns: 1fr;
        /* texto + imagen */
    }

    .news-side {
        grid-column: 1 / -1;
        /* aside debajo */
    }
}

@media (max-width: 768px) {
    .news-main-detail {
        grid-template-columns: 1fr;
        /* todo en una sola columna */
    }

    .news-feature .title {
        font-size: 1.4rem;
    }

    .news-side {
        margin-top: 20px;
    }
}

/* Estilo general de los enlaces dentro de las noticias */
.news-feature-img a,
.news-secondary a,
.news-feature a {
    color: inherit;
    /* hereda el color del padre */
    display: block;
    /* opcional: hace que todo el bloque sea clickeable */
}

.news-feature-img a p,
.news-feature-img a span,
.news-secondary a p,
.news-secondary a span {
    color: inherit;
    /* asegura que los hijos no hereden el azul del navegador */
}

.news-feature .publicity-vertical {
    width: 100%;
}

.publicity-vertical {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.publicity-vertical img {
  width: 100%;
  display: block;
}

/* Overlay degradado más oscuro */
.publicity-vertical::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; 
  right: 0;
  height: 45%; /* más alto para cubrir más área */
  background: linear-gradient(to top, rgb(0, 0, 0), transparent);
}

/* Texto encima del degradado */
.publicity-vertical .summary {
  position: absolute;
  bottom: 12px;
  left: 15px;
  right: 15px;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  z-index: 1; /* asegura que quede encima */
}

.publicity-horizontal {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.publicity-horizontal img {
  width: 100%;
  height: 150px;
  display: block;
}

/* Overlay degradado más oscuro */
.publicity-horizontal::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; 
  right: 0;
  height: 45%; /* más alto para cubrir más área */
  background: linear-gradient(to top, rgb(0, 0, 0), transparent);
}

/* Texto encima del degradado */
.publicity-horizontal .summary {
  position: absolute;
  bottom: 12px;
  left: 15px;
  right: 15px;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  z-index: 1; /* asegura que quede encima */
}

@media (max-width: 768px) {
    .publicity-horizontal {
        height: 100px;
    }
    .publicity-horizontal img {
        height: 100px;
    }
}

@media (max-width: 400px) {
    .publicity-horizontal {
        height: 70px;
    }
    .publicity-horizontal img {
        height: 70px;
    }
}

.publicity-disabled {
    display: none;
}
