/* =================================================================
   BLOG: el listado (/blog, /blog/page/N/, /blog/tema/<tema>/): cabecera,
   destacada, rejilla y páginas. La entrada, en 26-blog-entrada.css; sus
   piezas, en 25-blog-bloques.css.
   Mismos tokens, mismas fuentes.
   ================================================================= */

/* ---------- Lo que el listado usaba de 11, 12, 17-theme y 23-hito ----------
   El listado ya no carga esos ficheros (ni 93-hero-showcase, 90-mockup, 15,
   16, 18, 21, 22): de ellos solo usaba estas reglas (medido con la cobertura
   de CSS de Chrome). Copiadas tal cual y en el mismo orden de la cascada. */

.opogc-section {
    padding: var(--opogc-space-80) 0;
}

.opogc-section--sm {
    padding: var(--opogc-space-48) 0;
}

.opogc-section--green {
    background: var(--opogc-green-soft);
}

.opogc-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--opogc-space-8);
    margin-bottom: var(--opogc-space-16);
    padding: 0.3rem 0.9rem;
    background: var(--opogc-green-soft);
    border: 1px solid var(--opogc-green-border);
    border-radius: var(--opogc-radius-pill);
    color: var(--opogc-green-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.entry-title,
.opogc-hero h1,
.opogc-hero-title {
    font-family: var(--opogc-font-title) !important;
    font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;
    color: #0f172a !important;
    margin-bottom: 0.95rem !important;
    text-wrap: balance !important;
}

.opogc-hero h2.opogc-hero__subtitle,
.opogc-hero__subtitle {
    font-family: var(--opogc-font-body) !important;
    font-size: clamp(1.04rem, 1.6vw, 1.15rem) !important;
    font-weight: 450 !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    margin-top: 0 !important;
    margin-bottom: 0.85rem !important;
    letter-spacing: normal !important;
}

.opogc-fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.opogc-fade-in.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 720px) {
    .opogc-wrap {
        width: min(var(--opogc-max-w), calc(100% - 2rem));
    }

    .opogc-section {
        padding: var(--opogc-space-48) 0;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 2.05rem !important;
    }
}

.hero-fd__avs {
    display: inline-flex;
    flex-shrink: 0;
}

.hero-fd__av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--opogc-green-deep);
    color: #fff;
    font-family: var(--opogc-font-title);
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    box-shadow: var(--opogc-shadow-xs);
}

.hero-fd__av + .hero-fd__av {
    margin-left: -10px;
    background: var(--opogc-green-pastel);
}

.gu-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 var(--opogc-space-24);
    font-size: 0.86rem;
    color: var(--opogc-text-soft);
}

.gu-meta a {
    font-weight: 700;
}

@media (max-width: 380px) {
    .opogc-wrap {
        width: calc(100% - 1.5rem);
    }

    .opogc-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        padding: 0.25rem 0.7rem;
    }
}

@media (min-width: 1440px) {
    :root {
        --opogc-max-w: 1220px;
    }
}

/* ---------- El listado ---------- */

.bl-hero {
    background: var(--opogc-white-off);
    position: relative;
    overflow: hidden;
    padding-bottom: var(--opogc-space-32);
}

.bl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 0% 0%, rgba(76, 175, 125, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 100% 10%, rgba(201, 168, 76, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.bl-hero > .opogc-wrap {
    position: relative;
    max-width: 880px;
}

.bl-hero__h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.bl-hero__sub {
    max-width: 720px;
    margin-bottom: var(--opogc-space-16);
}

.bl-cat {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    background: var(--opogc-green-soft);
    border: 1px solid var(--opogc-green-border);
    border-radius: var(--opogc-radius-pill);
    color: var(--opogc-green-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bl-meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--opogc-text-muted);
}

/* ---------- Portada: destacada y rejilla ---------- */

.bl-feat {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    background: var(--opogc-white);
    border: 1px solid var(--opogc-border);
    border-radius: var(--opogc-radius);
    box-shadow: var(--opogc-shadow-md);
    overflow: hidden;
    color: var(--opogc-text);
    transition: transform var(--opogc-transition), box-shadow var(--opogc-transition);
}

.bl-feat:hover {
    transform: translateY(-3px);
    box-shadow: var(--opogc-shadow-lg);
    color: var(--opogc-text);
}

.bl-feat__body {
    padding: clamp(1.5rem, 3.5vw, 2.6rem);
    display: flex;
    flex-direction: column;
    gap: var(--opogc-space-12);
    align-items: flex-start;
}

.bl-feat__t {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    margin: 0;
    line-height: 1.2;
}

.bl-feat__d {
    margin: 0;
    color: var(--opogc-text-soft);
    line-height: 1.6;
}

.bl-feat__more {
    font-weight: 700;
    color: var(--opogc-green-pastel);
}

.bl-feat__visual {
    background: linear-gradient(135deg, var(--opogc-green-deep), var(--opogc-green-pastel));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.bl-feat__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

.bl-feat__n {
    position: relative;
    font-family: var(--opogc-font-title);
    font-weight: 800;
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1;
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--opogc-space-24);
}

.bl-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    background: var(--opogc-white);
    border: 1px solid var(--opogc-border);
    border-radius: var(--opogc-radius);
    padding: var(--opogc-space-24);
    box-shadow: var(--opogc-shadow-xs);
    color: var(--opogc-text);
    transition: transform var(--opogc-transition), box-shadow var(--opogc-transition), border-color var(--opogc-transition);
}

.bl-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--opogc-shadow-md);
    border-color: var(--opogc-green-border);
    color: var(--opogc-text);
}

.bl-card__t {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.3;
}

.bl-card__d {
    margin: 0;
    font-size: 0.88rem;
    color: var(--opogc-text-soft);
    line-height: 1.55;
    flex: 1;
}

.bl-grid--rel {
    margin-top: var(--opogc-space-32);
}

/* La entrada (cabecera, texto, índice, autor…) está en 26-blog-entrada.css y
   sus piezas (tarjeta del tema gratis, vídeo, temario, FAQ, fuentes…) en
   25-blog-bloques.css: este fichero es solo del listado (/blog). */

/* Navegación entre páginas del listado (solo con el blog servido desde WordPress) */
.bl-pag {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--opogc-space-16);
    margin-top: var(--opogc-space-32);
    font-size: 0.92rem;
}

.bl-pag__a {
    font-weight: 700;
}

.bl-pag__n {
    color: var(--opogc-text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .bl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bl-grid {
        grid-template-columns: 1fr;
    }

    .bl-feat {
        grid-template-columns: 1fr;
    }

    .bl-feat__visual {
        min-height: 120px;
        order: -1;
    }

    .bl-feat__n {
        font-size: 4rem;
    }
}

/* De 90-mockup y 93-hero-showcase, que iban después de este fichero: lo
   animado se ve sin JS, y el subtítulo del hero en móvil. */
.opogc-fade-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    html.opogc-js .opogc-fade-in:not(.is-visible) {
        opacity: 0;
        transform: translateY(18px);
    }
}

@media (max-width: 720px) {
    .opogc-hero__subtitle {
        order: 2 !important;
        margin-top: 0 !important;
        margin-bottom: 0.85rem !important;
        font-size: 0.98rem !important;
        line-height: 1.48 !important;
        text-align: center !important;
    }
}
