/* ==================== ENCABEZADO ANIMADO ==================== */

/* Contenedor principal */
.heading-blog-title {
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    --hero-bg: url("/static/img/claudio_writing_far.webp");
    background-image: none;
}

/* Overlay negro opaco tras animación */
.heading-blog-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--degraded-bg-color);
    z-index: 1;
}

/* Imagen animada inicial */
.heading-blog-title::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: heroBgReveal 0.5s ease-out forwards;
}

/* Contenido siempre encima */
.heading-blog-title>* {
    position: relative;
    z-index: 2;
}

/* Texto de entra después del fondo */
.heading-blog-title .generic-title-page {
    opacity: 0;
    transform: translateY(10px);
    animation: heroTextIn 0.75s ease-out forwards;
    animation-delay: 0.5s;
    margin: 0 1.5rem;
}

/* Keyframes */
@keyframes heroBgReveal {
    0% {
        opacity: 0;
        filter: brightness(0.25) saturate(0.85);
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}














/* .section-head {
    margin-bottom: 15px;
} */

/* Card base */
.post-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    /* border: 2px solid; */
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    transform: translateY(0);
    transition:
        transform var(--time-transition-mid) ease,
        box-shadow var(--time-transition-mid) ease,
        border-color var(--time-transition-mid) ease;
    outline: none;
}

.post-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(122, 46, 50, 0.22), 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* Micro animación en hover (sin fade+slide de aparición) */
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    /* box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16); */
    /* border-color: rgba(23, 22, 22, 0.14); */
}

/* Imagen superior */
.post-media {
    height: 160px;
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
}

.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform var(--time-transition-slow) ease;
}

.post-card:hover .post-media img {
    transform: scale(1.07);
}

/* Footer inferior: solo título */
.post-footer {
    padding: 14px 16px 18px 16px;
    background: rgb(255, 255, 255);
}