/**
 * O24 Pro News - Hoja de Estilos Principal (High Performance, Zero Bloat)
 *
 * Optimizada para Core Web Vitals (CLS = 0, LCP < 1.2s), Google Discover y Modo Oscuro.
 *
 * @package O24_Pro
 */

:root {
    --o24-primary: #0f172a;
    --o24-primary-rgb: 15, 23, 42;
    --o24-accent: #dc2626;
    --o24-accent-hover: #b91c1c;
    --o24-bg: #f8fafc;
    --o24-card-bg: #ffffff;
    --o24-border: #e2e8f0;
    --o24-text-primary: #0f172a;
    --o24-text-secondary: #475569;
    --o24-text-muted: #94a3b8;
    --o24-ad-bg: #f1f5f9;
    --o24-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --o24-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --o24-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --o24-radius: 8px;
    --o24-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --o24-font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --o24-base-size: 17px;
    --o24-font: var(--o24-font-body);
}

[data-theme="dark"] {
    --o24-primary: #f8fafc;
    --o24-primary-rgb: 248, 250, 252;
    --o24-accent: #ef4444;
    --o24-accent-hover: #dc2626;
    --o24-bg: #090d16;
    --o24-card-bg: #111827;
    --o24-border: #1f2937;
    --o24-text-primary: #f3f4f6;
    --o24-text-secondary: #9ca3af;
    --o24-text-muted: #6b7280;
    --o24-ad-bg: #161f30;
    --o24-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --o24-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --o24-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESET BÁSICO & ACCESIBILIDAD
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--o24-font-body);
    font-size: var(--o24-base-size);
    background-color: var(--o24-bg);
    color: var(--o24-text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6,
.o24-brand-link,
.o24-nav-menu,
.o24-section-title,
.entry-title,
.o24-lead-title,
.o24-secondary-title,
.o24-card-title,
.o24-trending-title,
.o24-widget-title,
.o24-footer-title,
.o24-badge,
.o24-ticker-badge {
    font-family: var(--o24-font-heading);
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--o24-accent);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.o24-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   CABECERA & BARRA SUPERIOR
   ========================================================================== */
.o24-site-header {
    background: var(--o24-card-bg);
    border-bottom: 1px solid var(--o24-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--o24-shadow-sm);
}

/* 1. Topbar */
.o24-topbar {
    background-color: #0b1120;
    color: #cbd5e1;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.o24-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    gap: 1rem;
}

.o24-topbar-date {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #94a3b8;
}

.o24-ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
    max-width: 600px;
}

.o24-ticker-badge {
    background: var(--o24-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    animation: o24-pulse 2s infinite;
}

@keyframes o24-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.o24-ticker-slider {
    overflow: hidden;
    position: relative;
    height: 22px;
    width: 100%;
}

.o24-ticker-list {
    position: relative;
    white-space: nowrap;
    transition: transform 0.4s ease;
}

.o24-ticker-item {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.o24-ticker-item a {
    color: #e2e8f0;
}

.o24-ticker-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.o24-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.o24-top-social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.75rem;
}

.o24-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.o24-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .o24-icon-moon { display: none; }
[data-theme="dark"] .o24-icon-sun { display: block; }
:root:not([data-theme="dark"]) .o24-icon-sun { display: none; }
:root:not([data-theme="dark"]) .o24-icon-moon { display: block; }

/* 2. Main Header */
.o24-main-header {
    padding: 0.875rem 0;
}

.o24-main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.o24-branding {
    display: flex;
    flex-direction: column;
}

.o24-brand-link {
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.o24-brand-o {
    color: var(--o24-accent);
}

.o24-brand-24 {
    color: var(--o24-text-primary);
}

.o24-brand-badge {
    background: var(--o24-text-primary);
    color: var(--o24-card-bg);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 800;
    align-self: flex-start;
}

.o24-site-tagline {
    font-size: 0.75rem;
    color: var(--o24-text-muted);
    margin-top: 2px;
}

.o24-header-ad {
    display: none; /* Visible en pantallas >= 992px */
    flex: 1;
    max-width: 728px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .o24-header-ad {
        display: block;
    }
}

.o24-mobile-toggle, .o24-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--o24-radius);
    color: var(--o24-text-primary);
    background: var(--o24-bg);
}

