/*
Theme Name: AutoTheme
Theme URI: https://albertomurillo.pro
Author: Alberto Murillo
Author URI: https://albertomurillo.pro
Description: Theme periodístico profesional para portales de noticias y PBN. Parte del ecosistema AutoNews — diseñado para publicación automatizada, mixto evergreen + noticias, estilo editorial moderno y totalmente personalizable desde el Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autotheme
Tags: news, blog, magazine, custom-colors, custom-menu, featured-images, two-columns, right-sidebar, pbn, autonews
*/

/* ============================================
   VARIABLES — defaults (el customizer las sobreescribe)
   ============================================ */
:root {
    /* ── Colores: gestionados por preset/paleta/customizer en <head> ── */
    /* Fallbacks mínimos para cuando no hay customizer activo            */
    --color-primary:      #f5c400;
    --color-primary-dark: #d4a900;
    --color-primary-text: #000000;
    --color-bg:           #ffffff;
    --color-text:         #111111;
    --color-text-muted:   #767676;
    --color-border:       #e8e8e8;
    --color-link:         #111111;
    --color-header-bg:    #ffffff;
    --color-logo:         #111111;
    --color-nav-bg:       #ffffff;
    --color-nav-text:     #111111;
    --color-sidebar-bg:   #ffffff;
    --color-sidebar-title:#111111;
    --color-sidebar-text: #111111;
    --color-sidebar-link: #111111;
    --color-sidebar-border:#e8e8e8;
    --color-footer-bg:    #111111;
    --color-footer-text:  #aaaaaa;
    --color-footer-title: #ffffff;
    --color-card-title:   #111111;
    --color-card-excerpt: #767676;
    --color-card-border:  #e8e8e8;
    --color-card-bg:      transparent;
    --color-badge-bg:     transparent;
    --color-badge-text:   #767676;
    --color-badge-border: #e8e8e8;
    --color-section-title:#111111;
    --color-section-border:#111111;
    --color-section-line: #e8e8e8;
    --color-btn-bg:       #111111;
    --color-btn-text:     #ffffff;
    --color-topbar-bg:    #ffffff;
    --color-topbar-text:  #111111;
    --color-topbar-border:#e8e8e8;
    --color-ticker-bg:    #f5c400;
    --color-ticker-text:  #111111;
    --color-ticker-badge-text: #000000;
    --color-ticker-arrow: #767676;
    --color-uh-bar-bg:    #f7f7f7;
    --color-uh-badge-bg:  #f5c400;
    --color-uh-badge-text:#000000;
    --color-uh-text:      #111111;
    --color-uh-dot:       #000000;
    --color-uh-chevron:   #767676;
    --color-uh-border:    #e8e8e8;
    --color-article-title:#111111;
    --color-article-body: #111111;
    --color-article-meta: #767676;
    --color-page-active-bg:#111111;
    --color-page-active-text:#ffffff;
    --color-footer-bottom-bg:#111111;
    --color-footer-bottom-text:#666666;

    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body:    'Libre Baskerville', Georgia, serif;
    --font-ui:      'Inter', -apple-system, sans-serif;
    --font-meta:    'Inter', -apple-system, sans-serif;

    /* ── Tipografía: Hero ── */
    --typo-hero-size:        clamp(1.8rem, 3.8vw, 2.8rem);
    --typo-hero-weight:      900;
    --typo-hero-lh:          1.08;
    --typo-hero-ls:          -0.02em;

    /* ── Tipografía: Titular artículo (H1 single) ── */
    --typo-article-h1-size:    clamp(1.6rem, 3.5vw, 2.6rem);
    --typo-article-h1-weight:  900;
    --typo-article-h1-lh:      1.1;
    --typo-article-h1-ls:      -0.02em;

    /* ── Tipografía: Cards (H3) ── */
    --typo-card-size:        1rem;
    --typo-card-weight:      700;
    --typo-card-lh:          1.3;

    /* ── Tipografía: Títulos de sección ── */
    --typo-section-size:     0.75rem;
    --typo-section-weight:   800;
    --typo-section-lh:       1;
    --typo-section-ls:       0.1em;

    /* ── Tipografía: Cuerpo artículo ── */
    --typo-body-size:        1rem;
    --typo-body-lh:          1.78;

    /* ── Tipografía: Excerpts/extractos ── */
    --typo-excerpt-size:     0.84rem;
    --typo-excerpt-lh:       1.5;

    /* ── Tipografía: Navegación ── */
    --typo-nav-size:         0.95rem;
    --typo-nav-weight:       500;
    --typo-nav-ls:           0;

    /* ── Tipografía: Meta (fecha, categoría, autor) ── */
    --typo-meta-size:        0.76rem;
    --typo-meta-weight:      400;

    /* ── Tipografía: Botones ── */
    --typo-btn-size:         0.82rem;
    --typo-btn-weight:       700;
    --typo-btn-ls:           0.02em;

    /* ── Tipografía: Footer ── */
    --typo-footer-size:      0.85rem;
    --typo-footer-lh:        1.6;

    /* ── Tipografía: Sidebar ── */
    --typo-sidebar-title-size:   0.72rem;
    --typo-sidebar-title-weight: 800;
    --typo-sidebar-title-ls:     0.1em;
    --typo-sidebar-link-size:    0.85rem;
    --typo-sidebar-link-lh:      1.35;

    --container-width: 1200px;
    --sidebar-width:   300px;
    --gap:             24px;
    --radius:          0px;
    --transition:      0.15s ease;
    --shadow-card:     none;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; color: var(--color-text); margin-bottom: 10px;}
