/* ==========================================================================
   1. IMPORTACIÓN DE FUENTES & RESET GENERAL
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,700&family=DM+Mono:wght@500;700&family=Inter:wght@400;500;600;700;800;900&family=Merriweather:ital,wght@0,300;0,400;1,300&display=swap');

:root {
    --bg-main: #ffffff;
    --pgp-dark-bg: #060e1e; 
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --brand-red: #dc2626;
    --border-color: #e2e8f0;
    
    /* Tipografía */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Barlow Condensed', -apple-system, sans-serif;
    --font-serif-content: 'Merriweather', Georgia, serif;
    --font-serif-excerpt: Georgia, 'Times New Roman', serif;
    --font-mono: 'DM Mono', monospace, SFMono-Regular, Menlo, Monaco, Consolas;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Base Display para Encabezados */
h1, h2, h3, h4, h5, h6, 
.lead-title, 
.col2-top-title, 
.subhero-title, 
.pgp-block-title, 
.asym-title, 
.card-title, 
.latest-title,
.widget-title,
.sidebar-media-title {
    font-family: var(--font-display);
    text-transform: none;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */
header.site-header { 
    background: var(--pgp-dark-bg); 
    color: #ffffff; 
    padding: 1.2rem 0; 
    border-bottom: 1px solid rgba(255,255,255,0.08); 
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { 
    font-family: var(--font-sans);
    margin: 0; 
    font-size: 1.85rem; 
    font-weight: 900; 
    letter-spacing: -0.5px; 
}
.logo a { color: #ffffff; }
.logo .highlight { color: var(--brand-red); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; }
.main-nav a { color: #ffffff; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ==========================================================================
   3. HOME HERO
   ========================================================================== */
.pgp-home-wrapper { 
    background: #ffffff;
    padding-top: 2.25rem; 
    padding-bottom: 1.5rem; 
}

.pgp-home-hero-white { 
    display: grid; 
    grid-template-columns: 1.45fr 1fr 300px; 
    gap: 1.5rem; 
    align-items: start; 
    padding-bottom: 1.75rem; 
    margin-bottom: 1.75rem; 
    border-bottom: 1px solid var(--border-color); 
    background: #ffffff;
}
@media (max-width: 1024px) { 
    .pgp-home-hero-white { grid-template-columns: 1fr 1fr; } 
    .pgp-hero-latest-col { display: none; } 
}
@media (max-width: 768px) { 
    .pgp-home-hero-white { grid-template-columns: 1fr; } 
}

/* Columna 1: Nota Principal (Headline 32px) */
.pgp-hero-main-col { padding-right: 0.5rem; }
.pgp-hero-lead-card { display: block; text-decoration: none; color: inherit; }
.pgp-hero-lead-card .lead-thumb-wrap { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
    background: #f1f5f9; 
    margin-bottom: 0.85rem; 
    border-radius: 2px; 
}
.pgp-hero-lead-card .lead-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }

.lead-title { 
    font-family: var(--font-display);
    font-size: 32px; 
    line-height: 1.1; 
    font-weight: 700; 
    letter-spacing: -0.1px; 
    margin: 0 0 0.5rem 0; 
    color: var(--text-primary); 
}

.lead-excerpt { 
    font-family: var(--font-serif-excerpt); 
    font-size: 0.975rem; 
    line-height: 1.45;
    color: var(--text-secondary); 
    margin: 0; 
}

/* Columna 2: Layout Híbrido */
.pgp-hero-stack-col { 
    display: flex; 
    flex-direction: column; 
    border-left: 1px solid var(--border-color); 
    border-right: 1px solid var(--border-color); 
    padding: 0 1.25rem; 
}
@media (max-width: 1024px) { 
    .pgp-hero-stack-col { border-right: none; padding-right: 0; } 
}
@media (max-width: 768px) { 
    .pgp-hero-stack-col { border-left: none; padding: 0; } 
}

.pgp-col2-top-lead {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.65rem;
}
.pgp-col2-top-lead .col2-top-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
    background: #e2e8f0;
    margin-bottom: 0.4rem;
}
.pgp-col2-top-lead .col2-top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.col2-top-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.18;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.pgp-col2-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.35rem 0 0.65rem 0;
}

.pgp-col2-bottom-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pgp-stack-card { 
    display: flex; 
    gap: 0.75rem; 
    align-items: center; 
    text-decoration: none; 
    color: inherit; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 0.55rem; 
}
.pgp-stack-card:last-child { 
    border-bottom: none; 
    padding-bottom: 0; 
}

.pgp-stack-card .stack-thumb { 
    width: 68px; 
    height: 48px; 
    flex-shrink: 0; 
    overflow: hidden; 
    border-radius: 2px; 
    background: #e2e8f0; 
}
.pgp-stack-card .stack-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.stack-info h4 { 
    font-family: var(--font-display);
    font-size: 1.05rem; 
    line-height: 1.18; 
    font-weight: 600; 
    margin: 0; 
    color: var(--text-primary); 
}

/* Columna 3: Feed Al Momento */
.pgp-hero-latest-col { 
    background: transparent; 
    border: none; 
    padding: 0; 
    display: flex; 
    flex-direction: column; 
}
.latest-header { 
    border-bottom: 1px solid var(--text-primary); 
    padding-bottom: 0.35rem; 
    margin-bottom: 0.5rem; 
}
.latest-title { 
    font-family: var(--font-display);
    font-size: 1.05rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin: 0; 
    color: var(--text-primary);
}
.latest-feed-list { display: flex; flex-direction: column; }
.latest-feed-item { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--border-color); text-decoration: none; }
.latest-feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.latest-meta { display: flex; align-items: center; font-family: var(--font-mono); font-size: 0.65rem; margin-bottom: 0.15rem; }
.latest-time { color: var(--text-muted); }
.latest-feed-item h4 { 
    font-family: var(--font-display);
    font-size: 1.05rem; 
    line-height: 1.18; 
    font-weight: 600; 
    color: var(--text-primary); 
    margin: 0; 
}

