/*
Theme Name: TopEducativo Noticiero
Theme URI: https://topeducativo.com
Author: TopEducativo
Author URI: https://topeducativo.com
Description: Tema estilo noticiero para portal educativo dominicano.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: topeducativo
Tags: news, education, responsive
*/

/* ============================================================
   VARIABLES Y RESET
   ============================================================ */
:root {
    --red:      #CC0022;
    --blue:     #00AAFF;
    --blue-dark:#0077CC;
    --dark:     #1A1A2E;
    --black:    #111111;
    --bg:       #F4F6F9;
    --white:    #ffffff;
    --text:     #222222;
    --text-2:   #555555;
    --text-3:   #888888;
    --border:   #E2E8F0;
    --radius:   5px;
    --shadow:   0 1px 4px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4, .section-title, .hero-title, .post-card-title,
.widget-title, .single-title, .editorial-header-title {
    font-family: 'Oswald', 'Inter', Arial, sans-serif;
    letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

/* Evita que el color hover quede pegado en mobile (tap) */
.nfc-feat-title a:hover,
.nfc-card-title a:hover,
.post-card-title a:hover,
.hero-title a:hover { color: var(--red); }

.nfc-feat-title a,
.nfc-card-title a,
.post-card-title a { color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   UTILIDADES
   ============================================================ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.cat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}
.cat-badge-red   { background: var(--red); color: #fff; }
.cat-badge-blue  { background: var(--blue-dark); color: #fff; }
.cat-badge-dark  { background: var(--dark); color: #fff; }

/* ============================================================
   TOP STRIP
   ============================================================ */
.top-strip {
    background: var(--red);
    padding: 4px 0;
}
.top-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-strip-left,
.top-strip-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.top-strip-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.9);
}
.top-strip-item i { font-size: 12px; }

/* ============================================================
   HEADER PRINCIPAL
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 4px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* LOGO */
.site-logo { text-decoration: none; flex-shrink: 0; }
.logo-main {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}
.logo-main .logo-top { color: var(--black); }
.logo-main .logo-edu { color: var(--blue); }
.logo-sub {
    font-size: 9px;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-top: 2px;
    text-transform: uppercase;
}

.header-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* NAV */
.main-nav { display: flex; align-items: center; flex: 1; }
.main-nav ul { display: flex; gap: 2px; flex-wrap: nowrap; }
.main-nav a {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    padding: 6px 10px;
    border-radius: 3px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--red);
    background: #FFF0F2;
}

/* SEARCH */
.header-search {
    position: relative;
    flex-shrink: 0;
}
.header-search input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 32px 6px 12px;
    font-size: 12px;
    color: var(--text);
    width: 160px;
    transition: border-color .2s, width .2s;
}
.header-search input:focus {
    outline: none;
    border-color: var(--blue);
    width: 200px;
}
.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 14px;
    padding: 0;
}

/* SUSCRIBIR */
.btn-suscribir {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}
.btn-suscribir:hover { background: var(--blue-dark); }
.btn-suscribir i { font-size: 13px; }

/* MENU HAMBURGER */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}

/* ============================================================
   TICKER (NOTICIAS)
   ============================================================ */
