/* ============================================================
   RESET Y BASE
============================================================ */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'DM Sans', Arial, sans-serif;
    background: #0a0d18;
    color: #e8ecf4;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* ============================================================
   NAVBAR
============================================================ */

.navbar {
    background: #141827;
    border-bottom: 1px solid #232942;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #e8ecf4;
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
}

.brand-icon { font-size: 24px; }

.navbar-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar-links a {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s;
}

.navbar-links a:hover {
    color: #8b5cf6;
}

/* ============================================================
   HERO
============================================================ */

.hero {
    background: linear-gradient(135deg, #1e1b4b, #0a0d18);
    padding: 70px 20px;
    text-align: center;
    border-bottom: 1px solid #232942;
}

.hero h1 {
    margin: 0 0 15px;
    font-size: 44px;
    font-family: 'DM Serif Display', serif;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    margin: 0;
    color: #8a93ab;
    font-size: 18px;
}

/* ============================================================
   CONTENEDOR
============================================================ */

.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.seccion-titulo {
    margin-bottom: 30px;
}

.seccion-titulo h2 {
    margin: 0;
    font-size: 26px;
    color: #e8ecf4;
}

/* ============================================================
   GRID DE NOTICIAS
============================================================ */

.grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card-noticia {
    background: #141827;
    border: 1px solid #232942;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.card-noticia:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.2);
}

.card-imagen {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-imagen-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f1424);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-categoria {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 12px;
}

.card-titulo {
    margin: 0 0 10px;
    font-size: 18px;
    color: #e8ecf4;
    line-height: 1.3;
}

.card-resumen {
    color: #8a93ab;
    font-size: 14px;
    margin: 0 0 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    align-self: flex-start;
    transition: 0.2s;
}

.card-link:hover {
    color: #8b5cf6;
}

/* ============================================================
   AVISO (cuando no hay noticias)
============================================================ */

.aviso {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    padding: 40px 25px;
    text-align: center;
}

.aviso strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #a5b4fc;
}

