/* —— Página artículo de blog —— */

.blog-post-page {
    background: #f7f9f7;
    padding-top: 1.5rem;
    padding-bottom: 0;
}

/* Tarjetas recomendadas: mismo diseño que /blog */
.blog-post-related .blog-card-inner {
    box-shadow: 0 2px 12px rgba(26, 46, 34, 0.06);
}

/* Header del artículo */
.blog-post-header {
    max-width: 820px;
    margin: 0 auto 2rem;
    text-align: center;
}

.blog-post-badge {
    display: inline-block;
    background: #587360;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.blog-post-title {
    font-family: "Cinzel", serif;
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.blog-post-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-meta {
    font-size: 0.85rem;
    color: #7a7a7a;
}

.blog-post-meta-sep {
    margin: 0 0.35rem;
}

/* Botones marca (sin azul Bootstrap) */
.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-btn--solid {
    background: #587360;
    border-color: #587360;
    color: #fff !important;
}

.blog-btn--solid:hover {
    background: #4a6354;
    border-color: #4a6354;
    color: #fff !important;
}

.blog-btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff !important;
}

.blog-btn--outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: #587360 !important;
}

/* Portada vertical — llena el cuadro con object-fit: cover */
.blog-post-cover--portrait {
    position: relative;
    margin: 0 0 1rem;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 360px;
    max-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    background: #e8ece9;
    border: 1px solid #e0e6e1;
}

.blog-post-cover-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Contenido del artículo */
.blog-post-content {
    background: #fff;
    border-radius: 20px;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8ece9;
}

.blog-post-content h2 {
    font-family: "Cinzel", serif;
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.blog-post-content h2:first-child {
    margin-top: 0;
}

.blog-post-content h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2a2a2a;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}

.blog-post-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #3d3d3d;
    margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.35rem;
}

.blog-post-content li {
    font-size: 1rem;
    line-height: 1.7;
    color: #3d3d3d;
    margin-bottom: 0.45rem;
}

.blog-post-content a {
    color: #587360;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post-content a:hover {
    color: #3d5245;
}

.blog-post-content strong {
    color: #1a1a1a;
    font-weight: 700;
}

.blog-post-content em {
    font-style: italic;
}

.blog-post-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.blog-post-content table th,
.blog-post-content table td {
    border: 1px solid #dde3de;
    padding: 0.65rem 0.85rem;
    text-align: left;
}

.blog-post-content table th {
    background: #f2f5f2;
    font-weight: 600;
}

/* Compartir */
.blog-post-share {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ece9;
}

.blog-post-share-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a7a7a;
    margin-bottom: 0.75rem;
}

.blog-post-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #f2f5f2;
    border: 1px solid #dde3de;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.blog-post-share-btn:hover {
    background: #e8ece9;
    border-color: #c5d1c7;
    color: #1a1a1a;
}

/* Navegación inferior del artículo */
.blog-post-nav-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.blog-post-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #587360;
    background: #fff;
    border: 2px solid #587360;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.blog-post-nav-link:hover {
    background: #587360;
    color: #fff;
}

.blog-post-nav-link--primary {
    background: #587360;
    color: #fff;
}

.blog-post-nav-link--primary:hover {
    background: #3d5245;
    border-color: #3d5245;
    color: #fff;
}

/* Sidebar */
.blog-post-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-post-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    border: 1px solid #e8ece9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.blog-post-sidebar-card--accent {
    background: linear-gradient(145deg, #587360 0%, #4a6354 100%);
    border-color: transparent;
    color: #fff;
}

.blog-post-sidebar-title {
    font-family: "Cinzel", serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.blog-post-sidebar-card--accent .blog-post-sidebar-title {
    color: #fff;
}

.blog-post-sidebar-cat {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #587360;
    margin-bottom: 0.5rem;
}

.blog-post-sidebar-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #5a5a5a;
    margin-bottom: 1rem;
}

.blog-post-sidebar-card--accent .blog-post-sidebar-text {
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-sidebar-btn {
    width: 100%;
    border-radius: 12px;
}

.blog-post-sidebar-card--accent .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.blog-post-sidebar-card--accent .btn-outline-light:hover {
    background: #fff;
    color: #587360;
}

/* Artículos recomendados */
.blog-post-related {
    background: #fff;
    border-top: 1px solid #e8ece9;
    padding: 3rem 0 4rem;
    margin-top: 2rem;
}

.blog-post-related-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.blog-post-related-title {
    font-family: "Cinzel", serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.blog-post-related-sub {
    font-size: 1rem;
    color: #6a6a6a;
    margin-bottom: 0;
}

.blog-post-related .blog-card-media {
    aspect-ratio: 16 / 10;
}

.blog-post-related-all {
    padding: 0.8rem 1.6rem;
}

.blog-post-related-all img {
    width: 30px;
    height: 30px;
}

/* Hero portada del sitio (heredado) */
.section_fondo {
    min-height: 400px !important;
}

.blog_main .hero-title {
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-family: "Cinzel", serif;
    font-weight: 400;
}

.section_fondo .abajo_fondo img {
    height: 100px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .blog-post-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .blog-post-sidebar-card {
        flex: 1 1 280px;
    }

    .blog-post-cover--portrait {
        max-height: 480px;
        min-height: 320px;
    }

}

@media (max-width: 575.98px) {
    .blog-post-page {
        padding-top: 1rem;
    }

    .blog-post-content {
        padding: 1.15rem;
        border-radius: 14px;
    }

    .blog-post-nav-cta {
        flex-direction: column;
    }

    .blog-post-nav-link {
        justify-content: center;
        width: 100%;
    }

    .blog-post-share-btns {
        flex-direction: column;
    }

    .blog-post-share-btn {
        width: 100%;
    }
}