/* ==========================================================================
   4. SUB-HERO HORIZONTAL
   ========================================================================== */
.pgp-subhero-strip {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.subhero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) { .subhero-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .subhero-grid { grid-template-columns: 1fr; } }
.subhero-card { display: flex; flex-direction: column; justify-content: flex-start; text-decoration: none; color: inherit; }
.subhero-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
    background: #e2e8f0;
    margin-bottom: 0.5rem;
}
.subhero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.subhero-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.18;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

/* ==========================================================================
   5. CUERPO PRINCIPAL & BOLETÍN
   ========================================================================== */
.pgp-main-layout { display: grid; grid-template-columns: 1fr 310px; gap: 2.5rem; align-items: start; }
@media (max-width: 992px) { .pgp-main-layout { grid-template-columns: 1fr; } }
.pgp-block-section { margin-bottom: 3.25rem; }
.pgp-block-header { border-bottom: 2px solid #0f172a; padding-bottom: 0.4rem; margin-bottom: 1.25rem; }
.pgp-block-title { 
    font-family: var(--font-display);
    font-size: 1.35rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.2px; 
    margin: 0; 
    color: var(--text-primary); 
}

.asymmetric-layout-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .asymmetric-layout-grid { grid-template-columns: 1fr; } }
.asym-main-card { display: block; text-decoration: none; color: inherit; }
.asym-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; margin-bottom: 0.75rem; background: #e2e8f0; }
.asym-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asym-title { 
    font-family: var(--font-display);
    font-size: 1.45rem; 
    font-weight: 700; 
    line-height: 1.15; 
    margin: 0 0 0.4rem 0; 
    color: var(--text-primary); 
}
.asym-excerpt { font-family: var(--font-serif-excerpt); font-size: 0.925rem; color: var(--text-secondary); margin: 0; line-height: 1.45; }

.asym-side-list { display: flex; flex-direction: column; gap: 0.85rem; border-left: 1px solid var(--border-color); padding-left: 1.25rem; }
@media (max-width: 768px) { .asym-side-list { border-left: none; padding-left: 0; } }
.asym-list-item { display: block; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.85rem; text-decoration: none; color: inherit; }
.asym-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.asym-list-info h4 { 
    font-family: var(--font-display);
    font-size: 1.1rem; 
    font-weight: 600; 
    line-height: 1.18; 
    margin: 0; 
    color: var(--text-primary); 
}
.asym-date { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; display: block; margin-bottom: 0.15rem; }

.pgp-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .pgp-grid-3col { grid-template-columns: 1fr; } }
.pgp-card-3col { display: block; text-decoration: none; color: inherit; }
.pgp-card-3col .card-thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #e2e8f0; margin-bottom: 0.5rem; }
.pgp-card-3col .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgp-card-3col .card-title { 
    font-family: var(--font-display);
    font-size: 1.1rem; 
    line-height: 1.18; 
    font-weight: 600; 
    margin: 0; 
    color: var(--text-primary); 
}

.pgp-newsletter-banner { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 4px; padding: 1.5rem; margin-bottom: 3.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
@media (max-width: 768px) { .pgp-newsletter-banner { flex-direction: column; text-align: center; } }
.news-banner-content h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin: 0 0 0.2rem 0; color: #0f172a; }
.news-banner-content p { font-size: 0.85rem; color: #475569; margin: 0; }
.news-banner-form { display: flex; gap: 0.5rem; }
.news-banner-form input { padding: 0.5rem 0.8rem; border: 1px solid #cbd5e1; border-radius: 3px; font-size: 0.85rem; min-width: 210px; }
.news-banner-form button { background: var(--brand-red); color: #ffffff; border: none; padding: 0.5rem 1.1rem; border-radius: 3px; font-weight: 800; font-size: 0.85rem; cursor: pointer; }

/* ==========================================================================
   6. WIDGETS SIDEBAR (TENDENCIAS B2B & LO MÁS LEÍDO)
   ========================================================================== */
.pgp-sidebar-media-widget {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pgp-sidebar-media-widget .widget-title,
.pgp-most-read-widget .widget-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.4rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.sidebar-media-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-media-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sidebar-media-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
    background: #e2e8f0;
    margin-bottom: 0.4rem;
}

.sidebar-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-media-card:hover .sidebar-media-thumb img {
    transform: scale(1.03);
}

.sidebar-media-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.18;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.top-ranked-list { display: flex; flex-direction: column; gap: 1.25rem; }
.top-rank-item { display: flex; gap: 1.15rem; align-items: flex-start; text-decoration: none; color: inherit; border-bottom: 1px solid #f1f5f9; padding-bottom: 1rem; }
.top-rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.rank-number { font-family: var(--font-mono); font-size: 2rem; font-weight: 900; font-style: normal; color: var(--brand-red); line-height: 0.9; flex-shrink: 0; letter-spacing: -1px; }
.rank-info h4 { 
    font-family: var(--font-display);
    font-size: 1.1rem; 
    line-height: 1.18; 
    font-weight: 600; 
    margin: 0 0 0.3rem 0; 
    color: var(--text-primary); 
}
.rank-meta { font-family: var(--font-mono); font-size: 0.685rem; color: var(--text-muted); }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer.site-footer { 
    background: var(--pgp-dark-bg); 
    color: #94a3b8; 
    text-align: center; 
    padding: 2.5rem 0; 
    border-top: 1px solid rgba(255,255,255,0.1); 
}
footer.site-footer p { margin: 0; font-size: 0.9rem; }