.o24-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: 0.2s;
}

@media (min-width: 992px) {
    .o24-mobile-toggle {
        display: none;
    }
}

/* 3. Main Navigation */
.o24-main-navigation {
    display: none;
    background: var(--o24-card-bg);
    border-top: 1px solid var(--o24-border);
}

@media (min-width: 992px) {
    .o24-main-navigation {
        display: block;
    }
}

.o24-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    height: 46px;
}

.o24-nav-menu li a {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--o24-text-primary);
    position: relative;
    padding: 10px 0;
}

.o24-nav-menu li.current-menu-item a,
.o24-nav-menu li a:hover {
    color: var(--o24-accent);
}

.o24-nav-menu li.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--o24-accent);
    border-radius: 2px 2px 0 0;
}

/* ==========================================================================
   PUBLICIDAD & ADSENSE OPTIMIZADO (PREVENCIÓN DE CLS)
   ========================================================================== */
.o24-ad-slot {
    margin: 1.5rem auto;
    text-align: center;
    clear: both;
    max-width: 100%;
}

.o24-ad-disclaimer {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--o24-text-muted);
    margin-bottom: 5px;
}

.o24-ad-container {
    background-color: var(--o24-ad-bg);
    border: 1px dashed var(--o24-border);
    border-radius: var(--o24-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    min-height: 250px; /* Previene saltos de diseño (CLS = 0) */
}

.o24-ad-header .o24-ad-container {
    min-height: 90px;
    max-width: 728px;
    height: 90px;
}

@media (max-width: 768px) {
    .o24-ad-header .o24-ad-container {
        min-height: 50px;
        height: 50px;
    }
}

.o24-ad-sidebar_sticky .o24-ad-container {
    min-height: 250px;
    max-width: 300px;
}

.o24-ad-placeholder {
    font-size: 0.75rem;
    color: var(--o24-text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 1rem;
}

/* Barra lateral Sticky */
.o24-sidebar-sticky-wrap {
    position: sticky;
    top: 85px;
    z-index: 10;
}

/* Ancla Móvil Adhesiva (Sticky Bottom Anchor) */
.o24-mobile-anchor-ad {
    display: none;
}

@media (max-width: 768px) {
    .o24-mobile-anchor-ad {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--o24-card-bg);
        border-top: 1px solid var(--o24-border);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .o24-anchor-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 2px 8px;
        background: #0f172a;
        color: #ffffff;
    }

    .o24-anchor-label {
        font-size: 0.5625rem;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .o24-anchor-close {
        color: #ffffff;
        font-size: 1.1rem;
        line-height: 1;
        padding: 0 4px;
    }

    .o24-anchor-body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 50px;
        max-height: 100px;
        overflow: hidden;
    }

    .o24-ad-placeholder-mini {
        font-size: 0.6875rem;
        color: var(--o24-text-muted);
        padding: 8px;
    }
}

/* ==========================================================================
   LAYOUTS & GRID PRINCIPAL
   ========================================================================== */
.o24-site-content {
    padding: 1.5rem 0 3rem;
}

.o24-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .o24-layout-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

/* ==========================================================================
   HERO GRID MAGAZINE (PORTADA)
   ========================================================================== */
.o24-hero-section {
    margin-bottom: 2rem;
}

.o24-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .o24-hero-grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

.o24-hero-lead {
    background: var(--o24-card-bg);
    border-radius: var(--o24-radius);
    overflow: hidden;
    box-shadow: var(--o24-shadow-md);
    border: 1px solid var(--o24-border);
}

.o24-hero-lead-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0b1120;
}

.o24-lead-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.o24-hero-lead:hover .o24-lead-img {
    transform: scale(1.03);
}

.o24-card-badge-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.o24-badge {
    display: inline-block;
    background: var(--o24-accent);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
}

.o24-hero-lead-body {
    padding: 1.5rem;
}

.o24-lead-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.o24-lead-title a:hover {
    color: var(--o24-accent);
}