h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); }
p  { margin-bottom: 1.2rem; }

/* ============================================
   CONTENEDOR
   ============================================ */
.nc-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOPBAR — fondo color de acento
   ============================================ */
.nc-topbar {
    background: var(--color-topbar-bg, var(--color-primary));
    border-bottom: none;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nc-topbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 32px;
}
.nc-topbar-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.nc-topbar-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-topbar-text);
    padding: 4px 8px;
    border-radius: 2px;
    transition: background var(--transition);
    white-space: nowrap;
}
.nc-topbar-btn:hover { background: rgba(0,0,0,0.1); opacity: 1; }
.nc-topbar-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}
.nc-topbar-hoy {
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    background: var(--color-ticker-bg, var(--color-primary));
    color: var(--color-ticker-badge-text, var(--color-primary-text));
    white-space: nowrap;
    text-transform: uppercase;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 2px;
}
.nc-topbar-scroll { overflow: hidden; flex: 1; }
.nc-topbar-scroll-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    animation: nc-ticker 40s linear infinite;
}
.nc-topbar-scroll-inner a { font-size: 0.78rem; color: var(--color-ticker-text, var(--color-topbar-text)); white-space: nowrap; font-weight: 500; }
.nc-topbar-scroll-inner a:hover { opacity: 0.7; }
.nc-ticker-sep { color: var(--color-ticker-text, var(--color-topbar-text)); opacity: 0.4; }
@keyframes nc-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.nc-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nc-topbar-social-link {
    display: flex;
    align-items: center;
    color: var(--color-primary-text);
    padding: 3px;
}
.nc-topbar-social-link:hover { opacity: 0.65; }

/* ============================================
   HEADER — logo centrado, sin elementos extra
   ============================================ */
.nc-header {
    background: var(--color-header-bg);
    padding: 20px 0 0;
}
.nc-header-logo-wrap {
    display: flex;
    justify-content: center;
    padding-bottom: 14px;
}
.nc-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--color-logo);
    letter-spacing: -0.02em;
    display: block;
    text-transform: uppercase;
}
.nc-logo-text {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--color-logo);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.nc-logo-img { max-height: 52px; width: auto; }
.nc-logo:hover { opacity: 1; }

/* ============================================
   NAVEGACIÓN PRINCIPAL
   ============================================ */
.nc-nav {
    display: block;
    background: var(--color-nav-bg);
    border-top: 1px solid var(--color-nav-border);
    border-bottom: 1px solid var(--color-nav-border);
}
.nc-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nc-nav ul li { position: relative; }
.nc-nav ul li a {
    display: block;
    padding: 10px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: var(--typo-nav-size);
    font-weight: var(--typo-nav-weight);
    letter-spacing: var(--typo-nav-ls);
    color: var(--color-nav-text);
    white-space: nowrap;
    transition: all var(--transition);
    text-decoration: none;
}
.nc-nav ul li a:hover {
    background: var(--color-nav-hover-bg);
    color: var(--color-nav-hover-text);
    opacity: 1;
}
.nc-nav ul li.current-menu-item > a,
.nc-nav ul li.current-menu-ancestor > a {
    color: var(--color-nav-active-text);
    font-weight: 700;
    opacity: 1;
}
/* Submenús */
.nc-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-submenu-bg);
    min-width: 200px;
    z-index: 999;
    border: 1px solid var(--color-nav-border);
    border-top: 2px solid var(--color-submenu-border);
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    list-style: none;
}
.nc-nav ul li:hover > ul { display: flex; }
.nc-nav ul li ul li a {
    padding: 9px 16px;
    font-size: 0.8rem;
    color: var(--color-submenu-text);
    border-bottom: 1px solid var(--color-nav-border);
}
.nc-nav ul li ul li:last-child a { border-bottom: none; }

/* ============================================
   BARRA ÚLTIMA HORA
   ============================================ */
.nc-ultimahora-bar {
    background: var(--color-uh-bar-bg);
    border-bottom: 1px solid var(--color-uh-border);
    padding: 10px 0;
}
.nc-ultimahora-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nc-ultimahora-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--color-uh-badge-bg);
    color: var(--color-uh-badge-text);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nc-uh-dot {
    width: 7px;
    height: 7px;
    background: var(--color-uh-dot);
    border-radius: 50%;
    animation: nc-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes nc-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.nc-ultimahora-text {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-uh-text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nc-ultimahora-text:hover { opacity: 0.7; }
.nc-ultimahora-chevron { font-size: 1.2rem; color: var(--color-uh-chevron); flex-shrink: 0; line-height: 1; }

/* ============================================
   DRAWER LATERAL (móvil) — sin overlay oscuro
   ============================================ */
.nc-mobile-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: var(--color-nav-bg);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    border-right: 1px solid var(--color-nav-border);
    box-shadow: 2px 0 16px rgba(0,0,0,0.06);
}
.nc-mobile-drawer.is-open { transform: translateX(0); }
.nc-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-nav-border);
}
.nc-mobile-drawer-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-nav-text);
    display: flex;
    align-items: center;
}
.nc-mobile-menu { padding: 8px 0; list-style: none; }
.nc-mobile-menu li a {
    display: block;
    padding: 11px 20px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-nav-text);
    border-bottom: 1px solid var(--color-nav-border);
}
.nc-mobile-menu li a:hover { background: var(--color-nav-hover-bg); opacity: 1; }
.nc-mobile-menu li ul { padding-left: 12px; list-style: none; }
.nc-mobile-drawer-social {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--color-nav-border);
}
.nc-mobile-drawer-social a { color: var(--color-nav-text); display: flex; align-items: center; }

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.nc-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 60px 20px 32px;
    background: var(--color-bg);
    z-index: 3000;
    align-items: flex-start;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.nc-search-overlay.is-open { display: flex; }
