/* ==================================================
   ARTÍCULO AMPLIO, RESPONSIVE Y FONDO BLANCO
   NEWSPAPER / TAGDIV
================================================== */

/* Fondo blanco general en PC y móvil */
html,
body,
body.single-post,
.single-post,
.single-post .td-main-page-wrap,
.single-post .td-main-content-wrap,
.single-post .td-main-content,
.single-post .td-container,
.single-post .td-pb-row,
.single-post .td-pb-span8,
.single-post .tdc-row,
.single-post .tdc-row-content,
.single-post .tdc-inner-columns,
.single-post article,
.single-post .td-post-content,
.single-post .entry-content,
.single-post .td-post-title,
.single-post .tdb_single_post_title,
.single-post .tdb_single_post_title .tdb-block-inner,
.single-post .tdb_single_post_content,
.single-post .tdb_single_post_content .tdb-block-inner {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #222222 !important;
}

/* Evita que el navegador o el tema activen fondo oscuro */
html,
body {
    color-scheme: light !important;
}

/* Contenedor general de la entrada */
.single-post .td-main-content-wrap,
.single-post .td-main-content,
.single-post .td-container,
.single-post .tdc-row,
.single-post .tdc-row-content {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Filas internas */
.single-post .td-pb-row,
.single-post .tdc-inner-columns {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Elimina la limitación de la columna principal */
.single-post .td-main-content-wrap .td-pb-span8,
.single-post .td-main-content .td-pb-span8,
.single-post .td-pb-span8,
.single-post article,
.single-post .td-post-content,
.single-post .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Oculta la barra lateral solamente en las entradas */
.single-post .td-main-sidebar,
.single-post .td-pb-span4 {
    display: none !important;
}

/* Espaciado lateral en computadora */
.single-post .td-main-content-wrap,
.single-post .td-main-content {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Evita espacio duplicado */
.single-post article,
.single-post .td-post-content,
.single-post .entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Texto del artículo */
.single-post .td-post-content,
.single-post .entry-content,
.single-post .td-post-content p,
.single-post .entry-content p,
.single-post .td-post-content li,
.single-post .entry-content li {
    font-family: "Roboto", Arial, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
    color: #222222 !important;
    background-color: transparent !important;
    background-image: none !important;
    text-align: left !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

/* Separación entre párrafos */
.single-post .td-post-content p,
.single-post .entry-content p {
    margin-top: 0 !important;
    margin-bottom: 26px !important;
}

/* Enlaces */
.single-post .td-post-content a,
.single-post .entry-content a {
    color: #111111 !important;
    text-decoration: underline !important;
}

/* Título principal */
.single-post h1,
.single-post h1.entry-title,
.single-post .td-post-title .entry-title,
.single-post .tdb-title-text {
    font-family: "Inter", Arial, sans-serif !important;
    font-size: clamp(36px, 4vw, 56px) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    color: #000000 !important;
    background: transparent !important;
    text-align: left !important;
}

/* Subtítulos */
.single-post .td-post-content h2,
.single-post .entry-content h2,
.single-post .td-post-content h3,
.single-post .entry-content h3,
.single-post .td-post-content h4,
.single-post .entry-content h4 {
    color: #111111 !important;
    background: transparent !important;
}

/* Autor, fecha y categoría */
.single-post .td-post-date,
.single-post .td-post-author-name,
.single-post .td-post-category,
.single-post .td-module-meta-info,
.single-post .tdb-author-name,
.single-post .tdb-post-date {
    color: #555555 !important;
    background: transparent !important;
}

/* Imágenes y videos responsive */
.single-post .td-post-content img,
.single-post .entry-content img,
.single-post .td-post-content iframe,
.single-post .entry-content iframe,
.single-post .td-post-content video,
.single-post .entry-content video {
    max-width: 100% !important;
    height: auto !important;
}

/* Bloques comunes de WordPress */
.single-post .wp-block-group,
.single-post .wp-block-columns,
.single-post .wp-block-column,
.single-post .wp-block-media-text,
.single-post .wp-block-cover,
.single-post .wp-block-quote,
.single-post blockquote {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #222222 !important;
}

/* Elimina posibles capas oscuras */
.single-post .td-main-page-wrap::before,
.single-post .td-main-content-wrap::before,
.single-post .td-main-content::before,
.single-post article::before,
.single-post .entry-content::before {
    background: transparent !important;
}

/* ==================================================
   TABLET
================================================== */

@media only screen and (max-width: 1024px) {
    .single-post .td-main-content-wrap,
    .single-post .td-main-content {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* ==================================================
   MÓVIL
================================================== */

@media only screen and (max-width: 767px) {
    html,
    body,
    body.single-post,
    .single-post,
    .single-post .td-main-page-wrap,
    .single-post .td-main-content-wrap,
    .single-post .td-main-content,
    .single-post .td-container,
    .single-post .td-pb-row,
    .single-post .td-pb-span8,
    .single-post .tdc-row,
    .single-post .tdc-row-content,
    .single-post .tdc-inner-columns,
    .single-post article,
    .single-post .td-post-content,
    .single-post .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        background-color: #ffffff !important;
        background-image: none !important;
        color: #222222 !important;
    }

    .single-post .td-main-content-wrap,
    .single-post .td-main-content {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .single-post article,
    .single-post .td-post-content,
    .single-post .entry-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .single-post .td-post-content,
    .single-post .entry-content,
    .single-post .td-post-content p,
    .single-post .entry-content p,
    .single-post .td-post-content li,
    .single-post .entry-content li {
        font-family: "Roboto", Arial, sans-serif !important;
        font-size: 20px !important;
        line-height: 1.65 !important;
        color: #222222 !important;
        background-color: transparent !important;
        text-align: left !important;
    }

    .single-post h1,
    .single-post h1.entry-title,
    .single-post .td-post-title .entry-title,
    .single-post .tdb-title-text {
        font-size: 36px !important;
        line-height: 1.15 !important;
        color: #000000 !important;
    }
}

/* Fuerza modo claro incluso si el sistema usa modo oscuro */
@media (prefers-color-scheme: dark) {
    html,
    body,
    body.single-post,
    .single-post,
    .single-post .td-main-page-wrap,
    .single-post .td-main-content-wrap,
    .single-post .td-main-content,
    .single-post .td-container,
    .single-post .td-pb-row,
    .single-post .td-pb-span8,
    .single-post .tdc-row,
    .single-post .tdc-row-content,
    .single-post .tdc-inner-columns,
    .single-post article,
    .single-post .td-post-content,
    .single-post .entry-content {
        background-color: #ffffff !important;
        background-image: none !important;
        color: #222222 !important;
    }

    .single-post h1,
    .single-post h2,
    .single-post h3,
    .single-post h4,
    .single-post h5,
    .single-post h6,
    .single-post p,
    .single-post li {
        color: #222222 !important;
    }
} /* ==========================================
   JUSTIFICAR TODO EL TEXTO DEL ARTÍCULO
========================================== */

.single-post .td-post-content,
.single-post .entry-content,
.single-post .td-post-content p,
.single-post .entry-content p,
.single-post .td-post-content li,
.single-post .entry-content li,
.single-post .td-post-content blockquote,
.single-post .entry-content blockquote,
.single-post .td-post-content figcaption,
.single-post .entry-content figcaption,
.page .entry-content,
.page .entry-content p,
.page .entry-content li {
    text-align: justify !important;
    text-justify: inter-word !important;
    -webkit-text-align-last: auto;
    text-align-last: auto;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
}

/* Mantener títulos alineados a la izquierda */

.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6,
.single-post .entry-title,
.single-post .tdb-title-text {
    text-align: left !important;
}

/* Móvil */

@media only screen and (max-width: 767px) {

    .single-post .td-post-content,
    .single-post .entry-content,
    .single-post .td-post-content p,
    .single-post .entry-content p,
    .single-post .td-post-content li,
    .single-post .entry-content li,
    .page .entry-content,
    .page .entry-content p,
    .page .entry-content li {
        text-align: justify !important;
        text-justify: inter-word !important;
        -webkit-text-align-last: auto;
        text-align-last: auto;
        hyphens: auto;
    }
}