.ticker-bar {
    background: var(--dark);
    padding: 6px 0;
    overflow: hidden;
}
.ticker-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ticker-badge {
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 2px;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.ticker-wrap {
    overflow: hidden;
    flex: 1;
}
.ticker-text {
    font-size: 12px;
    color: #C9D1E0;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    display: inline-block;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.ticker-text:hover { animation-play-state: paused; }
.ticker-date {
    font-size: 10px;
    color: #667788;
    flex-shrink: 0;
}

/* ============================================================
   BARRA DE CATEGORÍAS
   ============================================================ */
.cat-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.cat-nav ul {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    padding: 10px 12px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cat-nav a:hover,
.cat-nav .current-cat > a,
.cat-nav .current-menu-item > a {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.site-main {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    padding: 20px 0;
    align-items: start;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.hero-thumbnail {
    position: relative;
    height: 340px;
    overflow: hidden;
}
.hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.hero-thumbnail:hover img { transform: scale(1.03); }
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 60%);
}
.hero-tags {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 2;
}
.hero-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: rgba(255,255,255,.85); }
.hero-excerpt {
    font-size: 13px;
    color: rgba(255,255,255,.8);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-3);
}
.meta-item i { font-size: 12px; }
.share-btns {
    margin-left: auto;
    display: flex;
    gap: 5px;
}
.share-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-x  { background: #111; }
.share-li { background: #0A66C2; }

/* ============================================================
   SECCIONES (4 POSTS EN GRID)
   ============================================================ */
.section-block { margin-bottom: 28px; }

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.section-bar {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
}
.section-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.section-link {
    margin-left: auto;
    font-size: 11px;
    color: var(--blue-dark);
    font-weight: 700;
    transition: color .15s;
}
.section-link:hover { color: var(--red); }

/* GRID 3 POSTS (con sidebar) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ============================================================
   NOTICIAS FEATURED LAYOUT — Destacado + cards
   ============================================================ */

/* Post destacado: imagen izquierda + cuerpo derecho */
.nfc-featured {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}
.nfc-featured:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.nfc-feat-img {
    display: block;
    height: 100%;
    min-height: 260px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    border: none;
    box-shadow: none;
    line-height: 0;
}
.nfc-feat-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.nfc-featured:hover .nfc-feat-img img { transform: scale(1.04); }
.nfc-feat-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(160deg, #001833, #003A70);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.nfc-feat-placeholder .nfc-ph-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
}
.nfc-feat-placeholder .nfc-ph-logo span:first-child { color: #fff; }
.nfc-feat-placeholder .nfc-ph-logo span:last-child  { color: var(--blue); }
.nfc-feat-placeholder .nfc-ph-cat {
    font-size: 9px;
    color: rgba(255,255,255,.3);
    letter-spacing: .1em;
}
.nfc-feat-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}
.nfc-feat-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.nfc-feat-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 12px;
    flex: 1;
}
.nfc-feat-title a { color: inherit; text-decoration: none; border: none; box-shadow: none; }
.nfc-feat-title a:hover { color: var(--red); }
.nfc-feat-excerpt {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.nfc-feat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.nfc-feat-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.nfc-feat-author { font-size: 12px; font-weight: 700; color: var(--text-2); }
.nfc-feat-date   { font-size: 11px; color: #AAA; margin-left: auto; }

/* Grid de cards secundarias */
.nfc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.nfc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    box-shadow: var(--shadow);
}
.nfc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
    transform: translateY(-2px);
}
.nfc-card-img {
    display: block;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    text-decoration: none;
    border: none;
    box-shadow: none;
    line-height: 0;
}
.nfc-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.nfc-card:hover .nfc-card-img img { transform: scale(1.05); }
.nfc-card-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nfc-card-body {
    padding: 12px 13px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}
.nfc-card-cat {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.nfc-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    flex: 1;
    margin-bottom: 9px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nfc-card-title a { color: inherit; text-decoration: none; border: none; box-shadow: none; }
.nfc-card-title a:hover { color: var(--red); }
.nfc-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.nfc-card-avatar {
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.nfc-card-author { font-size: 10px; color: var(--text-3); }
.nfc-card-date   { font-size: 10px; color: var(--text-3); margin-left: auto; }

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(204,0,34,.12);
    transform: translateY(-3px);
}
.post-card-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }
.post-card-thumbnail .cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}
.post-card-body {
    padding: 12px 13px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    flex: 1;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--red); }