.nc-search-overlay-inner { width: 100%; max-width: 600px; position: relative; }
.nc-search-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    text-align: center;
}
.nc-search-close {
    position: absolute;
    top: -44px; right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 50%;
}
.nc-search-close:hover { background: var(--color-border); }
.nc-search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.18);
    z-index: 2999;
}
.nc-search-backdrop.is-active { display: block; }
.nc-search-form {
    display: flex;
    border-bottom: 2px solid var(--color-text);
    width: 100%;
}
.nc-search-form input[type="search"] {
    flex: 1;
    padding: 10px 4px;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    outline: none;
    background: transparent;
    color: var(--color-text);
}
.nc-search-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 6px;
    color: var(--color-text);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.nc-breadcrumb-wrap {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    padding: 8px 0;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    color: var(--color-text-muted);
}
.nc-breadcrumbs .nc-container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nc-breadcrumb-sep { color: var(--color-border); }
.nc-breadcrumbs a { color: var(--color-text-muted); }
.nc-breadcrumbs a:hover { color: var(--color-text); opacity: 1; }
.nc-breadcrumbs span { color: var(--color-text); }

/* ============================================
   LAYOUT
   ============================================ */
.nc-site-wrapper { min-height: 60vh; }
.nc-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 40px;
    align-items: start;
    padding: 28px 0 12px;
}
.nc-main { min-width: 0; }

/* ============================================
   HERO (index.php)
   ============================================ */
.nc-hero-to {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 28px 0;
    margin-bottom: 0;
}
.nc-hero-to-title { text-align: center; padding: 0 0 20px; }
.nc-hero-to-title h1 {
    font-size: var(--typo-hero-size);
    font-weight: var(--typo-hero-weight);
    line-height: var(--typo-hero-lh);
    letter-spacing: var(--typo-hero-ls);
    max-width: 820px;
    margin: 0 auto 10px;
}
.nc-hero-to-title h1 a { color: var(--color-text); }
.nc-hero-to-title h1 a:hover { opacity: 0.75; }
.nc-hero-to-title h2 {
    font-size: var(--typo-hero-size);
    font-weight: var(--typo-hero-weight);
    line-height: var(--typo-hero-lh);
    letter-spacing: var(--typo-hero-ls);
    max-width: 820px;
    margin: 0 auto 10px;
}
.nc-hero-to-title h2 a { color: var(--color-text); }
.nc-hero-to-title h2 a:hover { opacity: 0.75; }
.nc-hero-to-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}
/* Imágenes más compactas */
.nc-hero-to-images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 860px; margin: 0 auto; }
.nc-hero-to-item { min-width: 0; }
.nc-hero-to-item .nc-hero-img-wrap { display: block; overflow: hidden; }
.nc-hero-to-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; max-height: 240px; transition: transform 0.4s ease; }
.nc-hero-to-item:hover img { transform: scale(1.02); }
.nc-hero-to-secondary { margin-top: 10px; }
.nc-hero-to-secondary h2 { font-size: 1rem; line-height: 1.3; }
.nc-hero-to-secondary h2 a { color: var(--color-text); }
.nc-hero-to-secondary h2 a:hover { opacity: 0.7; }

/* ============================================
   CARDS
   ============================================ */
.nc-card { background: var(--color-card-bg); overflow: hidden; }
.nc-card-img { overflow: hidden; aspect-ratio: 16/9; display: block; margin-bottom: 10px; }
.nc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nc-card:hover .nc-card-img img { transform: scale(1.03); }
.nc-card-body { padding: 0; }
.nc-card h3 { font-size: var(--typo-card-size); font-weight: var(--typo-card-weight); line-height: var(--typo-card-lh); margin-bottom: 6px; }
.nc-card h3 a { color: var(--color-card-title); }
.nc-card h3 a:hover { opacity: 0.7; }
.nc-card-excerpt { font-family: var(--font-ui); font-size: var(--typo-excerpt-size); color: var(--color-card-excerpt); line-height: var(--typo-excerpt-lh); margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Card horizontal */
.nc-card-horizontal { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--color-card-border); }
.nc-card-horizontal:last-child { border-bottom: none; }
.nc-card-horizontal .nc-card-img { aspect-ratio: auto; margin-bottom: 0; width: 100px; height: 70px; }
.nc-card-horizontal .nc-card-body { padding: 0; }
.nc-card-horizontal h3 { font-size: 0.88rem; }