.aviso p {
    color: #8a93ab;
    margin: 0;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
    background: #050810;
    border-top: 1px solid #232942;
    color: #8a93ab;
    padding: 40px 20px 30px;
    text-align: center;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #a5b4fc;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.footer-links a:hover { color: #8b5cf6; }

.footer-copy {
    opacity: 0.6;
    font-size: 13px;
}

/* ============================================================
   PÁGINA DE ARTÍCULO
============================================================ */

.articulo {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px;
}

.articulo-header {
    margin-bottom: 30px;
    text-align: center;
}

.articulo-volver {
    display: inline-block;
    color: #a5b4fc;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: 0.2s;
}

.articulo-volver:hover { color: #8b5cf6; }

.articulo-categoria {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    transition: 0.2s;
}

.articulo-categoria:hover {
    background: rgba(139, 92, 246, 0.25);
}

.articulo-titulo {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #e8ecf4;
}

.articulo-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #8a93ab;
    font-size: 14px;
}

.articulo-imagen-wrap {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #232942;
}

.articulo-imagen {
    width: 100%;
    height: auto;
    display: block;
}

.articulo-contenido {
    font-size: 17px;
    line-height: 1.75;
    color: #d1d5db;
}

.articulo-resumen {
    font-size: 19px;
    line-height: 1.6;
    color: #a5b4fc;
    font-weight: 500;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #232942;
}

.articulo-contenido p {
    margin: 0 0 20px;
}

/* ============================================================
   COMPARTIR
============================================================ */

.articulo-compartir {
    margin: 40px 0;
    padding: 25px;
    background: #141827;
    border: 1px solid #232942;
    border-radius: 16px;
    text-align: center;
}

.articulo-compartir p {
    margin: 0 0 15px;
    color: #8a93ab;
    font-size: 14px;
}

.compartir-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-share:hover { transform: translateY(-1px); }

.btn-fb { background: #1877f2; }
.btn-wa { background: #25d366; }
.btn-copy { background: #374151; }

/* ============================================================
   ADSENSE
============================================================ */

.ad-container-articulo {
    margin: 40px 0;
    padding: 15px;
    background: #141827;
    border: 1px solid #232942;
    border-radius: 12px;
    text-align: center;
    min-height: 100px;
    width: 100%;
}

.ad-label-articulo {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ============================================================
   RELACIONADAS
============================================================ */

.relacionadas {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #232942;
}

.relacionadas-titulo {
    font-size: 22px;
    margin: 0 0 25px;
    color: #e8ecf4;
}

.relacionadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.relacionada-card {
    background: #141827;
    border: 1px solid #232942;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.relacionada-card:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.relacionada-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.relacionada-img-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #1e293b, #0f1424);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.relacionada-body {
    padding: 15px;
    flex: 1;
}

.relacionada-titulo {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
    color: #e8ecf4;
}

.relacionada-fecha {
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 600px) {

    .articulo-titulo { font-size: 28px; }

    .articulo-contenido { font-size: 16px; }

    .articulo-resumen { font-size: 17px; }

}

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

@media (max-width: 600px) {

    .hero { padding: 50px 20px; }

    .hero h1 { font-size: 30px; }

    .hero p { font-size: 16px; }

    .navbar-inner {
        padding: 12px 15px;
    }

    .navbar-links {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .navbar-links a {
        font-size: 14px;
    }

    .contenedor {
        padding: 25px 15px;
    }

    .seccion-titulo h2 {
        font-size: 22px;
    }

}
/* ============================================================
   HERO LISTADO (para /noticias, /categoria, /sobre)
============================================================ */

.hero-listado {
    background: linear-gradient(135deg, #1e1b4b, #0a0d18);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #232942;
}

.hero-listado h1 {
    margin: 0 0 12px;
    font-size: 36px;
    font-family: 'DM Serif Display', serif;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-listado p {
    margin: 0;
    color: #8a93ab;
    font-size: 16px;
}

/* ============================================================
   CARD META (autor + fecha)
============================================================ */

.card-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #6b7280;
    font-size: 12px;
    margin: 10px 0 15px;
}

/* ============================================================
   SOBRE NOSOTROS
============================================================ */

.sobre-contenido {
    max-width: 780px;
    margin: 0 auto;
    background: #141827;
    border: 1px solid #232942;
    border-radius: 16px;
    padding: 40px 35px;
}

.sobre-contenido h2 {
    font-size: 22px;
    margin: 35px 0 15px;
    color: #a5b4fc;
    font-family: 'DM Serif Display', serif;
}

.sobre-contenido h2:first-child {
    margin-top: 0;
}

.sobre-contenido p {
    color: #d1d5db;
    line-height: 1.75;
    font-size: 16px;
    margin: 0 0 15px;
}

.sobre-contenido ul {
    color: #d1d5db;
    line-height: 1.9;
    padding-left: 25px;
    margin: 0 0 20px;
}

.sobre-contenido ul li {
    margin-bottom: 8px;
}

.sobre-contenido a {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 600;
}

.sobre-contenido a:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

@media (max-width: 600px) {

    .hero-listado h1 { font-size: 26px; }
    .hero-listado p { font-size: 15px; }
    .sobre-contenido { padding: 25px 20px; }
    .sobre-contenido h2 { font-size: 20px; }

}
/* ============================================================
   HOME: DESTACADA
============================================================ */

.destacada {
    background: #0a0d18;
    padding: 40px 20px;
}

.destacada-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.destacada-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #141827;
    border: 1px solid #232942;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.2s;
    min-height: 400px;
}

.destacada-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.destacada-imagen-wrap {
    overflow: hidden;
    position: relative;
}

.destacada-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.destacada-card:hover .destacada-imagen {
    transform: scale(1.05);
}

.destacada-body {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.destacada-categoria {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 20px;
}

.destacada-titulo {
    font-family: 'DM Serif Display', serif;
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #e8ecf4;
}

.destacada-resumen {
    color: #8a93ab;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px;
}

.destacada-meta {
    display: flex;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 25px;
}

.destacada-leer {
    color: #a5b4fc;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
}

.destacada-card:hover .destacada-leer {
    color: #8b5cf6;
}

/* ============================================================
   SECCIÓN HEADER (título + ver todas)
============================================================ */

.seccion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.seccion-header h2 {
    margin: 0;
    font-size: 24px;
    color: #e8ecf4;
}

.ver-todas {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.ver-todas:hover { color: #8b5cf6; }

.seccion-sub {
    color: #8a93ab;
    font-size: 15px;
    margin: -15px 0 25px;
}

/* ============================================================
   CATEGORÍAS
============================================================ */

.seccion-categorias {
    background: #0f1424;
    padding: 50px 0;
    border-top: 1px solid #232942;
    border-bottom: 1px solid #232942;
    margin: 40px 0;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.cat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #141827;
    border: 1px solid #232942;
    border-radius: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.cat-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

.cat-icono {
    font-size: 32px;
    flex-shrink: 0;
}

.cat-info {
    flex: 1;
    min-width: 0;
}

.cat-nombre {
    color: #e8ecf4;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
}

.cat-total {
    color: #8a93ab;
    font-size: 12px;
}

/* ============================================================
   SORTEOS
============================================================ */

.seccion-sorteos {
    padding: 50px 0;
}

.sorteos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.sorteo-card {
    background: #141827;
    border: 1px solid #232942;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.sorteo-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.15);
}

.sorteo-imagen {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #0a0d18;
    padding: 8px;
    display: block;
}

.sorteo-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f1424);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.sorteo-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sorteo-titulo {
    margin: 0 0 8px;
    font-size: 18px;
    color: #e8ecf4;
}

.sorteo-desc {
    color: #8a93ab;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px;
    flex: 1;
}

.sorteo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #232942;
}

.sorteo-cta {
    color: #34d399;
    font-weight: 700;
    font-size: 14px;
}

.sorteo-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   COMERCIO
============================================================ */

.seccion-comercio {
    padding: 50px 0;
}

.comercio-cta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
}

.comercio-emoji {
    font-size: 60px;
    margin-bottom: 15px;
}

.comercio-cta h2 {
    margin: 0 0 15px;
    font-size: 28px;
    color: #e8ecf4;
}

.comercio-cta p {
    color: #8a93ab;
    max-width: 500px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.comercio-boton {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transition: 0.2s;
}

.comercio-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

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

@media (max-width: 800px) {

    .destacada-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .destacada-imagen-wrap {
        height: 220px;
    }

    .destacada-body {
        padding: 25px 20px;
    }

    .destacada-titulo {
        font-size: 24px;
    }

    .seccion-header h2 {
        font-size: 20px;
    }

    .comercio-cta h2 {
        font-size: 22px;
    }

}

/* ============================================================
   BANNER ADSENSE
============================================================ */

.ad-banner-wrap {
    background: #0a0d18;
    padding: 15px 20px;
    border-bottom: 1px solid #232942;
}

.ad-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100px;
    background: #141827;
    border: 1px solid #232942;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    width: 100%;
}

.ad-label-banner {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ============================================================
   IN-FEED ADSENSE
============================================================ */

.ad-in-feed {
    background: #141827;
    border: 1px solid #232942;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}