.o24-lead-excerpt {
    font-size: 0.9375rem;
    color: var(--o24-text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.o24-hero-secondary-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.o24-card-secondary {
    display: flex;
    gap: 1rem;
    background: var(--o24-card-bg);
    border-radius: var(--o24-radius);
    padding: 0.875rem;
    box-shadow: var(--o24-shadow-sm);
    border: 1px solid var(--o24-border);
    align-items: center;
}

.o24-secondary-media {
    width: 130px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #0b1120;
}

.o24-secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.o24-secondary-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0;
}

/* ==========================================================================
   CABECERA DE SECCIÓN / ARCHIVO / CATEGORÍA (EDITORIAL & LIMPIO)
   ========================================================================== */
.o24-archive-header {
    background: var(--o24-card-bg);
    border: 1px solid var(--o24-border);
    border-radius: var(--o24-radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--o24-shadow-sm);
    border-left: 5px solid var(--o24-accent);
}

.o24-archive-badge-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.o24-archive-badge {
    background: var(--o24-accent);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
}

.o24-archive-count {
    font-size: 0.8125rem;
    color: var(--o24-text-muted);
    font-weight: 600;
}

.o24-archive-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--o24-text-primary);
    margin: 0;
}

.o24-archive-description {
    font-size: 0.9375rem;
    color: var(--o24-text-secondary);
    line-height: 1.55;
    margin-top: 0.75rem;
}

/* ==========================================================================
   TARJETAS DE NOTICIAS (CARDS)
   ========================================================================== */
.o24-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--o24-border);
    padding-bottom: 0.5rem;
}

.o24-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.o24-title-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--o24-accent);
    border-radius: 2px;
}

.o24-view-all {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--o24-accent);
}

.o24-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .o24-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.o24-cards-grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .o24-cards-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.o24-card-standard {
    background: var(--o24-card-bg);
    border-radius: var(--o24-radius);
    overflow: hidden;
    border: 1px solid var(--o24-border);
    box-shadow: var(--o24-shadow-sm);
    display: flex;
    flex-direction: column;
}

.o24-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b1120;
}

.o24-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.o24-card-standard:hover .o24-card-img {
    transform: scale(1.03);
}

.o24-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.o24-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.o24-card-excerpt {
    font-size: 0.84375rem;
    color: var(--o24-text-secondary);
    line-height: 1.45;
    margin-bottom: 0.75rem;
    flex: 1;
}

.o24-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--o24-text-muted);
}

/* ==========================================================================
   BARRA LATERAL & "LO MÁS LEÍDO" (ALTO CTR)
   ========================================================================== */
.o24-widget {
    background: var(--o24-card-bg);
    border-radius: var(--o24-radius);
    border: 1px solid var(--o24-border);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--o24-shadow-sm);
}

.o24-widget-title {
    font-size: 1.0625rem;
    font-weight: 800;
    border-bottom: 2px solid var(--o24-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.o24-trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.o24-trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.o24-trending-rank {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--o24-accent);
    min-width: 24px;
}

.o24-trending-title {
    font-size: 0.90625rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 3px 0;
}

.o24-trending-date {
    font-size: 0.6875rem;
    color: var(--o24-text-muted);
}

.o24-widget-community {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
}

.o24-community-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.o24-community-desc {
    font-size: 0.8125rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.o24-community-btn {
    display: inline-block;
    background: #ffffff;
    color: #0369a1;
    font-weight: 800;
    font-size: 0.8125rem;
    padding: 8px 16px;
    border-radius: 6px;
    text-align: center;
}

.o24-community-btn:hover {
    background: #f0fdf4;
    color: #15803d;
}

/* ==========================================================================
   ARTÍCULO INDIVIDUAL (SINGLE POST) - SEO & LECTURA
   ========================================================================== */
.o24-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--o24-text-muted);
    margin-bottom: 1.25rem;
}

.o24-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.o24-breadcrumbs a:hover {
    color: var(--o24-accent);
}

.o24-breadcrumb-sep {
    color: var(--o24-border);
}

.o24-single-article {
    background: var(--o24-card-bg);
    border-radius: var(--o24-radius);
    padding: 1.5rem;
    border: 1px solid var(--o24-border);
    box-shadow: var(--o24-shadow-sm);
}