/* ============================================
   META
   ============================================ */
.nc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-family: var(--font-ui); font-size: var(--typo-meta-size); color: var(--color-text-muted); margin-bottom: 6px; }
.nc-meta a { color: var(--color-text-muted); }
.nc-meta a:hover { color: var(--color-text); opacity: 1; }
.nc-meta-dot { width: 2px; height: 2px; background: var(--color-text-muted); border-radius: 50%; flex-shrink: 0; }

/* Badges de categoría */
.nc-category-badge { display: inline-block; font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-badge-text); border: 1px solid var(--color-badge-border); padding: 2px 7px; border-radius: 2px; }
.nc-category-badge:hover { color: var(--color-text); border-color: var(--color-text); opacity: 1; }

/* ============================================
   GRIDS Y SECCIONES
   ============================================ */
.nc-grid { display: grid; gap: var(--gap); }
.nc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nc-grid-4 { grid-template-columns: repeat(4, 1fr); }

.nc-section { margin-bottom: 32px; }
.nc-section-title {
    font-family: var(--font-ui);
    font-size: var(--typo-section-size);
    font-weight: var(--typo-section-weight);
    text-transform: uppercase;
    letter-spacing: var(--typo-section-ls);
    color: var(--color-section-title);
    border-bottom: 2px solid var(--color-section-border);
    padding-bottom: 8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nc-section-title::after { content: ''; flex: 1; margin-bottom: -1px; }
.nc-section-more { font-size: 0.72rem; font-weight: 500; color: var(--color-text-muted); text-transform: none; letter-spacing: 0; margin-left: auto; }
.nc-section-more:hover { color: var(--color-text); opacity: 1; }

/* Cat feature */
.nc-cat-feature-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap); align-items: start; }
.nc-cat-feature-aside { display: flex; flex-direction: column; border-left: 1px solid var(--color-border); padding-left: var(--gap); }

/* List stack */
.nc-list-stack { display: flex; flex-direction: column; }

/* ============================================
   SIDEBAR
   ============================================ */
.nc-sidebar { position: sticky; top: 52px; }
.nc-sidebar .widget { background: var(--color-sidebar-bg); }
.nc-sidebar .widget:last-child { border-bottom: none; }
.nc-sidebar .widget-title { font-family: var(--font-ui); font-size: var(--typo-sidebar-title-size); font-weight: var(--typo-sidebar-title-weight); text-transform: uppercase; letter-spacing: var(--typo-sidebar-title-ls); color: var(--color-sidebar-title); border-bottom: 2px solid var(--color-sidebar-title); padding-bottom: 8px; margin-bottom: 14px; }
.nc-sidebar ul li { padding: 6px 0; border-bottom: 1px solid var(--color-sidebar-border); font-family: var(--font-ui); font-size: var(--typo-sidebar-link-size); }
.nc-sidebar ul li:last-child { border-bottom: none; }
.nc-sidebar ul li a { color: var(--color-sidebar-link); }
.nc-sidebar ul li a:hover { opacity: 0.65; }
.nc-widget-post { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--color-sidebar-border); align-items: start; }
.nc-widget-post:last-child { border-bottom: none; }
.nc-widget-post img { width: 72px; height: 52px; object-fit: cover; }
.nc-widget-post h4 { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.nc-widget-post h4 a { color: var(--color-sidebar-link); }
.nc-widget-post h4 a:hover { opacity: 0.65; }

/* Sidebar shortcodes */
.nc-sidebar-list { list-style: none; padding: 0; margin: 0; }
.nc-sidebar-list-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--color-sidebar-border); font-family: var(--font-ui); font-size: var(--typo-sidebar-link-size); }
.nc-sidebar-list-item:last-child { border-bottom: none; }
.nc-sidebar-list-item a { color: var(--color-sidebar-link); line-height: var(--typo-sidebar-link-lh); flex: 1; }
.nc-sidebar-list-item a:hover { opacity: 0.65; }
.nc-sidebar-list-content { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nc-sidebar-list-date { font-size: 0.72rem; color: var(--color-text-muted); }
.nc-sidebar-list-num { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 800; color: var(--color-text-muted); min-width: 18px; line-height: 1.5; flex-shrink: 0; }
.nc-sidebar-list-rank { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 900; color: var(--color-border); min-width: 24px; line-height: 1.2; }
.nc-sidebar-cats { list-style: none; padding: 0; margin: 0; }
.nc-sidebar-cats li { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--color-sidebar-border); font-family: var(--font-ui); font-size: 0.85rem; }
.nc-sidebar-cats li:last-child { border-bottom: none; }
.nc-sidebar-cats li a { color: var(--color-sidebar-link); }
.nc-sidebar-cats li a:hover { opacity: 0.65; }
.nc-sidebar-cat-count { font-size: 0.72rem; color: var(--color-text-muted); background: var(--color-border); padding: 1px 6px; border-radius: 10px; font-weight: 600; flex-shrink: 0; }
.nc-widget-related, .nc-widget-latest, .nc-widget-popular, .nc-widget-cats { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--color-sidebar-border); }
.nc-widget-related:last-child, .nc-widget-latest:last-child, .nc-widget-popular:last-child, .nc-widget-cats:last-child { border-bottom: none; }
.nc-widget-related .widget-title, .nc-widget-latest .widget-title, .nc-widget-popular .widget-title, .nc-widget-cats .widget-title { font-family: var(--font-ui); font-size: var(--typo-sidebar-title-size); font-weight: var(--typo-sidebar-title-weight); text-transform: uppercase; letter-spacing: var(--typo-sidebar-title-ls); color: var(--color-sidebar-title); border-bottom: 2px solid var(--color-sidebar-title); padding-bottom: 8px; margin-bottom: 12px; }

