/* =============================================================
   ENTRADA INDIVIDUAL DE BLOG — NAI Gaviria
   ============================================================= */

:root {
    --post-rojo:   #E30723;
    --post-titulo: 'CentenialLT', 'Georgia', serif;
    --post-texto:  'Open Sans', sans-serif;
}

.cr-post-wrap,
.cr-post-wrap * {
    box-sizing: border-box;
}

.cr-post-wrap {
    font-family: var(--post-texto);
    font-size: 16px;
    color: #111;
    line-height: normal;
    padding-top: 90px;
}

/* ── CABECERA — título + categorías + meta ──────────────────── */
.cr-post-header {
    background: #fff;
    padding: 56px 0 40px;
    border-bottom: 1px solid #ebebeb;
}

.cr-post-header__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 48px;
}

.cr-post-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cr-post-cat {
    font-family: var(--post-texto);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--post-rojo);
    padding: 4px 10px;
    border-radius: 2px;
}

.cr-post-titulo {
    font-family: var(--post-titulo);
    font-weight: 100;
    font-size: clamp(28px, 4vw, 52px);
    color: #111;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.3px;
}

.cr-post-meta {
    font-family: var(--post-texto);
    font-size: 13px;
    color: #999;
}

/* ── IMAGEN DESTACADA ───────────────────────────────────────── */
.cr-post-img-wrap {
    background: #f5f5f5;
    padding: 40px 0;
}

.cr-post-img-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 48px;
}

.cr-post-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

/* ── CONTENIDO ELEMENTOR ────────────────────────────────────── */
.cr-post-content {
    width: 100%;
}

/* Tipografía: títulos H2 de Elementor → CentenialLT + rojo */
.cr-post-content .elementor-heading-title {
    font-family: var(--post-titulo) !important;
    font-weight: 400 !important;
    font-size: clamp(22px, 2.8vw, 34px) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px !important;
    color: #E30723 !important;
}

/* Posts de Instagram — centrados */
.cr-post-content .elementor-widget-html {
    display: flex;
    justify-content: center;
}

/* Tipografía: cuerpo de texto → Open Sans */
.cr-post-content .elementor-widget-text-editor,
.cr-post-content .elementor-widget-text-editor p,
.cr-post-content .article-main__content,
.cr-post-content .article-main__content p {
    font-family: var(--post-texto) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #333 !important;
}

.cr-post-content .elementor-widget-text-editor ul,
.cr-post-content .article-main__content ul {
    font-family: var(--post-texto);
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    padding-left: 20px;
}

.cr-post-content .elementor-widget-text-editor li,
.cr-post-content .article-main__content li {
    margin-bottom: 6px;
}

/* ── RELACIONADAS ───────────────────────────────────────────── */
.cr-post-relacionadas {
    background: #f9f9f9;
    border-top: 1px solid #ebebeb;
    padding: 64px 0 72px;
}

.cr-post-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

.cr-post-section-titulo {
    font-family: var(--post-titulo);
    font-weight: 100;
    font-size: clamp(24px, 3vw, 36px);
    color: #111;
    margin: 0 0 36px;
    letter-spacing: -0.2px;
}

.cr-post-rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cr-post-rel-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cr-post-rel-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.cr-post-rel-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.cr-post-rel-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cr-post-rel-card:hover .cr-post-rel-card__img img {
    transform: scale(1.04);
}

.cr-post-rel-card__sin-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-post-rel-card__body {
    display: flex;
    flex-direction: column;
    padding: 16px 18px 20px;
    gap: 8px;
    flex-grow: 1;
}

.cr-post-rel-card__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--post-rojo);
}

.cr-post-rel-card__titulo {
    font-family: var(--post-titulo);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    color: #111;
    flex-grow: 1;
}

.cr-post-rel-card:hover .cr-post-rel-card__titulo {
    color: var(--post-rojo);
}

.cr-post-rel-card__fecha {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cr-post-header__inner,
    .cr-post-img-inner,
    .cr-post-inner {
        padding-left: 32px;
        padding-right: 32px;
    }
    .cr-post-rel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cr-post-header {
        padding: 36px 0 28px;
    }
    .cr-post-header__inner,
    .cr-post-img-inner,
    .cr-post-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    .cr-post-img-wrap {
        padding: 24px 0;
    }
    .cr-post-rel-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