@media (min-width: 768px) {
    .o24-single-article {
        padding: 2.25rem;
    }
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-category-wrap {
    margin-bottom: 0.75rem;
}

.entry-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--o24-text-primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .entry-title {
        font-size: 2.45rem;
    }
}

.entry-excerpt {
    font-size: 1.15rem;
    color: var(--o24-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    font-weight: 500;
    border-left: 3px solid var(--o24-accent);
    padding-left: 1rem;
}

.o24-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--o24-text-secondary);
    padding: 0.75rem 0;
    border-top: 1px solid var(--o24-border);
    border-bottom: 1px solid var(--o24-border);
}

.o24-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.o24-author-avatar img {
    border-radius: 50%;
}

.o24-meta-divider {
    color: var(--o24-text-muted);
}

.o24-meta-readtime {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Barra de Compartir */
.o24-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

.o24-share-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--o24-text-muted);
}

.o24-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.o24-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
}

.o24-share-wa {
    background-color: #25D366;
}
.o24-share-wa:hover {
    background-color: #128C7E;
    color: #ffffff;
}

.o24-share-tg {
    background-color: #0088cc;
}
.o24-share-tg:hover {
    background-color: #006699;
    color: #ffffff;
}

.o24-share-fb {
    background-color: #1877F2;
    padding: 6px 10px;
}
.o24-share-fb:hover {
    background-color: #0c63d4;
    color: #ffffff;
}

.o24-share-tw {
    background-color: #000000;
    padding: 6px 10px;
}
.o24-share-tw:hover {
    background-color: #333333;
    color: #ffffff;
}

.o24-share-copy {
    background-color: var(--o24-bg);
    color: var(--o24-text-primary);
    border: 1px solid var(--o24-border);
}
.o24-share-copy:hover {
    border-color: var(--o24-accent);
}

/* Fotografía Destacada */
.entry-featured-media {
    margin: 1.5rem 0;
    border-radius: var(--o24-radius);
    overflow: hidden;
}

.entry-featured-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.entry-caption {
    font-size: 0.75rem;
    color: var(--o24-text-muted);
    padding: 6px 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CUERPO DEL ARTÍCULO (TIPOGRAFÍA EDITORIAL) */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--o24-text-primary);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: var(--o24-text-primary);
}

.entry-content h3 {
    font-size: 1.3125rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.entry-content blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--o24-bg);
    border-left: 4px solid var(--o24-accent);
    border-radius: 0 var(--o24-radius) var(--o24-radius) 0;
    font-style: italic;
    font-size: 1.15rem;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Estilo para la atribución de gob.pe generada por n8n */
.o24-fuente,
.entry-content .o24-fuente {
    background: var(--o24-bg);
    border: 1px solid var(--o24-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.84375rem;
    color: var(--o24-text-secondary);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tabla de Contenidos (TOC) */
.o24-toc-container {
    background: var(--o24-bg);
    border: 1px solid var(--o24-border);
    border-radius: var(--o24-radius);
    padding: 1.25rem;
    margin: 1.75rem 0;
}

.o24-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.o24-toc-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.o24-toc-toggle {
    font-size: 0.75rem;
    color: var(--o24-accent);
    font-weight: 700;
}

.o24-toc-list {
    list-style: decimal;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9375rem;
}

.o24-toc-list a:hover {
    color: var(--o24-accent);
    text-decoration: underline;
}

/* Etiquetas */
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 1.5rem 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--o24-border);
}

.entry-tags-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--o24-text-muted);
}

.entry-tags a {
    display: inline-block;
    background: var(--o24-bg);
    border: 1px solid var(--o24-border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.75rem;
    color: var(--o24-text-secondary);
}

.entry-tags a:hover {
    border-color: var(--o24-accent);
    color: var(--o24-accent);
}

/* Caja de Autor E-E-A-T */
.o24-author-box {
    background: var(--o24-bg);
    border: 1px solid var(--o24-border);
    border-radius: var(--o24-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.o24-author-box-avatar img {
    border-radius: 50%;
    flex-shrink: 0;
}

.o24-author-box-role {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--o24-accent);
    font-weight: 800;
}

.o24-author-box-name {
    font-size: 1.1875rem;
    font-weight: 800;
    margin: 2px 0 6px;
}

.o24-author-box-bio {
    font-size: 0.875rem;
    color: var(--o24-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.o24-author-more-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--o24-accent);
}

/* Navegación Anterior / Siguiente */
.o24-post-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--o24-border);
    border-bottom: 1px solid var(--o24-border);
}