/* ============================================
   ARTÍCULO INDIVIDUAL
   ============================================ */
.nc-article-header { margin-bottom: 20px; }
.nc-article-header h1 { font-size: var(--typo-article-h1-size); line-height: var(--typo-article-h1-lh); margin: 10px 0 14px; font-weight: var(--typo-article-h1-weight); letter-spacing: var(--typo-article-h1-ls); color: var(--color-article-title); }
.nc-article-kicker { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-article-kicker); margin-bottom: 8px; }
.nc-article-excerpt-lead { font-family: var(--typo-body-size); font-size: 0.9rem; color: black; border-top: 1px solid var(--color-article-lead-border); padding: 12px 0; margin: 14px 0; line-height: 1.6; }
.nc-article-featured-img { margin: 20px 0; }
.nc-article-featured-img img { width: 100%; max-height: 520px; object-fit: cover; }
.nc-article-featured-img figcaption { font-family: var(--font-ui); font-size: 0.76rem; color: var(--color-text-muted); padding: 6px 0; }
.nc-article-content { max-width: 760px; }
.nc-article-content p { font-size: var(--typo-body-size); line-height: var(--typo-body-lh); margin-bottom: 1.4rem; color: var(--color-article-body); }
.nc-article-content h2 { font-size: 1.3rem; margin: 2rem 0 1rem; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
.nc-article-content h3 { font-size: 1.1rem; margin: 1.6rem 0 0.8rem; }
.nc-article-content ul {
    list-style: disc !important;
    padding-left: 1.6rem;
    margin-bottom: 1.4rem;
}
.nc-article-content ol {
    list-style: decimal !important;
    padding-left: 1.6rem;
    margin-bottom: 1.4rem;
}
.nc-article-content ul li,
.nc-article-content ol li {
    list-style: inherit !important;
    padding: 2px 0;
    border-bottom: none !important;
    font-size: var(--typo-body-size);
    line-height: var(--typo-body-lh);
    margin-bottom: 0.5rem;
}
.nc-article-content ol li {
    list-style: revert;
    padding: 2px 0;
    border-bottom: none;
    font-family: var(--font-body);
    font-size: var(--typo-body-size);
    line-height: var(--typo-body-lh);
}.nc-article-content li { margin-bottom: 0.5rem; }
.nc-article-content a { text-decoration: underline; text-underline-offset: 2px; color: var(--color-article-link); }
.nc-article-content blockquote { border-left: 3px solid var(--color-article-quote-border); padding: 12px 20px; margin: 1.6rem 0; font-style: italic; color: var(--color-text-muted); }

/* Tags */
.nc-article-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nc-article-tags span { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
.nc-tag { display: inline-block; border: 1px solid var(--color-tag-border); padding: 3px 9px; font-family: var(--font-ui); font-size: 0.76rem; color: var(--color-tag-text); transition: all var(--transition); }
.nc-tag:hover { border-color: var(--color-article-link); color: var(--color-article-link); opacity: 1; }

/* H1 oculto SEO */
.nc-h1-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================
   BLOQUE AUTOR — estilo The Objective
   ============================================ */
.nc-author-box {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    margin: 24px 0 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.nc-author-box-avatar-link { flex-shrink: 0; display: block; }
.nc-author-avatar,
.nc-author-box-avatar-link img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid var(--color-border);
}
.nc-author-box-divider {
    width: 1px;
    height: 44px;
    background: var(--color-border);
    margin: 0 18px;
    flex-shrink: 0;
}
.nc-author-box-info { flex: 1; min-width: 0; }
.nc-author-box-name {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
    line-height: 1.2;
}
.nc-author-box-name:hover { opacity: 0.7; }
.nc-author-box-bio {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    display: inline;
}
.nc-author-box-more {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Tags pill debajo del autor */
.nc-article-tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.nc-tag-pill { display: inline-block; border: 1px solid var(--color-border); padding: 5px 12px; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--color-text); border-radius: 2px; transition: all var(--transition); }
.nc-tag-pill:hover { background: var(--color-text); color: var(--color-bg); opacity: 1; }

/* Relacionados */
.nc-related { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--color-border); }

/* Nav anterior/siguiente */
.nc-post-nav { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid var(--color-border); margin-top: 32px; font-family: var(--font-ui); }
.nc-post-nav-prev, .nc-post-nav-next { display: flex; flex-direction: column; gap: 4px; flex: 1; color: var(--color-text); max-width: 45%; }
.nc-post-nav-next { text-align: right; align-items: flex-end; }
.nc-post-nav-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.nc-post-nav-prev strong, .nc-post-nav-next strong { font-size: 0.88rem; line-height: 1.3; }
.nc-post-nav-prev:hover, .nc-post-nav-next:hover { opacity: 0.65; }

/* ============================================
   COMENTARIOS
   ============================================ */
.nc-comments-wrap { margin-top: 48px; }
.nc-comments-title { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text); border-bottom: 2px solid var(--color-text); padding-bottom: 10px; margin-bottom: 0; }
.nc-comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.nc-comment { padding: 0; }
.nc-comment-inner { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--color-border); align-items: flex-start; }
.nc-comment:last-child > .nc-comment-inner { border-bottom: none; }
.nc-comment-avatar-wrap { flex-shrink: 0; }
.nc-comment-avatar,
.nc-comment-avatar-wrap img { width: 40px; height: 40px; border-radius: 50%; display: block; object-fit: cover; border: 1px solid var(--color-border); }
.nc-comment-body { flex: 1; min-width: 0; }
.nc-comment-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.nc-comment-author { font-family: var(--font-ui); font-size: 0.88rem; font-weight: 700; color: var(--color-text); }
.nc-comment-date { font-family: var(--font-ui); font-size: 0.76rem; color: var(--color-text-muted); }
.nc-comment-reply a { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); border: 1px solid var(--color-border); padding: 2px 10px; border-radius: 20px; transition: all var(--transition); }
.nc-comment-reply a:hover { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); opacity: 1; }
.nc-comment-text p { font-family: var(--font-body); font-size: 0.92rem; line-height: 1.7; color: var(--color-text); margin-bottom: 0; }
.nc-comment-pending { font-family: var(--font-ui); font-size: 0.78rem; color: var(--color-text-muted); font-style: italic; margin-top: 6px; }
.nc-comment ol.children { padding-left: 40px; list-style: none; }

