*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;background:#f5f5f5;color:#333;}

/* HEADER */
.top-bar{display:flex;justify-content:space-between;align-items:center;padding:5px 20px;font-size:14px;background:#111;color:#fff;}
.social-icons a{margin-left:10px;color:#fff;text-decoration:none;transition:color 0.3s;}
.social-icons a:hover{color:#007bff;}

.date-weather {
    display: flex;
    align-items: center;
    gap: 10px;
}



/* HEADER FLEX */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Clima */
.weather-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 345px;
    height: 89px;
    overflow: hidden;
}

.weather-box iframe,
.weather-box div {
    max-width: 100%;
}

/* Logo al centro */
.logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-center img {
    width: 300px;
    height: auto;
}

.logo-center h1 {
    font-size: 24px;
    color: #007bff;
}

/* Menú */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #007bff;
}

/* Hamburguesa responsive */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}
/* MAIN */
.main-layout{margin:20px;}
.content-area{display:flex;flex-direction:column;gap:20px;}
/*.content-with-ads{display:flex;gap:20px;align-items: flex-start;}
.main-content{flex:3; widows: 100%;display: block;}
.ads-column{flex:1;background:#fff;padding:10px;border-radius:8px;box-shadow:0 2px 5px rgba(0,0,0,0.1);display:flex;flex-direction:column;gap:10px;}*/
.content-with-ads {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;                     /* menos separación */
    align-items: flex-start;
}

/* Columna principal */
.main-content {
    width: 100%;
    min-width: 0;                  /* MUY IMPORTANTE en grid */
}

/* Columna de publicidad */
.ads-column {
    width: 100%;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ======================================
   ENLACES SIN SUBRAYADO NI COLOR AZUL
   ====================================== */
.main-article a,
.side-article a {
    text-decoration: none;
    color: inherit;
}

/* ================================
   LAYOUT GENERAL DE NOTICIAS
   ================================ */
.main-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 20px;
    align-items: stretch; /* ← hace que ambas columnas midan lo mismo */
}