.post-card-meta {
    font-size: 11px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* ============================================================
   PUBLICIDAD — ZONAS DE ANUNCIOS
   ============================================================ */

/* Banner leaderboard — debajo del header (728x90 o full width) */
.ad-leaderboard {
    background: #F8F9FB;
    border: 1px dashed #D0D8E4;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    margin: 12px 0;
    overflow: hidden;
    position: relative;
}
.ad-leaderboard img,
.ad-leaderboard iframe { display: block; max-width: 100%; }
.ad-label {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 8px;
    color: #AAB8C8;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
/* Placeholder visible cuando no hay anuncio */
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 16px;
    color: #BCC8D8;
}
.ad-placeholder i { font-size: 22px; }
.ad-placeholder span { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; }

/* Banner rectangle sidebar (300x250) */
.ad-sidebar {
    background: #F8F9FB;
    border: 1px dashed #D0D8E4;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    overflow: hidden;
    position: relative;
}

/* Banner entre secciones (full width content) */
.ad-inline {
    background: #F8F9FB;
    border: 1px dashed #D0D8E4;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin: 4px 0 20px;
    overflow: hidden;
    position: relative;
}

/* Banner horizontal wide (970x250 o full) */
.ad-billboard {
    background: #F8F9FB;
    border: 1px dashed #D0D8E4;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

/* Ocultar placeholder si hay contenido real */
.ad-leaderboard:not(:empty) .ad-placeholder,
.ad-sidebar:not(:empty) .ad-placeholder,
.ad-inline:not(:empty) .ad-placeholder,
.ad-billboard:not(:empty) .ad-placeholder { display: none; }

/* ============================================================
   PODCAST
   ============================================================ */
.podcast-list { display: flex; flex-direction: column; gap: 8px; }
.podcast-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color .2s;
}
.podcast-item:hover { border-color: var(--blue); }
.podcast-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.podcast-play:hover { background: var(--blue-dark); }
.podcast-play i { font-size: 14px; color: #fff; margin-left: 2px; }
.podcast-info { flex: 1; min-width: 0; }
.podcast-ep { font-size: 9px; font-weight: 800; color: var(--blue); text-transform: uppercase; margin-bottom: 2px; }
.podcast-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.podcast-dur {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.podcast-bar { flex: 1; height: 3px; background: #E8F4FF; border-radius: 2px; overflow: hidden; }
.podcast-progress { height: 100%; background: var(--blue); border-radius: 2px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.widget-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
}
.widget-header i { font-size: 15px; color: var(--red); }
.widget-header-blue i { color: var(--blue-dark); }
.widget-title {
    font-size: 11px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.widget-body { padding: 12px 14px; }

/* EDITORIAL */
.editorial-widget { border-top: 4px solid var(--dark); }
.editorial-header {
    background: var(--dark);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.editorial-header i { font-size: 15px; color: var(--blue); }
.editorial-header-title {
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.editorial-header-sub { margin-left: auto; font-size: 9px; color: #667788; }
.editorial-featured { position: relative; height: 120px; overflow: hidden; }
.editorial-featured img { width: 100%; height: 100%; object-fit: cover; }
.editorial-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%);
}
.editorial-featured-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 8px;
    font-weight: 800;
    background: var(--red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
    z-index: 2;
    text-transform: uppercase;
}
.editorial-featured-title {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    z-index: 2;
}
.editorial-author {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.author-name { font-size: 11px; font-weight: 700; color: var(--text); }
.author-role { font-size: 9px; color: var(--text-3); }
.editorial-excerpt {
    padding: 10px 14px;
    font-size: 11px;
    color: #444;
    line-height: 1.6;
    font-style: italic;
    border-bottom: 1px solid var(--border);
}
.editorial-excerpt::before {
    content: '"';
    font-size: 22px;
    color: var(--red);
    font-weight: 900;
    line-height: 0;
    vertical-align: -6px;
    margin-right: 2px;
}
.editorial-list { padding: 8px 0 0; }
.editorial-item {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #F8F9FA;
    transition: background .15s;
    cursor: pointer;
}
.editorial-item:last-child { border-bottom: none; }
.editorial-item:hover { background: #FAFBFC; }
.editorial-item .author-avatar { width: 26px; height: 26px; font-size: 9px; }
.av-blue  { background: var(--blue-dark); }
.av-green { background: #1E7B35; }
.av-red   { background: var(--red); }
.editorial-item-body { flex: 1; min-width: 0; }
.editorial-item-author { font-size: 9px; font-weight: 700; color: var(--text); }
.editorial-item-role { font-size: 9px; color: var(--blue-dark); }
.editorial-item-title {
    font-size: 11px;
    color: #444;
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.editorial-ver-mas {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    transition: background .15s;
}
.editorial-ver-mas:hover { background: #FFF5F7; color: var(--red); }

/* ENCUESTA */
.poll-question {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 12px;
}
.poll-option { margin-bottom: 8px; }
.poll-option-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-2);
    margin-bottom: 3px;
}
.poll-option-label strong { font-weight: 700; color: var(--blue-dark); }
.poll-bar-bg {
    background: #F0F4F8;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}
.poll-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}
.poll-total {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 8px;
}
.btn-votar {
    display: block;
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
    letter-spacing: 0.04em;
    transition: background .2s;
}
.btn-votar:hover { background: #AA0018; }

/* LO MÁS VISTO */
.top-news-list { display: flex; flex-direction: column; gap: 0; }
.top-news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #F4F6F9;
    cursor: pointer;
}
.top-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.top-news-num {
    font-size: 28px;
    font-weight: 900;
    color: #E8EEF4;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}
.top-news-body { flex: 1; min-width: 0; }
.top-news-cat { font-size: 9px; font-weight: 800; color: var(--red); text-transform: uppercase; margin-bottom: 2px; }
.top-news-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.top-news-title:hover { color: var(--red); }
.top-news-views { font-size: 10px; color: var(--text-3); margin-top: 2px; }

/* NEWSLETTER */
.newsletter-widget {
    background: #F0F8FF;
    border: 1px solid #B8DEFF;
}
.newsletter-widget .widget-header { border-color: #B8DEFF; background: #EBF5FF; }
.newsletter-widget .widget-header i { color: var(--blue-dark); }
.newsletter-desc {
    font-size: 12px;
    color: #3366AA;
    line-height: 1.6;
    margin-bottom: 12px;
}
.nl-form-input {
    width: 100%;
    border: 1px solid #B8DEFF;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 12px;
    color: var(--text);
    background: #fff;
    margin-bottom: 8px;
    transition: border-color .2s;
}
.nl-form-input:focus { outline: none; border-color: var(--blue); }
.btn-suscribir-nl {
    display: block;
    width: 100%;
    background: var(--blue-dark);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background .2s;
}
.btn-suscribir-nl:hover { background: #005EAA; }
.nl-privacy {
    font-size: 9px;
    color: #88AACC;
    margin-top: 6px;
    text-align: center;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-content { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.single-header { padding: 24px 48px 20px; border-bottom: 1px solid var(--border); }
.single-cats { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.single-title { font-size: 26px; font-weight: 900; color: var(--black); line-height: 1.3; margin-bottom: 10px; }
.single-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.single-thumbnail { width: 100%; height: 380px; overflow: hidden; }
.single-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.single-body { padding: 24px 48px; font-size: 16px; line-height: 1.8; color: #333; max-width: 100%; }
.single-body p { margin-bottom: 16px; }
.single-body h2 { font-size: 20px; font-weight: 800; color: var(--black); margin: 24px 0 12px; }
.single-body h3 { font-size: 17px; font-weight: 700; color: var(--black); margin: 20px 0 10px; }
.single-body blockquote {
    border-left: 4px solid var(--red);
    padding: 12px 20px;
    margin: 20px 0;
    background: #FFF8F9;
    font-style: italic;
    color: #444;
}
.single-share {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.single-share span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.tags-bar {
    padding: 14px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tag-item {
    font-size: 11px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: #555;
    padding: 3px 10px;
    border-radius: 20px;
    transition: background .15s, color .15s;
}
.tag-item:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* RELACIONADAS */
.related-section { margin-top: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    border-top: 4px solid var(--red);
    padding: 40px 0 0;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #252540;
}
.footer-logo { font-size: 24px; font-weight: 900; line-height: 1; margin-bottom: 10px; }
.footer-logo .fl-top { color: #fff; }
.footer-logo .fl-edu { color: var(--blue); }
.footer-desc { font-size: 12px; color: #6677AA; line-height: 1.7; margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; }
.footer-social-btn {
    width: 32px;
    height: 32px;
    background: #252540;
    border: 1px solid #333355;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
}
.footer-social-btn:hover { background: var(--red); border-color: var(--red); }
.footer-social-btn i { font-size: 14px; color: var(--blue); }
.footer-social-btn:hover i { color: #fff; }
.footer-col-title {
    font-size: 10px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
    font-size: 12px;
    color: #6677AA;
    transition: color .15s;
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-copy { font-size: 11px; color: #333355; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 11px; color: #333355; }
.footer-legal a:hover { color: var(--blue); }

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
}
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: var(--white);
    border: 1px solid var(--border);
    transition: background .15s, color .15s, border-color .15s;
}
.page-numbers:hover, .page-numbers.current {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ============================================================
   ENCUESTAS PAGE
   ============================================================ */
.encuestas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.encuesta-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.encuesta-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 16px; line-height: 1.4; }
.encuesta-radio { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; }
.encuesta-radio input { accent-color: var(--red); }
.encuesta-radio span { font-size: 13px; color: var(--text-2); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 8px;
}
.breadcrumb a { color: var(--blue-dark); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text-3); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .site-main { grid-template-columns: 1fr 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .top-strip { display: none; }

    .menu-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 3px solid var(--red); box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 200; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: 8px 0; }
    .main-nav a { border-radius: 0; padding: 10px 20px; font-size: 14px; }
    .header-search, .btn-suscribir { display: none; }

    .site-main { grid-template-columns: 1fr; }
    .sidebar { display: none; }

    /* GRID: 2 columnas en tablet, 1 en mobile */
    .posts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Noticias featured: imagen arriba, texto abajo */
    .nfc-featured { grid-template-columns: 1fr; }
    .nfc-feat-img { height: 220px; }
    .nfc-feat-body { border-left: none; border-top: 1px solid var(--border); }
    .nfc-feat-title { font-size: 18px; }
    .nfc-grid { grid-template-columns: 1fr 1fr; }

    /* HERO mobile: imagen + título debajo */
    .hero-thumbnail { height: 210px; }
    .hero-gradient { display: none; }
    .hero-tags { display: none; }
    .hero-content {
        position: static;
        width: 100%;
        padding: 12px 14px 8px;
        background: var(--white);
        box-sizing: border-box;
    }
    .hero-title {
        font-size: 17px;
        color: var(--black);
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .hero-title a { color: var(--black); }
    .hero-excerpt {
        font-size: 12px;
        color: var(--text-2);
        -webkit-line-clamp: 2;
    }

    /* POST CARDS: imagen más alta en tablet */
    .post-card-thumbnail { height: 160px; }
    .post-card-title { font-size: 13px; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .single-title { font-size: 20px; }
    .single-body { padding: 16px; font-size: 14px; }
    .single-header { padding: 16px; }
    .single-thumbnail { height: 220px; }

    /* Mobile bottom nav */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        z-index: 200;
        box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    }
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 8px 4px;
        font-size: 9px;
        color: #AAB;
        font-weight: 600;
        text-transform: uppercase;
        transition: color .15s;
    }
    .mobile-nav-item i { font-size: 20px; }
    .mobile-nav-item.active, .mobile-nav-item:hover { color: var(--red); }
    .mobile-nav-item.active i, .mobile-nav-item:hover i { color: var(--red); }
    body { padding-bottom: 60px; }
}

@media (max-width: 480px) {
    .nfc-featured { border-radius: 0; margin-bottom: 8px; }
    .nfc-grid { grid-template-columns: 1fr; gap: 0; }
    .nfc-card { border-radius: 0; border-left: none; border-right: none; border-top: none; border-bottom: 1px solid var(--border); box-shadow: none; }
    .nfc-card:hover { transform: none; box-shadow: none; background: var(--bg); }

    /* Quitar línea roja en títulos mobile */
    .nfc-feat-title a,
    .nfc-card-title a,
    .post-card-title a,
    .section-title {
        border-bottom: none !important;
        box-shadow: none !important;
    }
    .section-header {
        border-bottom: none;
        padding-bottom: 4px;
    }

    /* Una sola columna tipo TIME.COM */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Card ocupa el ancho completo, imagen cuadrada */
    .post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid #E8ECF0;
        flex-direction: column;
    }

    /* Imagen cuadrada full-width (relación 1:1) */
    .post-card-thumbnail {
        width: 100%;
        height: 0;
        padding-bottom: 65%; /* ~16:10, similar a time.com */
        position: relative;
        overflow: hidden;
    }
    .post-card-thumbnail img {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .post-card-placeholder {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
    }
    .cat-badge {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 3px 10px;
    }

    /* Cuerpo del card: título grande, limpio */
    .post-card-body {
        padding: 12px 14px 14px;
    }
    .post-card-title {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    .post-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
        color: #555;
    }
    .post-card-author {
        margin-top: 8px;
    }
    .post-card-author-name { font-size: 11px; }
    .post-card-date { font-size: 10px; }

    /* Sección header */
    .section-block { margin-bottom: 4px; }
    .section-header { padding: 10px 14px 8px; }
    .section-title { font-size: 14px; }

    .hero-thumbnail { height: 190px; }
    .hero-title { font-size: 16px; }
    .hero-content { padding: 10px 12px 6px; }

    .encuestas-grid { grid-template-columns: 1fr; }
}

.mobile-nav { display: none; }

/* ============================================================
   MÁS LEÍDAS ESTA SEMANA
   ============================================================ */
.mas-leidas-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid #F0F4F8;
    text-decoration: none;
    transition: background .15s;
}
.mas-leidas-item:last-child { border-bottom: none; }
.mas-leidas-item:hover { background: #F8F9FB; }
.mas-leidas-num {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #E2E8F0;
    line-height: 1;
    flex-shrink: 0;
    width: 26px;
}
.mas-leidas-thumb {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.mas-leidas-body { flex: 1; min-width: 0; }
.mas-leidas-cat {
    display: block;
    font-size: 8px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: .07em;
    margin-bottom: 2px;
}
.mas-leidas-title {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   POST CARD — EXTRACTO Y MEJORAS
   ============================================================ */
.post-card-excerpt {
    font-size: 11px;
    color: var(--text-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.post-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.post-card-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.post-card-author-name {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
}
.post-card-date {
    margin-left: auto;
    font-size: 9px;
    color: var(--text-3);
}

/* Placeholder imagen sin foto */
.post-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, #2A2A4A 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.post-card-placeholder .logo-placeholder {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
}
.post-card-placeholder .logo-placeholder span:first-child { color: #fff; }
.post-card-placeholder .logo-placeholder span:last-child  { color: var(--blue); }

/* ============================================================
   FOOTER MINIMALISTA
   ============================================================ */
/* ============================================================
   YOUTUBE INLINE WIDGET (en content area)
   ============================================================ */
.youtube-inline-widget {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}
.youtube-inline-header {
    background: #FF0000;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.youtube-inline-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #555;
    font-size: 12px;
    text-align: center;
    padding: 0 20px;
}
.youtube-inline-link {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #FF0000;
    padding: 10px;
    background: #1A1A1A;
    letter-spacing: .05em;
    text-decoration: none;
    transition: background .2s;
}
.youtube-inline-link:hover { background: #222; }

.site-footer { background: var(--dark); }

.footer-top-bar {
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 20px 0;
}
.footer-top-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .03em;
    flex-shrink: 0;
}
.fl-top { color: #fff; }
.fl-edu { color: var(--blue); }

.footer-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
}
.footer-nav a {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: .04em;
    transition: color .15s, background .15s;
}
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }

.footer-social { display: flex; gap: 8px; flex-shrink: 0; }
.footer-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 16px;
    transition: background .15s, color .15s;
}
.footer-social-btn:hover { background: var(--red); color: #fff; }

.footer-bottom { padding: 14px 0; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,.3); transition: color .15s; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 768px) {
    .footer-top-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer-nav { display: none; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}