/* Formulario comentarios */
.nc-comment-form { margin-top: 28px; }
.nc-comment-form .comment-reply-title { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text); border-bottom: 2px solid var(--color-text); padding-bottom: 10px; margin-bottom: 24px; display: block; }
.nc-comment-form label { display: block; font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: 6px; }
.nc-required { color: var(--color-text); }
.nc-comment-form input[type="text"],
.nc-comment-form input[type="email"],
.nc-comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition);
    display: block;
    appearance: none;
}
.nc-comment-form input:focus, .nc-comment-form textarea:focus { border-color: var(--color-text); }
.nc-comment-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.nc-comment-form .comment-form-author,
.nc-comment-form .comment-form-email,
.nc-comment-field-half { display: inline-block; width: calc(50% - 8px); vertical-align: top; margin-right: 12px; margin-bottom: 16px; }
.nc-comment-form .comment-form-email,
.nc-comment-field-half:last-of-type { margin-right: 0; }
.nc-comment-form .comment-form-comment,
.nc-comment-field { display: block; margin-bottom: 16px; }
.nc-comment-field p { display: block; margin-bottom: 16px; }
.nc-comment-submit { display: inline-flex; align-items: center; gap: 6px; background: var(--color-btn-bg); color: var(--color-btn-text); border: none; padding: 11px 28px; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: opacity var(--transition); margin-top: 8px; }
.nc-comment-submit:hover { opacity: 0.75; }
.nc-comments-closed { font-family: var(--font-ui); font-size: 0.88rem; color: var(--color-text-muted); padding: 16px 0; }

/* ============================================
   ARCHIVE / CATEGORY
   ============================================ */
.nc-archive-header { padding: 20px 0; border-bottom: 2px solid var(--color-text); margin-bottom: 24px; }
.nc-archive-header h1 { font-size: 1.8rem; margin-bottom: 4px; }
.nc-archive-header p { font-family: var(--font-ui); font-size: 0.88rem; color: var(--color-text-muted); margin: 0; }

/* ============================================
   PAGINACIÓN
   ============================================ */
.nc-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 32px 0; font-family: var(--font-ui); }
.nc-pagination a, .nc-pagination span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--color-page-border); font-size: 0.85rem; color: var(--color-page-text); transition: all var(--transition); }
.nc-pagination a:hover, .nc-pagination .current { background: var(--color-page-active-bg); border-color: var(--color-page-active-bg); color: var(--color-page-active-text); opacity: 1; }

/* ============================================
   FOOTER
   ============================================ */
.nc-footer { background: var(--color-footer-bg); color: var(--color-footer-text); margin-top: 48px; }
.nc-footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0 28px; border-bottom: 1px solid var(--color-footer-border); }
.nc-footer-widget h4 { color: var(--color-footer-title); font-family: var(--font-ui); font-size: var(--typo-sidebar-title-size); font-weight: var(--typo-sidebar-title-weight); text-transform: uppercase; letter-spacing: var(--typo-sidebar-title-ls); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--color-footer-border); }
.nc-footer-widget ul li { padding: 4px 0; }
.nc-footer-widget ul li a { color: var(--color-footer-link); font-family: var(--font-ui); font-size: var(--typo-footer-size); }
.nc-footer-widget ul li a:hover { color: var(--color-footer-title); opacity: 1; }
.nc-footer-bottom { background: var(--color-footer-bottom-bg); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-ui); font-size: var(--typo-footer-size); line-height: var(--typo-footer-lh); }
.nc-footer-bottom a { color: var(--color-footer-bottom-text); }
.nc-footer-bottom a:hover { color: var(--color-footer-title); opacity: 1; }

