/* ── Blog — index ─────────────────────────────────────────────────────────── */

.blog-header {
    background: #f5f6f8;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid #e8eaed;
}

.blog-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0a0a0a;
    margin: .5rem 0 .5rem;
    line-height: 1.15;
}

.blog-header__sub {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

.blog-list {
    padding: 3rem 0 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card__img-wrap {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

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

.blog-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8eaed 0%, #d1d5db 100%);
}

.blog-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__date {
    font-size: .8rem;
    color: #888;
    display: block;
    margin-bottom: .5rem;
}

.blog-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.35;
    margin: 0 0 .6rem;
}

.blog-card__excerpt {
    font-size: .9rem;
    color: #555;
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__cta {
    font-size: .85rem;
    font-weight: 600;
    color: #880a0e;
    margin-top: auto;
}

.blog-list__empty {
    color: #888;
    text-align: center;
    padding: 3rem 0;
}

/* ── Blog — post individual ───────────────────────────────────────────────── */

/* Cabecera */
.bp-hero {
    background: #f5f6f8;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid #e8eaed;
}
.bp-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #0a0a0a;
    line-height: 1.2;
    margin: .75rem 0 1rem;
    max-width: 820px;
}
.bp-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .82rem;
    color: #666;
    flex-wrap: wrap;
}
.bp-hero__meta time,
.bp-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* Imagen destacada */
.bp-cover {
    padding: 2rem 0 0;
    background: #fff;
}
.bp-cover__img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
}

/* Cuerpo del post */
.bp-body {
    padding: 2.5rem 0 4.5rem;
}

/* Prose — mismo ancho que el container */
.bp-prose {
    max-width: 100%;
}

.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #1a1a1a;
}
.prose h2,
.prose h3,
.prose h4 {
    font-weight: 700;
    line-height: 1.3;
    color: #0a0a0a;
}
.prose h2 { font-size: 1.45rem; margin: 2.25rem 0 .8rem; }
.prose h3 { font-size: 1.2rem;  margin: 2rem 0 .65rem; }
.prose h4 { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }
.prose p  { margin: 0 0 1.35rem; }
.prose ul,
.prose ol { margin: 0 0 1.35rem 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45rem; }
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 2rem auto;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.prose a {
    color: #880a0e;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}
.prose a:hover { color: #5e0709; }
.prose strong,
.prose b { font-weight: 700; }
.prose blockquote {
    border-left: 3px solid #880a0e;
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    background: #fafafa;
    color: #444;
    font-style: italic;
}
.prose figure { margin: 2rem 0; }
.prose figcaption {
    font-size: .82rem;
    color: #888;
    text-align: center;
    margin-top: .5rem;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .95rem;
}
.prose th,
.prose td {
    border: 1px solid #e8eaed;
    padding: .5rem .75rem;
    text-align: left;
}
.prose th { background: #f5f6f8; font-weight: 700; }

/* Footer del post */
.bp-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8eaed;
}

/* Layout dos columnas: artículo + sidebar */
.bp-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.bp-main {
    min-width: 0;
}

/* Sidebar */
.bp-sidebar {
    position: sticky;
    top: 2rem;
}

.bp-sidebar__card {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1.25rem;
}

.bp-sidebar__title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin: 0 0 1rem;
}

.bp-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.bp-sidebar__item {
    border-bottom: 1px solid #e8eaed;
    padding-bottom: .75rem;
}

.bp-sidebar__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bp-sidebar__link {
    display: flex;
    gap: .75rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.bp-sidebar__link:hover .bp-sidebar__item-title {
    color: #880a0e;
}

.bp-sidebar__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #e8eaed;
}

.bp-sidebar__thumb--empty {
    background: linear-gradient(135deg, #e8eaed 0%, #d1d5db 100%);
}

.bp-sidebar__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bp-sidebar__info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.bp-sidebar__item-title {
    font-size: .82rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}

.bp-sidebar__item-date {
    font-size: .75rem;
    color: #999;
}

/* Responsive */
@media (max-width: 900px) {
    .bp-layout {
        grid-template-columns: 1fr;
    }
    .bp-sidebar {
        position: static;
    }
    .bp-sidebar__list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: .75rem;
    }
    .bp-sidebar__item {
        border-bottom: none;
        padding-bottom: 0;
        border: 1px solid #e8eaed;
        border-radius: 8px;
        padding: .75rem;
        background: #fff;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .bp-hero { padding: 1.75rem 0 1.5rem; }
    .bp-cover { padding: 1.25rem 0 0; }
    .bp-cover__img { max-height: 260px; border-radius: 6px; }
    .bp-body { padding: 1.75rem 0 3rem; }
    .prose { font-size: 1rem; line-height: 1.7; }
}

/* ── Breadcrumb (reutilizable) ───────────────────────────────────────────── */

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .8rem;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #888;
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    color: #ccc;
}

.breadcrumb__link {
    color: #555;
    text-decoration: none;
}

.breadcrumb__link:hover {
    color: #880a0e;
    text-decoration: underline;
}

.breadcrumb__item--current {
    color: #333;
    font-weight: 500;
}