@media (min-width: 640px) {
    .o24-post-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.o24-nav-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--o24-text-muted);
    margin-bottom: 4px;
}

.o24-nav-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Noticias Relacionadas */
.o24-related-posts {
    margin: 2.5rem 0;
}

.o24-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .o24-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.o24-site-footer {
    background-color: #070b14;
    color: #cbd5e1;
    border-top: 3px solid var(--o24-accent);
    margin-top: 3rem;
}

.o24-footer-main {
    padding: 3rem 0;
}

.o24-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .o24-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .o24-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.o24-footer-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.o24-footer-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.o24-footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.o24-footer-social-btn {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.o24-footer-title {
    font-size: 0.9375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 6px;
}

.o24-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--o24-accent);
}

.o24-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8125rem;
}

.o24-footer-links a {
    color: #94a3b8;
}

.o24-footer-links a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.o24-footer-bottom {
    background-color: #03060a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    font-size: 0.75rem;
    color: #64748b;
}

.o24-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.o24-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-weight: 700;
}

.o24-back-to-top:hover {
    color: #ffffff;
}

/* ==========================================================================
   MODAL DE BÚSQUEDA & MENÚ MÓVIL (OFF-CANVAS)
   ========================================================================== */
.o24-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.o24-search-modal.active {
    display: flex;
}

.o24-search-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.o24-search-modal-box {
    position: relative;
    background: var(--o24-card-bg);
    border-radius: var(--o24-radius);
    padding: 2rem;
    width: 90%;
    max-width: 580px;
    box-shadow: var(--o24-shadow-lg);
    border: 1px solid var(--o24-border);
}

.o24-search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--o24-text-muted);
}

.o24-search-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.o24-modal-search-form {
    display: flex;
    gap: 8px;
}

.o24-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--o24-border);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--o24-bg);
    color: var(--o24-text-primary);
}

.o24-search-input:focus {
    outline: none;
    border-color: var(--o24-accent);
}

.o24-search-submit-btn {
    background: var(--o24-accent);
    color: #ffffff;
    font-weight: 800;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
}

/* Off-canvas menu */
.o24-offcanvas-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.o24-offcanvas-menu.active {
    display: block;
}

.o24-offcanvas-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.o24-offcanvas-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--o24-card-bg);
    box-shadow: var(--o24-shadow-lg);
    display: flex;
    flex-direction: column;
}

.o24-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--o24-border);
}

.o24-offcanvas-title {
    font-weight: 800;
    font-size: 1rem;
}

.o24-offcanvas-close {
    font-size: 1.5rem;
    color: var(--o24-text-muted);
}

.o24-offcanvas-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.o24-mobile-nav-list li {
    margin-bottom: 1rem;
}

.o24-mobile-nav-list li a {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

/* 404 Box */
.o24-404-box {
    text-align: center;
    max-width: 680px;
    margin: 3rem auto;
    padding: 2rem 1rem;
}

.o24-404-num {
    font-size: 6rem;
    font-weight: 900;
    color: var(--o24-accent);
    line-height: 1;
}

.o24-404-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
}

.o24-404-desc {
    font-size: 1.0625rem;
    color: var(--o24-text-secondary);
    margin-bottom: 1.5rem;
}

.o24-404-links {
    margin: 1.5rem 0 3rem;
}

.o24-btn-home {
    display: inline-block;
    background: var(--o24-accent);
    color: #ffffff;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 6px;
}

/* Paginación */
.o24-pagination {
    margin: 2.5rem 0;
    text-align: center;
}

.o24-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.o24-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--o24-card-bg);
    border: 1px solid var(--o24-border);
    font-size: 0.875rem;
    font-weight: 700;
}

.o24-pagination .page-numbers.current {
    background: var(--o24-accent);
    color: #ffffff;
    border-color: var(--o24-accent);
}