/* ============================================
   BOTONES Y UTILIDADES
   ============================================ */
.nc-btn { display: inline-block; padding: 10px 22px; font-family: var(--font-ui); font-size: var(--typo-btn-size); font-weight: var(--typo-btn-weight); text-transform: uppercase; letter-spacing: var(--typo-btn-ls); cursor: pointer; transition: all var(--transition); }
.nc-btn-primary { background: var(--color-btn-bg); color: var(--color-btn-text); border: 1px solid var(--color-btn-bg); }
.nc-btn-primary:hover { opacity: 0.8; }
.nc-no-image { background: var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 1.8rem; }
.nc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nc-layout { grid-template-columns: 1fr; }
    .nc-sidebar { position: static; padding-top: 24px; border-top: 1px solid var(--color-border); }
    .nc-footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .nc-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .nc-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nc-hero-to-images { grid-template-columns: 1fr 1fr; }
    .nc-cat-feature-grid { grid-template-columns: 1fr; }
    .nc-cat-feature-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--color-border); padding-top: var(--gap); }
}

@media (max-width: 768px) {
    .nc-topbar-ticker { display: none; }
    .nc-topbar-right { display: none; }
    .nc-nav { display: none; } /* Solo en móvil — el drawer lo sustituye */
    .nc-grid-3, .nc-grid-2 { grid-template-columns: 1fr; }
    .nc-grid-4 { grid-template-columns: 1fr; }
    .nc-hero-to-images { grid-template-columns: 1fr; }
    .nc-hero-to-title h1 { font-size: 1.8rem; }
    .nc-hero-to-title h2 { font-size: 1.8rem; }
    .nc-footer-widgets { grid-template-columns: 1fr; }
    .nc-author-box-divider { margin: 0 14px; }
    .nc-post-nav { flex-direction: column; gap: 12px; }
    .nc-post-nav-prev, .nc-post-nav-next { max-width: 100%; }
    .nc-post-nav-next { text-align: left; align-items: flex-start; }
    .nc-comment-form .comment-form-author,
    .nc-comment-form .comment-form-email,
    .nc-comment-field-half { width: 100%; margin-right: 0; display: block; }
}

@media (max-width: 480px) {
    .nc-404 .nc-404-number { font-size: 5rem; }
    .nc-ultimahora-text { font-size: 0.78rem; }
}

/* ============================================
   404
   ============================================ */
.nc-404 { text-align: center; padding: 80px 20px; }
.nc-404 .nc-404-number { font-family: var(--font-heading); font-size: 8rem; font-weight: 900; color: var(--color-border); line-height: 1; margin-bottom: 16px; }
.nc-404 h2 { font-size: 1.6rem; margin-bottom: 12px; }
.nc-404 p { color: var(--color-text-muted); margin-bottom: 24px; font-family: var(--font-ui); }

/* Ocultar el botón "más" que WordPress añade cuando el menú no cabe */
.nc-nav .menu-item-type-custom.menu-item-object-custom,
.nc-nav button.menu-toggle,
.nc-nav .nav-menu-toggle,
.nc-nav > div > button,
.nc-nav ul > li:last-child > button,
button.menu-toggle { display: none !important; }

/* ============================================
   SECCIONES FULL-WIDTH (sin sidebar)
   ============================================ */
.nc-fullwidth-sections {
    padding-bottom: 16px;
}

.nc-fullwidth-section .nc-cat-feature-grid {
    /* En full-width el destacado grande ocupa más espacio */
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 768px) {
    .nc-fullwidth-section .nc-cat-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ESTILO SECCIÓN: SOLO TÍTULOS (titles)
   ============================================ */
.nc-titles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}

.nc-titles-list-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.nc-titles-list-item:last-child { border-bottom: none; }

.nc-titles-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-border);
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
    letter-spacing: -0.04em;
}

.nc-titles-content {
    flex: 1;
    min-width: 0;
}

.nc-titles-content .nc-meta {
    margin-bottom: 4px;
}

.nc-titles-link {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    display: block;
}

.nc-titles-link:hover { opacity: 0.65; }

/* Full-width: los títulos pueden ir en 2 columnas */
.nc-fullwidth-section .nc-cat-style-titles .nc-titles-list {
    columns: 2;
    column-gap: 40px;
}

.nc-fullwidth-section .nc-cat-style-titles .nc-titles-list-item {
    break-inside: avoid;
}

@media (max-width: 768px) {
    .nc-fullwidth-section .nc-cat-style-titles .nc-titles-list {
        columns: 1;
    }
}

/* ============================================
   PERSONALIDAD VISUAL — fondos y acentos
   ============================================ */

