/* Blog: tipografía de artículo (Coral Breeze) */
.blog-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 2rem 0 2.5rem;
    margin-bottom: 2rem;
}

.blog-hero h1 {
    color: #fff !important;
}

/* Cabecera del listado: sin color de enlace heredado */
.blog-index > .d-flex h2 {
    color: var(--color-text-primary);
}

.blog-index ::selection {
    background: rgba(30, 58, 95, 0.18);
    color: inherit;
}

.blog-index .min-h-touch {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Entrada destacada (página 1): siempre hay <img> (destacada o SVG por defecto) */
.blog-card--hero {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card--hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.blog-card--hero:hover .blog-card--hero-img {
    transform: scale(1.03);
}

.blog-card--hero-link {
    color: inherit;
}

.blog-card--hero-link:focus-visible {
    outline: 3px solid var(--color-accent, #ff6b6b);
    outline-offset: 2px;
    border-radius: 1rem;
}

.blog-card--hero-media {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 200px;
    max-height: 420px;
    background: var(--color-bg-secondary, #e9ecef);
    overflow: hidden;
}

.blog-card--hero-media > .blog-card--hero-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-card--hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.94) 0%,
        rgba(15, 23, 42, 0.45) 48%,
        rgba(15, 23, 42, 0.1) 100%
    );
    pointer-events: none;
}

.blog-card--hero-caption {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .blog-card--hero-media {
        aspect-ratio: 16 / 10;
        min-height: 220px;
        max-height: none;
    }
}

/* Listado: tarjetas uniformes (imagen 16:9 arriba + texto) */
.blog-card--visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.blog-card--visual-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(255, 107, 107, 0.06) 100%);
    overflow: hidden;
}

.blog-card--visual-thumb .blog-card--visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card--visual:hover .blog-card--visual-img {
    transform: scale(1.04);
}

/* Título: color de texto normal, no “azul de enlace” por defecto */
.blog-card-title-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.blog-card-title-link:hover {
    color: var(--color-primary);
}

.blog-card-title-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: linear-gradient(145deg, #e8eef5 0%, #f4f6f9 50%, #eef1f6 100%);
    color: var(--color-primary, #1e3a5f);
}

.blog-card-placeholder--card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.blog-article .blog-body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.blog-article .blog-body h2,
.blog-article .blog-body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.blog-article .blog-body p {
    margin-bottom: 1rem;
}

.blog-article .blog-body ul,
.blog-article .blog-body ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.blog-article .blog-body .blog-inline-figure {
    margin: 2.25rem 0;
}

.blog-article .blog-body .blog-inline-figure img {
    display: block;
}

.blog-article .blog-body .table {
    font-size: 0.95rem;
}

.blog-article .blog-body .lead {
    font-size: 1.15rem;
    line-height: 1.65;
}