.main-article {
    flex: 2.1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-articles {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* Las tarjetas se expanden correctamente */
.main-article,
.side-article {
    height: 100%;
}
/* ================================
   ESTILO UNIFICADO PARA TODAS LAS NOTICIAS
   ================================ */

.main-article img{
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease, filter 0.3s ease;
}

.side-article img {
    width: 100%;
    height: 250px;           /* MÁS CHICA */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Zoom elegante */
.main-article:hover img,
.side-article:hover img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

/* Caja de contenido */
.main-article .content,
.side-article .content {
    padding: 18px 20px;
}

/* Categoría */
.categoria {
    display: inline-block;
    background: #c40000;
    color: #fff !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.categoria:hover {
    background: #ff3d3d;
}

/* Título (principal y secundario iguales) */
.main-article .content h2{
    font-size: 40px;
    font-weight: 900;
    color: #c40000;
    line-height: 1.2;
    margin-bottom: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.side-article .content h2 {
    font-size: 26px;        /* antes 26px */
    font-weight: 900;       /* menos pesado */
	color: #c40000;
    line-height: 1.25;
    margin-bottom: 6px;
	transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover en títulos */
.main-article:hover .content h2,
.side-article:hover .content h2 {
    color: #ff4444;
    transform: translateX(4px);
}

/* Copete */
.main-article .content p,
.side-article .content p {
    font-size: 16px;
    color: #444;
    line-height: 1.55;
}

/* ================================
   TARJETAS SECUNDARIAS CONSISTENTES
   ================================ */
.side-article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* GRID DE NOTICIAS SECUNDARIAS (3 columnas) */
.news-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
/* Tarjetas individuales */
.news-group article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-group article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.news-group article img {
    width: 100%;
    height: 230px;           /* MÁS GRANDE */
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-group article .content {
    padding: 15px;
}

/* Categoría */
.news-group .categoria {
    background: #c40000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Títulos */
.news-group article h2,
.news-group article h3 {
    color: #c40000;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    transition: .3s;
}

.news-group article:hover h2,
.news-group article:hover h3 {
    color: #ff4444;
    transform: translateX(3px);
}

/* Enlaces sin subrayado */
.news-group a {
    text-decoration: none;
    color: inherit;
}

.main-article img,
.side-article img,
.news-group article img {
    transition: transform .4s ease;
}

.main-article:hover img,
.side-article:hover img,
.news-group article:hover img {
    transform: scale(1.06);
}

/* ===============================
   GRID CATEGORÍAS (5 POR FILA)
================================ */
.category-news {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    width: 100%;
}

/* Tarjeta */
.category-news article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.category-news article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Imagen */
.category-news img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Contenido */
.category-news .content {
    padding: 14px;
}

/* Título */
.category-news h2 {
    font-size: 18px;
    font-weight: 800;
    color: #c40000;
    margin-bottom: 6px;
    transition: .3s;
}

.category-news article:hover h2 {
    color: #ff4444;
    transform: translateX(3px);
}

/* Copete */
.category-news p {
    font-size: 14px;
    color: #444;
    line-height: 1.45;
}

/* Quitar azul y subrayado */
.category-news a {
    text-decoration: none;
    color: inherit;
}

/* ===============================
   PAGINADOR
================================ */
.paginador {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.paginador a,
.paginador span {
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    color: #c40000;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.paginador a:hover {
    background: #c40000;
    color: #fff;
}

.paginador .active {
    background: #c40000;
    color: #fff;
}

/* FOOTER */
footer{
  background:#111;
  color:#fff;
  padding:30px 10px;
  text-align:center;
}
.footer-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:15px;
}

.footer-content p{
  font-size:14px;
  color:#ccc;
}

/* Estilo del enlace CDHosting en el footer */
.footer-brand {
    color: #d40000; /* rojo fuerte */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover elegante */
.footer-brand:hover {
    color: #ff4d4d; /* rojo más claro */
    transform: translateY(-2px); /* pequeño movimiento elegante */
}

.footer-logo{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.footer-logo img{
  width:150px;
  height:auto;
}

.footer-social{
  display:flex;
  justify-content:center;
  gap:15px;
}
.footer-social a{
  color:#fff;
  font-size:18px;
  transition:color 0.3s;
}
.footer-social a:hover{
  color:#007bff;
}

/* ===============================
   VISTA INDIVIDUAL DE NOTICIA
   =============================== */

.ver-noticia img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.news-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.news-copete {
    font-size: 19px;
    font-weight: 500;
    color: #444;
    margin-bottom: 20px;
}

.news-epigrafe {
    background: #111;
    color: #fff;
    font-size: 14px;
    padding: 8px 12px;
    margin: 15px 0 25px;
    border-radius: 4px;
    text-align: center;
}

.news-text {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
}

.news-text p {
    margin-bottom: 15px;
}

.news-source {
    margin-top: 25px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}


/* Barra lectura */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: #c40000;
    z-index: 9999;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

/* Botones compartir */
.share-buttons {
    display: flex;
    gap: 12px;
    margin: 15px 0 25px;
}

.share-buttons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform .3s;
}

.share-buttons a:hover {
    transform: scale(1.1);
}

.share-buttons .whatsapp { background: #25D366; }
.share-buttons .twitter  { background: #000; }
.share-buttons .facebook { background: #1877F2; }

/* Epígrafe */
.news-epigrafe {
    background: #111;
    color: #fff;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    margin: 20px 0;
}

/* Relacionadas */
.related-news {
    margin-top: 40px;
}

.related-news h3 {
    font-size: 22px;
    color: #c40000;
    margin-bottom: 20px;
}

/* Banners */
.banner{background:#ddd;text-align:center;padding:15px;margin-bottom:20px;border-radius:6px;opacity:0;transform:translateY(20px);transition:1s ease-out;}
.banner-medio{margin-top:30px;}

/*.banner-medio {
    border: 3px dashed red;
}*/

/* Publicidad lateral */
.ads-column img{width:100%;height:auto;border-radius:6px;}
.ads-column{opacity:0;transform:translateY(20px);transition:1s ease-out;}

/* Fade-in */
.appear{opacity:1!important;transform:translateY(0)!important;}


/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {

	/* Banner un poco más angosto */
    .content-with-ads {
        grid-template-columns: minmax(0, 1fr) 200px;
        gap: 20px;
    }

    .ads-column {
        max-width: 200px;
        padding: 10px;
    }
    /* =====================
       NOTICIA PRINCIPAL
    ===================== */

    /* Ocultar copete solo en la principal */
    .main-article .news-copete {
        display: none;
    }

    /* Título principal más contenido */
    .main-article .content h2 {
        font-size: 30px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    /* Imagen más pareja */
    .main-article img {
        max-height: 420px;
        object-fit: cover;
    }

    /* =====================
       NOTICIAS SECUNDARIAS
    ===================== */

    .side-article .content h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .side-article img {
        height: 220px;
        object-fit: cover;
    }

    /* =====================
       GRUPOS DE NOTICIAS
    ===================== */

    .news-group article h3 {
        font-size: 18px;
        line-height: 1.35;
    }

    .news-group article img {
        height: 200px;
        object-fit: cover;
    }

    /* =====================
       ESPACIADO GENERAL
    ===================== */

    .main-news,
    .news-group {
        gap: 20px;
    }

    .main-article,
    .side-article,
    .news-group article {
        border-radius: 10px;
        overflow: hidden;
    }
}

@media (max-width: 900px) {

    /* ===============================
       HEADER
    =============================== */
    .weather-box {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    /* ===============================
       LAYOUT PRINCIPAL
    =============================== */

    /* Ocultar publicidad lateral */
    .ads-column {
        display: none !important;
    }

    /* El contenido ocupa todo el ancho */
    .content-with-ads {
        grid-template-columns: 1fr;
    }

    /* ===============================
       PRIMER BLOQUE DE NOTICIAS
       (3 primeras una abajo de otra)
    =============================== */

    .main-news {
        grid-template-columns: 1fr; /* deja todo en una columna */
        gap: 20px;
    }

    .side-articles {
        grid-template-rows: auto;
        grid-template-columns: 1fr; /* side una debajo de otra */
        gap: 20px;
    }

    /* Ajustes de texto */
    .main-article .content h2 {
        font-size: 24px;
    }

    .side-article .content h2 {
        font-size: 20px;
    }

    /* ===============================
       GRUPOS DE NOTICIAS
       (primer y segundo grupo → 2 por fila)
    =============================== */

    .news-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* ===============================
       IMÁGENES
    =============================== */

    .main-article img {
        max-height: 320px;
        object-fit: cover;
    }

    .side-article img {
        height: 200px;
        object-fit: cover;
    }

    .news-group article img {
        height: 200px;
        object-fit: cover;
    }

    /* ===============================
       BANNERS
       (NO se tocan, solo ajuste ancho)
    =============================== */

    .banner,
    .banner-medio {
        width: 100%;
        max-width: 100%;
    }


    /* Menú hamburguesa */
    .menu-toggle {
        display: block;
        font-size: 26px;
        color: #333;
        cursor: pointer;
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    .menu-toggle:hover {
        transform: scale(1.1);
    }

    /* Contenedor del menú con efecto vidrio */
    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        width: 220px;
        padding: 12px 0;
        border-radius: 14px;
        z-index: 999;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.35s ease;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Estado activo con animación fade + slide */
    .navbar ul.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        animation: fadeSlideIn 0.35s ease;
    }

    /* Keyframes para animación */
    @keyframes fadeSlideIn {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Estilo de los ítems del menú */
    .navbar li {
        margin: 10px 0;
        text-align: right;
        padding-right: 15px;
    }

    .navbar a {
        color: #1a1a1a;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .navbar a:hover {
        color: #007bff;
    }

    .nav-container {
        width: 100%;
        position: relative;
    }
}

@media (max-width: 768px) {

    /* Noticias principales */
    .main-news {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Artículos laterales debajo */
    .side-articles {
        grid-template-rows: auto;
    }

    /* Grupo de noticias (3 columnas → 1) */
    .news-group {
        grid-template-columns: 1fr;
    }

    /* Categorías (5 por fila → 1) */
    .category-news {
        grid-template-columns: 1fr;
    }

    /* Ajuste de imágenes */
    .main-article img,
    .side-article img,
    .news-group article img,
    .category-news img {
        height: auto;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .ads-column {
        display: none;
    }

    /* El contenido ocupa todo el ancho */
    .content-with-ads {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .banner,
    .banner-medio {
        max-width: 768px;
        width: 100%;
        aspect-ratio: 5 / 2;   /* ⬅️ más bajo */
        max-height: 80px;     /* límite */
        margin: 15px auto;
        border-radius: 8px;
        overflow: hidden;
        background: #eee;
    }

    .banner img,
    .banner-medio img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

}

@media (max-width: 768px) {

    .navbar ul {
        width: 90%;
        right: 5%;
    }

    .navbar li {
        padding: 12px 20px;
    }

    .navbar a {
        font-size: 16px;
        display: block;
    }
}

@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
    }

    body {
        padding-top: 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 430px) {

    .main-article .content h2 {
        font-size: 24px;
        line-height: 1.25;
    }

    .side-article .content h2 {
        font-size: 20px;
    }

    .news-text {
        font-size: 16px;
        line-height: 1.65;
    }

    .logo-center img {
        width: 140px;
    }

    .share-buttons a {
        width: 38px;
        height: 38px;
    }
}

@media (min-width: 431px) and (max-width: 768px) {

    .main-article .content h2 {
        font-size: 28px;
    }

    .news-text {
        font-size: 17px;
    }

    .logo-center img {
        width: 170px;
    }
}

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