/* Secciones full-width con fondo alterno */
.nc-fullwidth-sections .nc-fullwidth-section:nth-child(odd) {
    background: var(--color-card-bg, transparent);
    padding: 28px 0;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.nc-fullwidth-sections .nc-fullwidth-section:nth-child(even) {
    background: transparent;
    padding: 28px 0;
}

/* Título de sección con acento en el borde */
.nc-section-title {
    border-bottom: 3px solid var(--color-primary);
}

/* Última hora: badge con acento, barra con fondo muy sutil */
.nc-ultimahora-bar {
    background: var(--color-bg);
    border-top: 3px solid var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}

/* Layout: separar visualmente el bloque con sidebar del hero */
.nc-layout {
    background: var(--color-bg);
    padding-top: 28px;
    padding-bottom: 12px;
}

/* Sidebar */
.nc-sidebar {
    background: var(--color-sidebar-bg, var(--color-bg));
    padding: 20px 16px;
    border-radius: 2px;
}

.nc-sidebar .widget {
    background: transparent;
}

/* Botón de menú hamburguesa con color de acento */
.nc-topbar-btn svg rect {
    fill: currentColor;
}

/* Punto de última hora con contraste */
.nc-uh-dot {
    background: var(--color-uh-dot);
}

/* Cards: línea de acento sutil al hacer hover */
.nc-card:hover h3 a {
    opacity: 0.75;
}

/* Título hero: línea de acento debajo */
.nc-hero-to-title::after {
    display: none;
}

/* ============================================
   BARRA DE PROGRESO DE LECTURA
   ============================================ */
.nc-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-primary);
    z-index: 99999;
    transition: width 0.15s linear;
    transform-origin: left;
    pointer-events: none;
}

/* ============================================
   BARRA DE FECHA EDITORIAL (dateline)
   ============================================ */
.nc-header-dateline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px 0 14px;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.nc-dateline-date { font-weight: 500; }
.nc-dateline-sep  { color: var(--color-border); }
.nc-dateline-slogan { font-style: italic; }

/* ============================================
   BADGES EDITORIALES (Exclusiva, Opinión, etc.)
   ============================================ */
.nc-editorial-badge {
    display: inline-block;
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 6px;
}

/* ============================================
   TIEMPO DE LECTURA
   ============================================ */
.nc-read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

/* ============================================
   NEWSLETTER INLINE
   ============================================ */
.nc-newsletter-inline {
    margin: 2rem 0;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding: 20px 0;
}

.nc-newsletter-inline-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nc-newsletter-inline-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.nc-newsletter-inline-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nc-newsletter-inline-text strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.nc-newsletter-inline-text span {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.nc-newsletter-inline-btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-topbar-text) !important;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 20px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.nc-newsletter-inline-btn:hover { opacity: 0.85; }

@media (max-width: 600px) {
    .nc-newsletter-inline-inner { flex-direction: column; align-items: flex-start; }
    .nc-newsletter-inline-btn   { width: 100%; text-align: center; }
}

/* ============================================
   SECCIÓN DE OPINIÓN — estilo claro
   ============================================ */
.nc-opinion-section {
    background: transparent;
    padding: 0;
    margin-top: 16px;
}
.nc-opinion-title {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-section-title);
    border-bottom: 2px solid var(--color-section-border);
    padding-bottom: 8px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nc-opinion-more {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: auto;
}
.nc-opinion-more:hover { color: var(--color-text); opacity: 1; }
.nc-opinion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.nc-opinion-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-section-border);
    border-radius: 0;
    transition: border-color var(--transition);
}
.nc-opinion-card:hover { border-top-color: var(--color-primary); }
.nc-opinion-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nc-opinion-avatar,
.nc-opinion-card-author img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}
.nc-opinion-card-name {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}
.nc-opinion-card-name:hover { color: var(--color-primary); opacity: 1; }
.nc-opinion-card-role {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}
.nc-opinion-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.nc-opinion-card-title a { color: var(--color-text); }
.nc-opinion-card-title a:hover { color: var(--color-text); opacity: 0.75; }
.nc-opinion-card-excerpt {
    font-family: var(--font-ui);
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-opinion-card-link {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
}
.nc-opinion-card-link:hover { opacity: 0.6; }
@media (max-width: 1024px) {
    .nc-opinion-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .nc-opinion-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CRÉDITO WIKIMEDIA COMMONS
   ============================================ */
.nc-wikimedia-credit {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    padding: 5px 0;
    font-style: italic;
}
.nc-wikimedia-credit a {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nc-wikimedia-credit a:hover { color: var(--color-text); opacity: 1; }

/* ============================================
   TOPBAR MINIMAL (sin ticker, solo iconos)
   ============================================ */
.nc-topbar--minimal {
    padding: 4px 0;
}

.nc-topbar--minimal .nc-topbar-inner {
    justify-content: space-between;
}

/* ============================================
   LOGO EN DRAWER MÓVIL
   ============================================ */
.nc-mobile-logo {
    display: flex;
    align-items: center;
    max-width: 160px;
}

.nc-mobile-logo .nc-logo-img {
    max-height: 36px;
    width: auto;
}

.nc-mobile-logo .nc-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-nav-text);
    line-height: 1;
}

/* ============================================
   LAYOUT SIN SIDEBAR — ancho completo
   ============================================ */
.nc-layout--full {
    grid-template-columns: 1fr;
    max-width: 860px;
}

/* ============================================
   CONTADOR DE VISITAS (post views)
   ============================================ */
.nc-views-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--color-text-muted);
}