/*
 * Hero de la página de listado del blog (home.php) — antes la página
 * arrancaba directo en la rejilla de tarjetas, sin ningún título. Misma
 * paleta/fuente que blog-showcase.css: variables globales de style.css
 * (--color-azul-digital / --color-azul-oscuro / --color-azul-cielo /
 * --font-universo), sin cargar Google Fonts nuevas — el cuerpo usa la pila
 * de fuentes del sistema que ya usa el resto del tema.
 */

.blog-hero {
    --bh-azul: var(--color-azul-digital, #2c3fcd);
    --bh-azul-oscuro: var(--color-azul-oscuro, #0a1444);
    --bh-azul-cielo: var(--color-azul-cielo, #378de2);
    --bh-vital: var(--vital-green, #17c384);

    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(155deg, var(--bh-azul-oscuro) 0%, #0d1a56 55%, #13236e 100%);
    min-height: clamp(360px, 52vh, 560px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(96px, 14vw, 140px) clamp(20px, 4vw, 40px) clamp(56px, 8vw, 80px);
    text-align: center;
    color: #fff;
}

.blog-hero * { box-sizing: border-box; }

.blog-hero__bg { position: absolute; inset: 0; pointer-events: none; }

.blog-hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}

.blog-hero__glow {
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .32;
}
.blog-hero__glow--a { top: -120px; left: -90px; background: var(--bh-azul); }
.blog-hero__glow--b { bottom: -140px; right: -100px; background: var(--bh-vital); }

/* Línea de "pulso" — misma firma visual que la topbar y el footer */
.blog-hero__pulse {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 34px;
    overflow: hidden;
    opacity: .85;
    margin: 0 auto 18px;
}
.blog-hero__pulse svg {
    position: absolute; top: 0; left: 0;
    width: 200%; height: 100%;
    animation: blogHeroPulseScroll 9s linear infinite;
}
.blog-hero__pulse path {
    fill: none;
    stroke: url(#blogHeroPulseGrad);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@keyframes blogHeroPulseScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.blog-hero__ctn {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bh-azul-cielo);
    opacity: .9;
    margin: 0 0 16px;
}

.blog-hero__title {
    font-family: var(--font-universo, 'Literata', serif);
    font-weight: 700;
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 14px;
    color: #ffffff;
}

.blog-hero__subtitle {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 480px) {
    .blog-hero { min-height: clamp(320px, 60vh, 420px); }
    .blog-hero__glow { width: 240px; height: 240px; filter: blur(60px); }
    .blog-hero__pulse { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-hero__pulse svg { animation: none; }
}
