/*
Theme Name: El Quehacer Político Vanguardista
Theme URI: https://www.elquehacerpolitico.com/
Author: Maya Comunicación
Description: Tema editorial vanguardista para análisis político, Congreso y poder público. Incluye portada por bloques, espacios publicitarios, páginas institucionales, directorio y SEO básico.
Version: 1.3
Text Domain: eqp
*/

:root {
    --eqp-ink: #071A2D;
    --eqp-ink-2: #0B2742;
    --eqp-red: #B3132B;
    --eqp-red-dark: #7D0C1D;
    --eqp-paper: #F4EFE6;
    --eqp-white: #FFFFFF;
    --eqp-gold: #B08A3C;
    --eqp-gray: #2D2D2D;
    --eqp-shadow: 0 24px 60px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(179,19,43,.25), transparent 32%), linear-gradient(135deg, #061421 0%, #071A2D 42%, #111 100%);
    color: var(--eqp-gray);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.eqp-container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.eqp-topbar { background: #050B12; color: rgba(255,255,255,.78); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.eqp-topbar-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.eqp-topbar ul, .eqp-main-menu ul, .eqp-footer ul { list-style: none; padding: 0; margin: 0; }
.eqp-topbar ul { display: flex; gap: 18px; flex-wrap: wrap; }
.eqp-topbar a { color: rgba(255,255,255,.8); }
.eqp-brand-row { background: rgba(7,26,45,.96); border-bottom: 1px solid rgba(255,255,255,.1); }
.eqp-brand-inner { min-height: 124px; display: grid; grid-template-columns: minmax(240px, 420px) 1fr; align-items: center; gap: 32px; }
.eqp-logo strong { color: var(--eqp-white); font-family: Georgia, serif; font-size: clamp(30px, 4vw, 52px); line-height: .92; display: block; letter-spacing: -1.5px; }
.eqp-logo span { color: var(--eqp-gold); text-transform: uppercase; font-size: 13px; letter-spacing: 2.4px; margin-top: 8px; display: block; }
.eqp-logo img { max-height: 96px; width: auto; }
.eqp-header-ad { display: flex; justify-content: flex-end; }
.eqp-main-menu { position: sticky; top: 0; z-index: 50; background: var(--eqp-red); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.eqp-main-menu ul { display: flex; align-items: center; gap: 2px; overflow-x: auto; }
.eqp-main-menu a { color: #fff; display: block; padding: 15px 18px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.eqp-main-menu a:hover { background: var(--eqp-red-dark); }
.eqp-power-hero { position: relative; color: #fff; min-height: 360px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(rgba(7,26,45,.82), rgba(7,26,45,.96)), url('assets/img/poder-bg.svg') center/cover no-repeat; }
.eqp-power-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 42px 42px; opacity: .45; }
.eqp-power-hero .eqp-container { position: relative; z-index: 2; }
.eqp-hero-label { color: var(--eqp-gold); text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 900; margin-bottom: 14px; }
.eqp-power-hero h1 { font-family: Georgia, serif; font-size: clamp(46px, 7vw, 86px); max-width: 820px; line-height: .92; margin: 0 0 20px; }
.eqp-power-hero p { font-size: 20px; max-width: 720px; color: rgba(255,255,255,.84); }
.eqp-ad { position: relative; overflow: hidden; border-radius: 22px; background: radial-gradient(circle at 20% 20%, rgba(176,138,60,.42), transparent 28%), linear-gradient(135deg, #091B2E 0%, #102E4E 45%, #B3132B 100%); min-height: 120px; box-shadow: var(--eqp-shadow); border: 1px solid rgba(255,255,255,.14); }
.eqp-ad-970x250 { min-height: 250px; }
.eqp-ad-728x90 { min-height: 90px; border-radius: 16px; }
.eqp-ad-300x250 { min-height: 250px; }
.eqp-ad-bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 75% 40%, rgba(255,255,255,.16), transparent 18%), linear-gradient(90deg, transparent 0 45%, rgba(255,255,255,.08) 45% 46%, transparent 46% 100%); }
.eqp-ad-bg::after { content: ""; position: absolute; right: 24px; top: 20px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 0 0 22px rgba(255,255,255,.04), 0 0 0 46px rgba(255,255,255,.03); }
.eqp-ad-content { position: relative; z-index: 2; padding: 28px; color: #fff; }
.eqp-ad-content span { color: var(--eqp-gold); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 900; }
.eqp-ad-content strong { display: block; font-size: clamp(26px, 4vw, 48px); line-height: 1; margin: 8px 0; }
.eqp-ad-content p { max-width: 540px; color: rgba(255,255,255,.84); }
.eqp-ad-content a { display: inline-block; margin-top: 8px; background: #fff; color: var(--eqp-ink); padding: 10px 16px; border-radius: 999px; font-weight: 900; }
.eqp-ad-top, .eqp-ad-menu, .eqp-mid-ad { margin-top: 28px; margin-bottom: 28px; }
.eqp-breaking-strip { background: var(--eqp-paper); display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-left: 8px solid var(--eqp-red); border-radius: 14px; box-shadow: var(--eqp-shadow); }
.eqp-breaking-strip strong { color: var(--eqp-red); text-transform: uppercase; }
.eqp-main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.eqp-content-area, .eqp-section-block, .eqp-page-content { background: rgba(244,239,230,.98); border-radius: 28px; padding: 24px; box-shadow: var(--eqp-shadow); }
.eqp-page-content { margin-top: 32px; margin-bottom: 32px; line-height: 1.7; }
.eqp-page-content h1 { font-family: Georgia, serif; color: var(--eqp-ink); font-size: clamp(38px, 6vw, 68px); line-height: 1; }
.eqp-lead-story { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.eqp-lead-image img, .eqp-placeholder-image { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: 22px; }
.eqp-placeholder-image { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--eqp-ink), var(--eqp-red)); color: #fff; font-weight: 900; }
.eqp-lead-body { display: flex; flex-direction: column; justify-content: center; }
.eqp-section-kicker, .eqp-card-category { color: var(--eqp-red); text-transform: uppercase; font-weight: 900; font-size: 12px; letter-spacing: 1.5px; }
.eqp-lead-body h2, .eqp-card h2, .eqp-section-header h2 { font-family: Georgia, serif; color: var(--eqp-ink); }
.eqp-lead-body h2 { font-size: clamp(34px, 5vw, 58px); line-height: .98; margin: 12px 0; }
.eqp-lead-body p { font-size: 18px; line-height: 1.5; }
.eqp-secondary-grid, .eqp-section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eqp-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid rgba(7,26,45,.08); box-shadow: 0 10px 26px rgba(7,26,45,.08); }
.eqp-card-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.eqp-card-body { padding: 16px; }
.eqp-card h2 { font-size: 22px; line-height: 1.08; margin: 8px 0; }
.eqp-card p { color: #4b4b4b; line-height: 1.45; }
.eqp-meta { display: block; color: #777; font-size: 12px; margin-top: 10px; }
.eqp-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.eqp-card.featured .eqp-card-image img { height: 100%; aspect-ratio: auto; }
.eqp-card.compact h2 { font-size: 19px; }
.eqp-sidebar { display: grid; gap: 22px; }
.eqp-widget, .eqp-commercial-box { background: rgba(244,239,230,.98); border-radius: 22px; padding: 20px; box-shadow: var(--eqp-shadow); }
.eqp-commercial-box h3 { margin-top: 0; font-family: Georgia, serif; font-size: 28px; color: var(--eqp-ink); }
.eqp-commercial-box a { display: inline-block; background: var(--eqp-red); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 900; }
.eqp-section-block { margin-top: 32px; margin-bottom: 32px; }
.eqp-section-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(7,26,45,.12); }
.eqp-section-header span { color: var(--eqp-red); text-transform: uppercase; font-weight: 900; letter-spacing: 2px; font-size: 12px; }
.eqp-section-header h2 { font-size: clamp(36px, 5vw, 56px); margin: 4px 0; }
.eqp-section-header p { margin: 0; max-width: 620px; color: #555; }
.eqp-section-header > a { background: var(--eqp-ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 900; white-space: nowrap; }
.eqp-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.eqp-directory-grid article { background: #fff; border-left: 6px solid var(--eqp-red); padding: 20px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.eqp-directory-grid h2 { margin-top: 0; color: var(--eqp-ink); font-family: Georgia, serif; }
.eqp-footer { background: #050B12; color: rgba(255,255,255,.78); margin-top: 48px; }
.eqp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 48px 0; }
.eqp-footer h3, .eqp-footer h4 { color: #fff; margin-top: 0; }
.eqp-footer a { color: rgba(255,255,255,.78); display: block; padding: 5px 0; }
.eqp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; }
@media (max-width: 980px) { .eqp-brand-inner, .eqp-main-grid, .eqp-lead-story, .eqp-footer-grid { grid-template-columns: 1fr; } .eqp-header-ad { justify-content: stretch; } .eqp-secondary-grid, .eqp-section-grid { grid-template-columns: repeat(2, 1fr); } .eqp-card.featured { grid-column: span 1; grid-template-columns: 1fr; } }
@media (max-width: 640px) { .eqp-container { width: min(100% - 20px, 1240px); } .eqp-topbar-inner { align-items: flex-start; flex-direction: column; padding: 10px 0; } .eqp-brand-inner { min-height: auto; padding: 18px 0; gap: 18px; } .eqp-logo strong { font-size: 34px; } .eqp-power-hero { min-height: 320px; } .eqp-secondary-grid, .eqp-section-grid { grid-template-columns: 1fr; } .eqp-content-area, .eqp-section-block { padding: 16px; border-radius: 20px; } .eqp-lead-image img, .eqp-placeholder-image { min-height: 240px; } .eqp-section-header { flex-direction: column; align-items: flex-start; } .eqp-ad-content strong { font-size: 30px; } }


/* ===== Ajustes v1.1 solicitados ===== */
.eqp-brand-inner-no-ad {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 92px;
}
.eqp-power-hero {
    min-height: 260px;
    padding: 34px 0 42px;
}
.eqp-hero-full {
    width: min(1320px, calc(100% - 32px));
}
.eqp-power-hero h1 {
    font-size: clamp(40px, 5.5vw, 72px);
    max-width: 100%;
    width: 100%;
    margin-bottom: 12px;
}
.eqp-power-hero p {
    font-size: 18px;
    max-width: 100%;
}
.eqp-breaking-strip {
    margin-top: 18px;
}
.eqp-lead-story {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}
.eqp-content-area, .eqp-section-block, .eqp-page-content, .eqp-widget, .eqp-commercial-box {
    border-radius: 24px;
}
.eqp-secondary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}
.eqp-secondary-grid .eqp-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.eqp-secondary-grid .eqp-card-body {
    flex: 1;
}
.eqp-section-divider {
    height: 8px;
    border-radius: 999px;
    margin: 8px 0 4px;
    background: linear-gradient(90deg, rgba(176,138,60,.95) 0%, rgba(179,19,43,.96) 18%, rgba(7,26,45,.98) 100%);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.eqp-section-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 22px;
    align-items: stretch;
}
.eqp-section-featured,
.eqp-section-stack {
    min-width: 0;
}
.eqp-section-featured .eqp-card,
.eqp-section-stack .eqp-card {
    height: 100%;
}
.eqp-section-featured .eqp-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
}
.eqp-section-featured .eqp-card-image img {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
}
.eqp-section-featured .eqp-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}
.eqp-section-featured .eqp-card h2 {
    font-size: clamp(28px, 3.3vw, 40px);
}
.eqp-section-stack {
    display: grid;
    gap: 18px;
}
.eqp-section-stack .eqp-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: stretch;
}
.eqp-section-stack .eqp-card-image img {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
}
.eqp-section-stack .eqp-card-body {
    padding: 14px 16px;
}
.eqp-section-stack .eqp-card h2 {
    font-size: 20px;
    margin: 6px 0;
}
.eqp-section-stack .eqp-card p {
    margin: 0;
    font-size: 14px;
}
.eqp-section-block {
    overflow: hidden;
}
@media (max-width: 1100px) {
    .eqp-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eqp-section-showcase {
        grid-template-columns: 1fr;
    }
    .eqp-section-featured .eqp-card,
    .eqp-section-stack .eqp-card {
        grid-template-columns: 1fr;
    }
    .eqp-section-stack .eqp-card-image img {
        aspect-ratio: 16/9;
    }
}
@media (max-width: 980px) {
    .eqp-brand-inner-no-ad {
        justify-items: start;
    }
}
@media (max-width: 640px) {
    .eqp-power-hero {
        min-height: 220px;
        padding: 28px 0 34px;
    }
    .eqp-secondary-grid {
        grid-template-columns: 1fr;
    }
    .eqp-section-featured .eqp-card,
    .eqp-section-stack .eqp-card {
        grid-template-columns: 1fr;
    }
    .eqp-section-featured .eqp-card-image img,
    .eqp-section-stack .eqp-card-image img {
        aspect-ratio: 16/9;
    }
}


/* ===== Ajustes v1.2: sin cabecera superior y columnas 2x3 ===== */
.eqp-brand-row-clean {
    border-bottom: 0;
}
.eqp-brand-row-clean .eqp-brand-inner {
    min-height: 88px;
    padding: 16px 0 14px;
}
.eqp-logo strong {
    font-size: clamp(28px, 4.4vw, 56px);
}
.eqp-logo span {
    margin-top: 6px;
}
.eqp-section-columnas {
    background: linear-gradient(180deg, rgba(244,239,230,.99) 0%, rgba(255,255,255,.98) 100%);
    border: 1px solid rgba(7,26,45,.08);
}
.eqp-section-header-columnas {
    position: relative;
    padding-bottom: 20px;
}
.eqp-section-header-columnas::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--eqp-red) 0%, var(--eqp-gold) 100%);
}
.eqp-columnas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.eqp-columna-card {
    position: relative;
    min-height: 240px;
    background: linear-gradient(180deg, #fff 0%, #f9f7f2 100%);
    border: 1px solid rgba(7,26,45,.08);
    border-left: 6px solid var(--eqp-red);
    border-radius: 20px;
    padding: 22px 20px 18px;
    box-shadow: 0 14px 32px rgba(7,26,45,.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.eqp-columna-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(179,19,43,.10);
    box-shadow: 0 0 0 18px rgba(176,138,60,.06), 0 0 0 36px rgba(7,26,45,.03);
}
.eqp-columna-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(179,19,43,.08);
    color: var(--eqp-red);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.4px;
    font-weight: 900;
    margin-bottom: 14px;
}
.eqp-columna-card h3 {
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1.08;
    margin: 0 0 12px;
    color: var(--eqp-ink);
}
.eqp-columna-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #505050;
    margin: 0 0 16px;
    flex: 1;
}
.eqp-columna-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(7,26,45,.08);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #666;
    font-weight: 700;
}
.eqp-columna-author {
    color: var(--eqp-ink);
    font-weight: 800;
}
@media (max-width: 1100px) {
    .eqp-columnas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .eqp-columnas-grid {
        grid-template-columns: 1fr;
    }
    .eqp-columna-card {
        min-height: auto;
    }
}


/* ===== Ajustes v1.3: quitar hero, columnas debajo de nacional y con miniaturas ===== */
.eqp-breaking-strip-top {
    margin-top: 22px;
}
.eqp-columnas-grid-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.eqp-columna-card-thumb {
    padding: 0;
    border-left: 0;
    overflow: hidden;
    min-height: 100%;
}
.eqp-columna-thumb {
    display: block;
    position: relative;
}
.eqp-columna-thumb img,
.eqp-columna-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.eqp-columna-thumb-placeholder {
    background: linear-gradient(135deg, var(--eqp-ink), var(--eqp-red));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.eqp-columna-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--eqp-red) 0%, var(--eqp-gold) 100%);
}
.eqp-columna-card-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.eqp-columna-card-thumb h3 {
    font-size: 24px;
}
.eqp-columna-card-thumb p {
    flex: 1;
}
@media (max-width: 1100px) {
    .eqp-columnas-grid-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .eqp-columnas-grid-thumbs {
        grid-template-columns: 1fr;
    }
}
