/* ==========================================================================
   ESTILOS COMPLETOS PARA SINGLE ARTICLE (DETALLE DE NOTA)
   ========================================================================== */

.page-single-post-container {
    width: 100%;
    background: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.single-post-body-section {
    padding: 0 20px 60px 20px;
    background: #ffffff;
}

/* Badge Superior Centralizado */
.single-badge-wrapper {
    text-align: center;
    margin-top: -18px;
    position: relative;
    z-index: 10;
}

.single-post-category-badge {
    display: inline-block;
    background-color: #8C1527;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 22px;
    letter-spacing: 2px;
    border-radius: 2px;
}

/* Contenedor Principal Ajustado */
.single-post-wrapper {
    max-width: 840px; /* Limita el ancho del texto en pantallas grandes */
    margin: 35px auto 0 auto;
    box-sizing: border-box;
}

/* Título de la Nota */
.single-post-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #2C2825;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

/* Botones Compartir */
.single-share-block {
    text-align: center;
    margin-bottom: 35px;
}

.btn-share-post {
    background: transparent;
    border: none;
    color: #2C2825;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    transition: opacity 0.2s ease;
}

.btn-share-post.dark {
    background-color: #2C2825;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 2px;
}

.btn-share-post:hover {
    opacity: 0.85;
}

/* FORMATEO DE TEXTOS INTERNOS DEL EDITOR (the_content) */
.single-post-content-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #444444;
    line-height: 1.8;
    text-align: justify;
}

.single-post-content-body p {
    margin-bottom: 22px;
}

/* Encabezados H2 estilo Bloque Corporativo */
.single-post-content-body h2 {
    font-family: 'Montserrat', sans-serif;
    background-color: #8C1527;
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 14px 20px;
    margin: 40px 0 20px 0;
    text-align: left;
    border-radius: 2px;
    line-height: 1.35;
}

/* Alternancia de H2 pares a color oscuro */
.single-post-content-body h2:nth-of-type(even) {
    background-color: #2C2825;
}

.single-post-content-body h3 {
    font-family: 'Montserrat', sans-serif;
    color: #8C1527;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 30px 0 15px 0;
}

.single-post-content-body a {
    color: #8C1527;
    text-decoration: underline;
    font-weight: 600;
}

.single-post-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 4px;
}

.single-post-content-body ul,
.single-post-content-body ol {
    margin: 20px 0 25px 20px;
    padding: 0;
}

.single-post-content-body li {
    margin-bottom: 10px;
}

/* SECCIÓN INFERIOR OSCURA (TAMBIÉN PUEDE INTERESARTE) */
.single-related-dark-section {
    background-color: #2B2825;
    padding: 60px 20px 80px 20px;
    width: 100%;
    box-sizing: border-box;
}

.single-related-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.related-dark-title {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.related-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* RESPONSIVE */
@media screen and (max-width: 992px) {
    .related-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .single-post-main-title {
        font-size: 1.6rem;
    }
    .single-post-content-body {
        font-size: 0.98rem;
        text-align: left;
    }
    .single-post-content-body h2 {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    .related-grid-wrapper {
        grid-template-columns: 1fr;
    }
}