.trabajo-fila {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 36px 0 !important;
    padding: 0 !important;
}

.trabajo-fila > .wp-block-column {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.footer-navegar {
    margin-bottom: 18px !important;
}

.widget_nav_menu {
    margin-top: 0 !important;
}
.proyecto-home h2 {
    margin-bottom: 10px !important;
}

.proyecto-home h2 + p {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.proyecto-home p {
    margin-top: 0 !important;
}

.cuaderno-home {
    margin-top: 50px !important;
}

.widget_nav_menu ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.footer-nombre {
    margin-bottom: 0 !important;
}

.footer-descripcion {
    margin-top: -12px !important;
}

.site-footer {
    background-color: #f5f2e9 !important;
    padding: 20px 25px !important;
    min-height: 0 !important;
    height: auto !important;
}
/* Página Ideas: ocultar barra lateral */
.page-id-10182 #secondary {
    display: none !important;
}

/* Página Ideas: ampliar contenido principal */
.page-id-10182 #primary {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ideas: aprovechar el ancho disponible */
.page-id-10182 .site-content,
.page-id-10182 .content-area,
.page-id-10182 .site-main {
    width: 100% !important;
}

.page-id-10182 .site-main {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box;
}

/* Ajustar espacio bajo el título de la página Ideas */
.page-id-10182 .entry-title {
    margin-bottom: 20px !important;
}

.page-id-10182 .entry-content {
    margin-top: 0 !important;
}

/* Página Ideas: acercar introducción al título */
.page-id-10182 .entry-header {
    margin-bottom: 25px !important;
}

.page-id-10182 .entry-content > *:first-child {
    margin-top: 0 !important;
}

.page-id-10182 .entry-content {
    margin-top: -25px !important;
}

/* ARCHIVOS DE CATEGORÍAS: SIN SIDEBAR */

.category .widget-area,
.category #secondary {
    display: none !important;
}

.category .content-area,
.category #primary,
.category .site-main {
    width: 100% !important;
    max-width: 100% !important;
}

.page-id-10182 #secondary,
.page-id-10299 #secondary {
    display: none;
}

/* Página Proyectos: quitar sidebar */
.page-id-10299 #secondary,
.page-id-10299 .widget-area,
.page-id-10299 .sidebar {
    display: none !important;
}

/* Quitar sidebar del nuevo Inicio */
.page-id-10095 #secondary,
.page-id-10095 .widget-area {
    display: none !important;
}

/* Dar todo el ancho al contenido */
.page-id-10095 .content-area,
.page-id-10095 #primary,
.page-id-10095 .site-main {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ocultar valoraciones de Crowdsignal/Polldaddy */
.single-post [id^="pd_rating_holder_"] {
    display: none !important;
}

/* Seguir leyendo: sustituir icono por flecha */
#block-28 .wp-block-latest-posts__list li {
    list-style: none !important;
}

#block-28 .wp-block-latest-posts__list li::before {
    content: "→";
    margin-right: 10px;
}

/* Cabecera de las entradas: fecha limpia */
.single-post .entry-meta .posted-on {
    font-size: 0;
}

.single-post .entry-meta .posted-on .entry-date.published {
    font-size: 18px;
}

.single-post .entry-meta .byline {
    display: none !important;
}

/* Fecha de las entradas */
.single-post .entry-meta .entry-date.published {
    font-size: 16px;
    color: #6f6a64;
}

/* Ocultar categorías y etiquetas al final de las entradas */
.single-post .cat-links,
.single-post .tags-links {
    display: none !important;
}

/* Ocultar icono/enlace de formato al final de la entrada */
.single-post .entry-footer .edit-link,
.single-post .entry-footer .comments-link {
    display: none !important;
}

/* Ocultar el footer técnico de las entradas */
.single-post .entry-footer {
    display: none !important;
}

/* Compactar navegación entre entradas */
.single .post-navigation {
    margin-top: -80px !important;
    margin-bottom: -70px !important;
}


/* Ocultar título de la portada */
#post-10095 .entry-header {
    display: none;
}

/* Ocultar cabecera ilustrada solo en la portada */
body.home .header-bg {
    display: none;
}

/* Reducir espacio superior en la portada móvil */
@media (max-width: 781px) {
    body.home #post-10095 .entry-content {
        margin-top: 0;
    }
}

/* Acercar fotografía en la portada móvil */
@media (max-width: 781px) {
    body.home #post-10095
    .wp-container-core-columns-is-layout-8f761849
    > .wp-block-column:nth-child(2) {
        margin-top: -35px !important;
    }
}


/* Portada del libro en la versión móvil */
@media (max-width: 781px) {
    body.home #post-10095 img.wp-image-19 {
        width: 85% !important;
        height: auto;
        display: block;
        margin: -50px auto 0 !important;
    }
}

/* Igualar separación entre títulos y enlaces en IDEAS */
@media (max-width: 781px) {
    body.home #post-10095 p:has(> a[href*="el-antipoder-de-los-ddhh"]),
    body.home #post-10095 p:has(> a[href*="10-mangos-del-arbol-contracultural"]) {
        margin-top: 24px !important;
    }
}

/* Ajustar separación del tercer artículo en IDEAS - móvil */
@media (max-width: 781px) {
    body.home #post-10095
    .wp-container-core-columns-is-layout-8f761849
    > .wp-block-column:nth-child(3) {
        margin-top: -30px !important;
    }
}

/* Compactar las dos filas de TRABAJO SOBRE en móvil */
@media (max-width: 781px) {
    .trabajo-fila {
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Títulos de libros en versión móvil */
@media (max-width: 781px) {
    .libro-titulo {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }
}

/* Acercar el enlace de conversaciones en móvil */
@media (max-width: 781px) {
    .conversaciones-fila {
        margin-bottom: -30px !important;
    }
}

/* Tarjeta Laboratorio de Paz */
.tarjeta-labpaz {
    padding: 20px !important;
}

/* Tarjeta Náufrago de Ítaca */
.tarjeta-naufrago {
    padding: 20px !important;
}

/* Tamaño del logotipo de ndi Ediciones */
.tarjeta-naufrago .wp-block-image img {
    width: 110px !important;
    height: auto !important;
}

/* Acercar el enlace a la descripción */
.tarjeta-labpaz p[style*="margin-top:90px"] {
    margin-top: 15px !important;
}

/* Espacio entre los dos párrafos de Laboratorio de Paz */
.tarjeta-labpaz p + p {
    margin-top: 15px !important;
}

/* Espacio interior del cierre del blog */
.cierre-blog {
    padding: 25px !important;
}

/* Unificar el fondo del pie de página */
.footer-wrap {
    background-color: #f5f2e9 !important;
    margin-top: 0 !important;
}

/* Ajustar el pie de página */
.site-footer {
    padding: 0 !important;
    min-height: 0 !important;
}

.site-footer .site-info {
    display: none !important;
}

.footer-wrap {
    margin-top: 0 !important;
}

/* Ocultar enlace Edit en la portada */
.page-id-10095 .entry-footer {
    display: none !important;
}

@media (max-width: 781px) {
    #content.site-content {
        margin-bottom: 0 !important;
    }
}

/* Pie de página personalizado */
.pie-personal {
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    background-color: #f5f2e9;
    padding: 25px 20px;
    margin: 0 !important;
    font-weight: 400;
}
	
	/* Reducir espacio bajo el pie personalizado */
.page-id-10095 .pie-personal {
    padding-bottom: 5px !important;
    margin-bottom: 0 !important;
}

/* Ocultar footer original de Gateway solo en la portada */
.page-id-10095 footer.site-footer,
.page-id-10095 .footer-wrap {
    display: none !important;
}

/* Compactar el pie personalizado */
.page-id-10095 .pie-personal {
    padding-top: 10px !important;
    padding-bottom: 15px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Tamaño definitivo de la fecha en móvil */
@media (max-width: 781px) {
    .single-post .entry-meta .posted-on .entry-date.published {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
}

/* Ocultar título redundante de compartir */
.single-post .sharedaddy .sd-title {
    display: none !important;
}

/* Ocultar navegación anterior/siguiente en artículos */
.single-post .post-navigation {
    display: none !important;
}

/* Separación entre Compartir y comentarios en móvil */
@media (max-width: 781px) {
    .single-post .post-navigation + hr {
        margin-top: 0 !important;
        margin-bottom: -80px !important;
    }
}

/* Ocultar las columnas del footer solo en móviles */
@media (max-width: 781px) {
    .site-footer .footer-widgets,
    .site-footer .widget-area {
        display: none !important;
    }
}

/* Videos verticales del libro */
.video-cinismo {
    width: 300px !important;
    max-width: 100% !important;
    margin: 25px auto !important;
}

.video-cinismo iframe {
    display: block !important;
    width: 100% !important;
    height: 533px !important;
    max-width: 100% !important;
}

/* Menú móvil: identidad visual */
@media (max-width: 768px) {
    .menu-toggle {
        background-color: #781D32 !important;
        color: #F3F0E7 !important;
    }
}

/* Ocultar contenedor del pie de página en móvil */
@media (max-width: 768px) {
    .footer-wrap {
        display: none !important;
    }
}

/* Línea de tiempo - Sobre Rafael Uzcátegui */

.trayectoria-timeline {
    position: relative;
    margin: 30px 0 40px;
    padding-left: 24px;
    border-left: 2px solid #781D32;
}

.trayectoria-etapa {
    position: relative;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.trayectoria-etapa:last-child {
    margin-bottom: 0;
}

.trayectoria-etapa::before {
    content: "";
    position: absolute;
    left: -31px;
    top: 5px;
    width: 12px;
    height: 12px;
    border: 2px solid #781D32;
    border-radius: 50%;
    background: #F3F0E7;
}

.trayectoria-fecha {
    color: #781D32;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}

.trayectoria-contenido strong {
    display: block;
    color: #333333;
    font-size: 16px;
    line-height: 1.4;
}

.trayectoria-contenido p {
    margin: 6px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
}

/* Adaptación para teléfonos */

@media (max-width: 600px) {
    .trayectoria-timeline {
        padding-left: 20px;
    }

    .trayectoria-etapa {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-bottom: 26px;
    }

    .trayectoria-etapa::before {
        left: -27px;
    }

    .trayectoria-fecha {
        font-size: 14px;
    }

    .trayectoria-contenido strong {
        font-size: 16px;
    }
}


/* Reconocimientos - Sobre Rafael Uzcátegui */

.reconocimientos-lista {
    margin: 30px 0 40px;
}

.reconocimiento-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.reconocimiento-item:last-child {
    margin-bottom: 0;
}

.reconocimiento-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #F0E0DC;
    color: #781D32;
    font-size: 27px;
    line-height: 1;
}

.reconocimiento-texto {
    flex: 1;
    min-width: 0;
}

.reconocimiento-ano {
    display: block;
    margin-bottom: 5px;
    color: #781D32;
    font-size: 14px;
    font-weight: 700;
}

.reconocimiento-texto strong {
    display: block;
    color: #333333;
    font-size: 17px;
    line-height: 1.45;
}

.reconocimiento-texto p {
    margin: 7px 0 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
}

/* Ajustes para teléfonos */

@media (max-width: 600px) {
    .reconocimiento-item {
        gap: 14px;
        margin-bottom: 26px;
    }

    .reconocimiento-icono {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 23px;
    }

    .reconocimiento-texto strong {
        font-size: 16px;
    }

    .reconocimiento-texto p {
        font-size: 14px;
    }
}


/* Tarjetas: Escritura y edición independiente */

.escritura-tarjetas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 30px 0 40px;
}

.escritura-tarjeta {
    display: flex;
    flex-direction: column;
    padding: 24px;
   background: #F0E5E1;
border: 1px solid #E4D0CB;
    border-radius: 12px;
    text-decoration: none;
    color: #333333;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

a.escritura-tarjeta:hover {
    transform: translateY(-3px);
    border-color: #781D32;
}

.escritura-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #EAD9D5;
    color: #781D32;
    font-size: 27px;
}

.escritura-tarjeta h3 {
    margin: 0 0 12px;
    color: #781D32;
    font-size: 21px;
    line-height: 1.3;
}

.escritura-tarjeta p {
    margin: 0 0 22px;
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
}

.escritura-enlace {
    display: block;
    margin-top: auto;
    color: #781D32;
    font-size: 14px;
    font-weight: 700;
}

/* Adaptación para móviles */

@media (max-width: 600px) {
    .escritura-tarjetas {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .escritura-tarjeta {
        padding: 22px;
    }

    .escritura-tarjeta h3 {
        font-size: 20px;
    }
}



/* Cierre de contacto - Sobre Rafael Uzcátegui */

.sobre-contacto {
    background: #781D32;
    border-radius: 12px;
    padding: 34px 30px;
    margin: 40px 0;
    color: #FFFFFF;
}

.sobre-contacto h2 {
    color: #FFFFFF;
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 18px;
}

.sobre-contacto p {
    color: #F5E8E6;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 26px;
}

.sobre-contacto-boton {
    display: inline-block;
    background: #F3F0E7;
    color: #781D32 !important;
    padding: 13px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.sobre-contacto-boton:hover {
    background: #EAD9D5;
    color: #781D32 !important;
}

/* Adaptación para móviles */

@media (max-width: 600px) {
    .sobre-contacto {
        padding: 28px 22px;
        margin: 32px 0;
    }

    .sobre-contacto h2 {
        font-size: 25px;
    }

    .sobre-contacto p {
        font-size: 15px;
    }
}


/* Hoja de vida - Sobre Rafael Uzcátegui */

.page-id-32 .wp-block-file {
    background: #F0E5E1;
    border: 1px solid #E4D0CB;
    border-radius: 12px;
    padding: 22px;
    margin: 30px 0 38px;
}

.page-id-32 .wp-block-file > a:not(.wp-block-file__button) {
    display: block;
    color: #781D32;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 14px;
}

.page-id-32 .wp-block-file__button {
    display: inline-block;
    background: #781D32;
    color: #FFFFFF !important;
    border-radius: 6px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.page-id-32 .wp-block-file__button:hover {
    background: #5D1526;
    color: #FFFFFF !important;
}


/* Ocultar comentarios en Sobre Rafael Uzcátegui */

.page-id-32 #comments,
.page-id-32 .comments-area {
    display: none !important;
}

/* Ajustes de espaciado en la portada Inicio nuevo */

.page-id-10095 .wp-block-column > .wp-block-image + p {
    margin-top: 0 !important;
}

.page-id-10095 .wp-block-column > .wp-block-image + p + p {
    margin-top: 16px !important;
}

/* Citas destacadas en los artículos */

.single-post .wp-block-quote {
    border-left: 5px solid #781D32 !important;
    background: #F0E5E1 !important;
    padding: 24px 26px !important;
    margin: 36px 0 !important;
}

.single-post .wp-block-quote p {
    color: #781D32 !important;
    font-size: 1.15em !important;
    line-height: 1.55 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Comillas gráficas para citas destacadas */

.single-post .wp-block-quote::before {
    content: "“";
    display: block;
    color: #781D32;
    font-family: Georgia, serif;
    font-size: 76px;
    font-weight: bold;
    line-height: 0.75;
    margin-bottom: 0px;
}

/* Pincelada de tinta bajo Cuaderno de notas */
.page-id-10095 .titulo-cuaderno::after {
    content: "";
    display: block;
    width: 205px;
    max-width: 100%;
    height: 7px;
    margin-top: 10px;
    background: #781D32;

    clip-path: polygon(
        0% 42%,
        7% 18%,
        18% 29%,
        31% 9%,
        45% 24%,
        58% 12%,
        72% 32%,
        87% 8%,
        100% 25%,
        97% 69%,
        82% 91%,
        65% 74%,
        48% 100%,
        29% 78%,
        13% 92%,
        0% 68%
    );

    transform: rotate(-0.7deg);
}

/* Pincelada editorial bajo LIBROS */
.page-id-10095 .titulo-libros {
    position: relative;
    padding-bottom: 14px;
}

.page-id-10095 .titulo-libros::after {
    content: "";
    display: block;
    width: 72px;
    height: 7px;
    margin-top: 10px;
    background: #781D32;

    clip-path: polygon(
        0% 35%,
        12% 15%,
        28% 30%,
        45% 8%,
        63% 25%,
        82% 10%,
        100% 32%,
        97% 75%,
        79% 90%,
        58% 72%,
        37% 100%,
        16% 78%,
        0% 65%
    );

    transform: rotate(-0.8deg);
}

/* Pincelada editorial bajo AHORA */
.page-id-10095 .titulo-ahora {
    position: relative;
    padding-bottom: 14px;
}

.page-id-10095 .titulo-ahora::after {
    content: "";
    display: block;
    width: 78px;
    height: 7px;
    margin-top: 10px;
    background: #781D32;

    clip-path: polygon(
        0% 38%,
        9% 16%,
        23% 27%,
        38% 8%,
        54% 25%,
        69% 12%,
        85% 28%,
        100% 15%,
        97% 73%,
        81% 94%,
        64% 77%,
        47% 100%,
        28% 76%,
        12% 91%,
        0% 66%
    );

    transform: rotate(-0.6deg);
}

/* Pincelada editorial bajo IDEAS */
.page-id-10095 .titulo-ideas {
    position: relative;
    padding-bottom: 14px;
}

.page-id-10095 .titulo-ideas::after {
    content: "";
    display: block;
    width: 68px;
    height: 7px;
    margin-top: 10px;
    background: #781D32;

    clip-path: polygon(
        0% 28%,
        11% 12%,
        26% 32%,
        42% 9%,
        57% 26%,
        73% 13%,
        89% 30%,
        100% 18%,
        96% 76%,
        81% 93%,
        65% 74%,
        49% 100%,
        32% 79%,
        14% 91%,
        0% 65%
    );

    transform: rotate(0.5deg);
}

/* Subrayado artesanal para enlaces editoriales */
.page-id-10095 .enlace-editorial a {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.page-id-10095 .enlace-editorial a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: #781D32;

    clip-path: polygon(
        0% 35%, 18% 10%, 39% 30%,
        61% 5%, 82% 25%, 100% 15%,
        98% 80%, 73% 95%, 47% 75%,
        22% 100%, 0% 70%
    );

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.page-id-10095 .enlace-editorial a:hover::after,
.page-id-10095 .enlace-editorial a:focus-visible::after {
    transform: scaleX(1);
}

/* Etiquetas editoriales estilo fanzine */
.page-id-10095 .etiqueta-editorial {
    display: table;
    width: fit-content;
    max-width: 100%;
    background: #781D32;
    color: #F5F2EA !important;
    padding: 7px 13px 8px;
    margin-bottom: 16px;

    clip-path: polygon(
        0% 4%,
        19% 0%,
        43% 3%,
        68% 0%,
        100% 5%,
        98% 48%,
        100% 96%,
        75% 100%,
        48% 97%,
        21% 100%,
        0% 95%,
        2% 51%
    );

    transform: rotate(-0.6deg);
}

/* Cinta adhesiva artesanal en la primera fotografía */
.page-id-10095 .wp-block-post-template
> li:first-child .wp-block-post-featured-image {
    position: relative;
    overflow: visible;
}

.page-id-10095 .wp-block-post-template
> li:first-child .wp-block-post-featured-image::after {
    content: "";
    position: absolute;
    top: -12px;
    right: 12px;
    width: 76px;
    height: 25px;
    background: rgba(213, 195, 163, 0.55);
    z-index: 2;
    pointer-events: none;

    clip-path: polygon(
        0 8%, 9% 0, 19% 7%,
        31% 1%, 43% 6%, 57% 0,
        72% 7%, 86% 1%, 100% 9%,
        96% 91%, 84% 100%, 70% 94%,
        54% 100%, 38% 93%, 21% 100%,
        8% 94%, 0 100%
    );

    transform: rotate(8deg);
}

/* Segunda fotografía: cinta superior izquierda */
.page-id-10095 .wp-block-post-template
> li:nth-child(2) .wp-block-post-featured-image {
    position: relative;
    overflow: visible;
}

.page-id-10095 .wp-block-post-template
> li:nth-child(2) .wp-block-post-featured-image::after {
    content: "";
    position: absolute;
    top: -11px;
    left: 14px;
    width: 68px;
    height: 24px;
    background: rgba(213, 195, 163, 0.55);
    z-index: 2;
    pointer-events: none;

    clip-path: polygon(
        0% 5%, 14% 0%, 29% 7%,
        46% 1%, 63% 6%, 81% 0%,
        100% 8%, 97% 93%, 83% 100%,
        65% 94%, 48% 100%, 30% 93%,
        13% 100%, 0% 94%
    );

    transform: rotate(-9deg);
}

/* Tercera fotografía: cinta inferior derecha */
.page-id-10095 .wp-block-post-template
> li:nth-child(3) .wp-block-post-featured-image {
    position: relative;
    overflow: visible;
}

.page-id-10095 .wp-block-post-template
> li:nth-child(3) .wp-block-post-featured-image::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 16px;
    width: 64px;
    height: 23px;
    background: rgba(213, 195, 163, 0.55);
    z-index: 2;
    pointer-events: none;

    clip-path: polygon(
        0% 8%, 16% 0%, 33% 7%,
        51% 1%, 68% 6%, 85% 0%,
        100% 9%, 97% 92%, 82% 100%,
        64% 94%, 47% 100%, 28% 93%,
        12% 100%, 0% 94%
    );

    transform: rotate(6deg);
}

/* Mancha de tinta en el extremo derecho del menú - escritorio */
@media (min-width: 769px) {
    .main-navigation {
        position: relative;
    }

    .main-navigation::after {
        content: "";
        display: none;
       position: fixed;
right: 25px;
top: 45px;
        width: 300px;
        height: 35px;
        background: url("https://rafaeluzcategui.blog/wp-content/uploads/2026/10/mancha-menu-burdeos.png") no-repeat right top;
        background-size: contain;
        pointer-events: none;
        z-index: 0;
    }
}

@media (max-width: 768px) {
  .main-navigation {
    position: relative;
  }

  .main-navigation::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -30px;
    width: 145px;
    height: 32px;
    background: url("https://rafaeluzcategui.blog/wp-content/uploads/2026/10/mancha-menu-burdeos.png") no-repeat right top;
    background-size: contain;
    pointer-events: none;
    z-index: 10;
  }
}

/* Mancha editorial integrada en la portada */
@media (min-width: 769px) {
  .page-id-10095 .entry-content {
    position: relative;
  }

  .page-id-10095 .entry-content::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -60px;
    width: 400px;
    height: 35px;
    background: url("https://rafaeluzcategui.blog/wp-content/uploads/2026/10/mancha-menu-blanca.png") no-repeat right top;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
  }
}

/* Tarjeta Como editor: enlace en toda la superficie */
.tarjeta-como-editor {
    position: relative;
    cursor: pointer;
}

.tarjeta-como-editor .enlace-como-editor a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.tarjeta-como-editor:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

/* IDEAS — DEMOCRACIA */

.ideas-democracia {
    border-top: 3px solid #781D32;
    padding-top: 35px;
    margin-top: 35px;
    margin-bottom: 65px;
}

/* Título editorial con número e icono */
.ideas-democracia h5 {
    font-size: 0;
    margin: 0 0 22px;
    line-height: 1.1;
    text-transform: none;
}

.ideas-democracia h5::before {
   content: "01 ///";
    display: block;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 800;
    color: #781D32;
    letter-spacing: -3px;
    margin-bottom: 12px;
}

.ideas-democracia h5::after {
    content: "Democracia";
    display: block;
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 800;
    color: #202020;
    letter-spacing: -1px;
}

/* Texto y enlace */
.ideas-democracia p {
    line-height: 1.65;
}

.ideas-democracia a {
    color: #781D32;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* Adaptación móvil */
@media (max-width: 781px) {
    .ideas-democracia {
        padding-top: 25px;
        margin-top: 25px;
        margin-bottom: 45px;
    }

    .ideas-democracia h5::before {
        font-size: 54px;
    }

    .ideas-democracia h5::after {
        font-size: 30px;
    }
}


/* Reducir espacios entre los elementos de Democracia */
.ideas-democracia .wp-block-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ideas-democracia .wp-block-column > * {
    margin-top: 0;
    margin-bottom: 0;
}

/* IDEAS — DERECHOS HUMANOS */

.ideas-derechos {
    border-top: 3px solid #781D32;
    padding-top: 35px;
    margin-top: 35px;
    margin-bottom: 65px;
}

/* Numeración y título editorial */
.ideas-derechos h5 {
    font-size: 0;
    margin: 0 0 22px;
    line-height: 1.1;
    text-transform: none;
}

.ideas-derechos h5::before {
    content: "02 ///";
    display: block;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 800;
    color: #781D32;
    letter-spacing: -3px;
    margin-bottom: 12px;
}

.ideas-derechos h5::after {
    content: "Derechos humanos";
    display: block;
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 800;
    color: #202020;
    letter-spacing: -1px;
}

/* Espaciado */
.ideas-derechos .wp-block-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ideas-derechos .wp-block-column > * {
    margin-top: 0;
    margin-bottom: 0;
}

.ideas-derechos p {
    line-height: 1.65;
}

.ideas-derechos a {
    color: #781D32;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* Adaptación móvil */
@media (max-width: 781px) {
    .ideas-derechos {
        padding-top: 25px;
        margin-top: 25px;
        margin-bottom: 45px;
    }

    .ideas-derechos h5::before {
        font-size: 54px;
    }

    .ideas-derechos h5::after {
        font-size: 30px;
    }
}

/* IDEAS — CONTRACULTURA */

.ideas-contracultura {
    border-top: 3px solid #781D32;
    padding-top: 35px;
    margin-top: 35px;
    margin-bottom: 65px;
}

/* Número y título editorial */
.ideas-contracultura h5 {
    font-size: 0;
    margin: 0 0 22px;
    line-height: 1.1;
    text-transform: none;
}

.ideas-contracultura h5::before {
    content: "03 ///";
    display: block;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 800;
    color: #781D32;
    letter-spacing: -3px;
    margin-bottom: 12px;
}

.ideas-contracultura h5::after {
    content: "Contracultura";
    display: block;
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 800;
    color: #202020;
    letter-spacing: -1px;
}

/* Espaciado */
.ideas-contracultura .wp-block-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ideas-contracultura .wp-block-column > * {
    margin-top: 0;
    margin-bottom: 0;
}

.ideas-contracultura p {
    line-height: 1.65;
}

.ideas-contracultura a {
    color: #781D32;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* Adaptación móvil */
@media (max-width: 781px) {
    .ideas-contracultura {
        padding-top: 25px;
        margin-top: 25px;
        margin-bottom: 45px;
    }

    .ideas-contracultura h5::before {
        font-size: 54px;
    }

    .ideas-contracultura h5::after {
        font-size: 30px;
    }
}

/* IDEAS — Orden uniforme de las secciones en móvil */

@media (max-width: 781px) {

    body.page-id-10182 .ideas-democracia,
    body.page-id-10182 .ideas-derechos,
    body.page-id-10182 .ideas-contracultura {
        display: flex;
        flex-direction: column;
    }

    /* Columna que contiene el título */
    body.page-id-10182 .ideas-democracia > .wp-block-column:has(h5),
    body.page-id-10182 .ideas-derechos > .wp-block-column:has(h5),
    body.page-id-10182 .ideas-contracultura > .wp-block-column:has(h5) {
        order: 1;
    }

    /* Columna que contiene la fotografía */
    body.page-id-10182 .ideas-democracia > .wp-block-column:not(:has(h5)),
    body.page-id-10182 .ideas-derechos > .wp-block-column:not(:has(h5)),
    body.page-id-10182 .ideas-contracultura > .wp-block-column:not(:has(h5)) {
        order: 2;
    }

}

/* IDEAS — MOVIMIENTOS SOCIALES */

.ideas-movimientos {
    border-top: 3px solid #781D32;
    padding-top: 35px;
    margin-top: 35px;
    margin-bottom: 65px;
}

.ideas-movimientos h5 {
    font-size: 0;
    margin: 0 0 22px;
    line-height: 1.1;
    text-transform: none;
}

.ideas-movimientos h5::before {
    content: "04 ///";
    display: block;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 800;
    color: #781D32;
    letter-spacing: -3px;
    margin-bottom: 12px;
}

.ideas-movimientos h5::after {
    content: "Movimientos sociales";
    display: block;
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 800;
    color: #202020;
    letter-spacing: -1px;
}

.ideas-movimientos .wp-block-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ideas-movimientos .wp-block-column > * {
    margin-top: 0;
    margin-bottom: 0;
}

.ideas-movimientos p {
    line-height: 1.65;
}

.ideas-movimientos a {
    color: #781D32;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* Orden correcto en móvil */
@media (max-width: 781px) {
    .ideas-movimientos {
        display: flex;
        flex-direction: column;
        padding-top: 25px;
        margin-top: 25px;
        margin-bottom: 45px;
    }

    .ideas-movimientos > .wp-block-column:has(h5) {
        order: 1;
    }

    .ideas-movimientos > .wp-block-column:not(:has(h5)) {
        order: 2;
    }

    .ideas-movimientos h5::before {
        font-size: 54px;
    }

    .ideas-movimientos h5::after {
        font-size: 30px;
    }
}

/* ARCHIVO PERSONAL — Fichas de documentos */

/* Ocultar la barra lateral */
body.single-documento #secondary,
body.single-documento .widget-area,
body.single-documento aside.sidebar {
    display: none !important;
}

/* Ampliar el contenido */
body.single-documento #primary,
body.single-documento .content-area,
body.single-documento .site-main {
    width: 100% !important;
    max-width: 1100px !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ARCHIVO — Ocultar enlace de regreso al blog */
body.single-documento a.volver-blog {
    display: none !important;
}

/* ARCHIVO — Ocultar fecha de carga y autor */
body.single-documento .entry-meta {
    display: none !important;
}

/* ARCHIVO — Ocultar valoraciones de Polldaddy */
body.single-documento [id^="pd_rating_holder_"] {
    display: none !important;
}

/* ARCHIVO — Botones de consulta */
body.single-documento .wp-block-button__link {
    background-color: #781D32 !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    text-decoration: none !important;
}

body.single-documento .wp-block-button__link:hover {
    background-color: #541123 !important;
}

/* ARCHIVO — Espaciado de la cabecera */
.archivo-cabecera {
    padding: 40px !important;
    box-sizing: border-box;
}

/* ARCHIVO — Ocultar título automático de WordPress */
body.page-id-10985 .entry-header {
    display: none !important;
}

/* ARCHIVO — Reducir separación entre título e introducción */
.archivo-cabecera {
    display: flex !important;
    flex-direction: column;
    gap: 18px !important;
}

.archivo-cabecera h2,
.archivo-cabecera p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.archivo-cabecera h2 {
    border-bottom: none !important;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.archivo-cabecera h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 270px;
    max-width: 85%;
    height: 7px;
    background: #F5F2EA;
    clip-path: polygon(
        0 25%, 12% 10%, 24% 35%,
        38% 15%, 52% 40%, 66% 12%,
        80% 30%, 92% 8%, 100% 25%,
        100% 75%, 88% 95%, 73% 70%,
        58% 90%, 42% 65%, 28% 95%,
        13% 72%, 0 90%
    );
}

.archivo-cabecera h2 {
    margin-bottom: 34px !important;
}

.page-id-10985 .wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
}

/* PROYECTOS — Línea editorial */
.proyectos-linea {
    width: 140px !important;
    max-width: 140px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    border: 0 !important;
    border-top: 4px solid #F5F2EA !important;
    opacity: 1 !important;
}

/* PROYECTOS — Cabecera editorial */
.proyectos-cabecera {
    box-sizing: border-box;
    padding: 36px 40px !important;
}

/* Adaptación a teléfonos */
@media (max-width: 600px) {
    .proyectos-cabecera {
        padding: 24px !important;
    }
}

/* Ocultar título automático de la página Proyectos */
.page-id-10299 .entry-title {
    display: none !important;
}

/* Líneas divisorias de la página Proyectos */
.wp-block-separator.separador-proyectos {
    border: none !important;
    border-top: 3px solid #781D32 !important;
    background: transparent !important;
    opacity: 1 !important;
    height: 0 !important;
}

/* PROYECTOS — Ancho completo, como Ideas */

.page-id-10299 #secondary {
    display: none !important;
}

.page-id-10299 #primary,
.page-id-10299 .content-area,
.page-id-10299 .site-content {
    width: 100% !important;
    max-width: none !important;
}

.page-id-10299 .site-main {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box;
}

/* PROYECTOS — Tratamiento editorial de Ideas */

.proyecto-humano-texto {
    --wp--style--block-gap: 12px;
}

.proyecto-humano-texto h2 {
    font-size: 64px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: #781D32 !important;
    margin: 0 0 12px !important;
}

.proyecto-humano-texto h3 {
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #252525 !important;
    margin: 0 0 24px !important;
}

.proyecto-humano-texto p {
    color: #777777;
    font-size: 18px;
    line-height: 1.7;
}
/* PROYECTOS — COMPOSICIÓN MÓVIL */

@media (max-width: 781px) {

  /* Los tres proyectos se presentan verticalmente */
  body.page-id-10299 .proyecto-musica,
  body.page-id-10299 .proyecto-humano,
  body.page-id-10299 .proyecto-exilio {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
  }

  /* Cada columna ocupa todo el ancho disponible */
  body.page-id-10299 .proyecto-musica > .wp-block-column,
  body.page-id-10299 .proyecto-humano > .wp-block-column,
  body.page-id-10299 .proyecto-exilio > .wp-block-column {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* Humano Derecho: fotografía primero */
  body.page-id-10299 .proyecto-humano > .wp-block-column:first-child {
    order: 2;
  }

  body.page-id-10299 .proyecto-humano > .wp-block-column:last-child {
    order: 1;
  }

  /* Fotografías completas, sin recortes */
  body.page-id-10299 .proyecto-musica img,
  body.page-id-10299 .proyecto-humano img,
  body.page-id-10299 .proyecto-exilio img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Tipografía adaptada a teléfonos */
  body.page-id-10299 .proyecto-humano-texto h2 {
    font-size: 46px !important;
  }

  body.page-id-10299 .proyecto-humano-texto h3 {
    font-size: 29px !important;
  }

  body.page-id-10299 .proyecto-humano-texto p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}


/* MXM — Ocultar título automático de la página */
body.page-id-11113 .entry-title {
    display: none !important;
}

/* MÚSICA X MEDICINAS — SECCIONES EDITORIALES */

body.page-id-11113 .seccion-mxm {
    margin-top: 65px;
    margin-bottom: 65px;
}

body.page-id-11113 .seccion-mxm h2 {
    color: #781D32 !important;
    font-size: 52px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
}

body.page-id-11113 .seccion-mxm h3 {
    color: #252525 !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 24px !important;
}

body.page-id-11113 .seccion-mxm p {
    color: #555555;
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* Adaptación móvil */
@media (max-width: 781px) {
    body.page-id-11113 .seccion-mxm {
        margin-top: 38px;
        margin-bottom: 38px;
    }

    body.page-id-11113 .seccion-mxm h2 {
        font-size: 34px !important;
    }

    body.page-id-11113 .seccion-mxm h3 {
        font-size: 26px !important;
    }

    body.page-id-11113 .seccion-mxm p {
        font-size: 16px;
        line-height: 1.65;
    }
}

/* MÚSICA X MEDICINAS — CABECERA EDITORIAL */

body.page-id-11113 .cabecera-mxm {
    padding: 52px 60px !important;
    box-sizing: border-box;
}

/* Eliminar separaciones excesivas */
body.page-id-11113 .cabecera-mxm > * + * {
    margin-top: 0 !important;
}

/* Categoría */
body.page-id-11113 .cabecera-mxm > p:first-child {
    color: #E9BD80 !important;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px !important;
}

/* Título principal */
body.page-id-11113 .cabecera-mxm h2 {
    color: #FFFFFF !important;
    font-size: 68px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin-bottom: 28px !important;
}

/* Subtítulo */
body.page-id-11113 .cabecera-mxm h3 {
    color: #F1D6AA !important;
    font-size: 27px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
}

/* Descripción */
body.page-id-11113 .cabecera-mxm p:not(:first-child) {
    color: #F3E9E9 !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
    max-width: 850px;
}

/* Versión móvil */
@media (max-width: 781px) {

    body.page-id-11113 .cabecera-mxm {
        padding: 32px 24px !important;
    }

    body.page-id-11113 .cabecera-mxm h2 {
        font-size: 40px !important;
        margin-bottom: 22px !important;
    }

    body.page-id-11113 .cabecera-mxm h3 {
        font-size: 21px !important;
    }

    body.page-id-11113 .cabecera-mxm p:not(:first-child) {
        font-size: 16px !important;
    }
}

/* MXM — Colores definitivos de cabecera */

body.page-id-11113 .cabecera-mxm p:first-of-type {
    color: #E9BD80 !important;
}

body.page-id-11113 .cabecera-mxm h3 {
    color: #F1D6AA !important;
}

/* EL EXILIO ACTIVISTA — CABECERA */

.cabecera-exilio {
    background-color: #781D32 !important;
    padding: 52px 60px !important;
    box-sizing: border-box;
}

/* Espaciado entre bloques */
.cabecera-exilio > * {
    margin-top: 0 !important;
}

/* Categoría */
.cabecera-exilio p:first-of-type {
    color: #E9BD80 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px !important;
}

/* Título */
.cabecera-exilio h2 {
    color: #FFFFFF !important;
    font-size: 68px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 28px !important;
}

/* Pregunta central */
.cabecera-exilio h3 {
    color: #FFFFFF !important;
    font-size: 27px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin-bottom: 20px !important;
}

/* Descripción */
.cabecera-exilio p:not(:first-of-type) {
    color: #F3E9E9 !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
    max-width: 850px;
}

/* Adaptación móvil */
@media (max-width: 781px) {

    .cabecera-exilio {
        padding: 32px 24px !important;
    }

    .cabecera-exilio h2 {
        font-size: 40px !important;
        margin-bottom: 22px !important;
    }

    .cabecera-exilio h3 {
        font-size: 21px !important;
    }

    .cabecera-exilio p:not(:first-of-type) {
        font-size: 16px !important;
    }
}

/* EXILIO ACTIVISTA — Ocultar título automático */

body.page .entry-title {
    /* No aplicar aquí: afectaría otras páginas */
}

/* EL EXILIO ACTIVISTA — Ocultar título automático */

body.page-id-11181 .entry-title {
    display: none !important;
}

/* EL EXILIO ACTIVISTA — SECCIONES EDITORIALES */

body.page-id-11181 .seccion-exilio {
    margin-top: 65px;
    margin-bottom: 65px;
}

body.page-id-11181 .seccion-exilio h2 {
    color: #781D32 !important;
    font-size: 52px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
}

body.page-id-11181 .seccion-exilio h3 {
    color: #252525 !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 24px !important;
}

body.page-id-11181 .seccion-exilio p {
    color: #555555;
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* Adaptación móvil */

@media (max-width: 781px) {

    body.page-id-11181 .seccion-exilio {
        margin-top: 38px;
        margin-bottom: 38px;
    }

    body.page-id-11181 .seccion-exilio h2 {
        font-size: 34px !important;
    }

    body.page-id-11181 .seccion-exilio h3 {
        font-size: 26px !important;
    }

    body.page-id-11181 .seccion-exilio p {
        font-size: 16px;
        line-height: 1.65;
    }
}

/* EL EXILIO ACTIVISTA — GALERÍA DE VIDEOS */

body.page-id-11181 .videos-exilio iframe {
    width: 100% !important;
    height: 360px !important;
    aspect-ratio: auto !important;
}

/* EL EXILIO ACTIVISTA — Separación del título y los videos */

body.page-id-11181 .entry-content h2:has(+ .videos-exilio) {
    margin-bottom: 0 !important;
}

/* EL EXILIO ACTIVISTA — DESCARGA DEL INFORME */

body.page-id-11181 .descarga-exilio {
    background: #F5F2EA;
    border-left: 4px solid #781D32;
    padding: 20px 25px;
    margin: 25px 0 35px !important;
}

body.page-id-11181 .descarga-exilio a {
    color: #781D32 !important;
    font-weight: 600;
    text-decoration: none;
}

body.page-id-11181 .descarga-exilio .wp-block-file__button {
    display: inline-block;
    background: #781D32 !important;
    color: #FFFFFF !important;
    border-radius: 3px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

body.page-id-11181 .descarga-exilio .wp-block-file__button:hover {
    background: #581426 !important;
}

/* EL EXILIO ACTIVISTA — FICHA DEL LIBRO */

body.page-id-11181 .ficha-libro-exilio {
    background-color: #EAE6DF;
    border-left: 4px solid #781D32;
    padding: 35px 40px !important;
    box-sizing: border-box;
}

body.page-id-11181 .ficha-libro-exilio h3 {
    color: #781D32 !important;
    font-size: 32px !important;
    line-height: 1.2 !important;
    margin-bottom: 22px !important;
}

body.page-id-11181 .ficha-libro-exilio p {
    color: #444444 !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    margin-bottom: 15px !important;
}

@media (max-width: 781px) {
    body.page-id-11181 .ficha-libro-exilio {
        padding: 25px 24px !important;
    }

    body.page-id-11181 .ficha-libro-exilio h3 {
        font-size: 27px !important;
    }

    body.page-id-11181 .ficha-libro-exilio p {
        font-size: 16px !important;
    }
}

/* EXILIO ACTIVISTA — VIDEO DEL LIBRO */

body.page-id-11181 .libro-video-exilio iframe {
    display: block;
    width: 100% !important;
    height: 820px !important;
    max-height: none !important;
}


/* ARCHIVO PERSONAL — BUSCADOR */

.archivo-personal {
    max-width: 1100px;
    margin: 35px auto 60px;
    font-family: inherit;
}

/* Formulario */

.archivo-personal #archivo-buscador {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 38px;
}

.archivo-personal input[type="search"],
.archivo-personal select {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #D5CEC7;
    border-radius: 4px;
    background: #F5F2EA;
    color: #292424;
    font-size: 15px;
    box-sizing: border-box;
}

.archivo-personal input[type="search"]:focus,
.archivo-personal select:focus {
    outline: 2px solid #781D32;
    outline-offset: 2px;
}

/* Filtros en tres columnas */

.archivo-personal .archivo-filtros {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 12px;
}

/* Botón */

.archivo-personal #archivo-buscador button {
    align-self: flex-start;
    min-width: 145px;
    padding: 12px 28px;
    border: 0;
    border-radius: 4px;
    background: #781D32;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.archivo-personal #archivo-buscador button:hover {
    background: #561324;
}

/* Resultados en tarjetas */

.archivo-personal .archivo-tarjetas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.archivo-personal .archivo-tarjeta {
    min-width: 0;
    padding: 18px;
    border: 1px solid #E2DCD4;
    border-radius: 4px;
    background: #F5F2EA;
}

.archivo-personal .archivo-tarjeta img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    margin: 0 auto 16px;
}

.archivo-personal .archivo-tarjeta h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.archivo-personal .archivo-tarjeta h3 a {
    color: #781D32;
    text-decoration: none;
}

.archivo-personal .archivo-tarjeta h3 a:hover {
    text-decoration: underline;
}

.archivo-personal .archivo-tarjeta p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
}

.archivo-personal .archivo-anio {
    color: #781D32;
    font-weight: 600;
}

/* Adaptación a móviles */

@media (max-width: 780px) {
    .archivo-personal .archivo-filtros {
        grid-template-columns: 1fr;
    }

    .archivo-personal .archivo-tarjetas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .archivo-personal .archivo-tarjetas {
        grid-template-columns: 1fr;
    }

    .archivo-personal #archivo-buscador button {
        width: 100%;
    }
}


/* ARCHIVO — ENCABEZADO DE RESULTADOS */

.archivo-personal .archivo-titulo-resultados {
    margin: 8px 0 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid #781D32;
    color: #781D32;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.archivo-personal .archivo-contador {
    margin: 0 0 22px;
    color: #77716C;
    font-size: 14px;
    text-align: left;
}

/* ARCHIVO — DETALLE DE LAS TARJETAS */

.archivo-personal .archivo-tarjeta {
    border-top: 3px solid #781D32;
}



/* ARCHIVO — Enlace al documento */

.archivo-enlace-documento {
    margin: 28px 0 36px;
}

.archivo-enlace-documento a {
    display: inline-block;
    padding: 13px 24px;
    background: #781D32;
    color: #F5F2EA !important;
    border: 1px solid #781D32;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.archivo-enlace-documento a:hover {
    background: transparent;
    color: #781D32 !important;
}


/* ARCHIVO — Ocultar navegación entre documentos */

body.single-documento .post-navigation,
body.single-documento .navigation.post-navigation {
    display: none !important;
}


/* ARCHIVO — Enlace de regreso */

.single-documento .archivo-volver {
    margin: 30px 0 40px;
}

.single-documento .archivo-volver a {
    color: #781D32 !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
}

.single-documento .archivo-volver a:hover {
    text-decoration: underline !important;
}



/* ARCHIVO — Botón Ver más documentos */

#archivo-ver-mas {
    background: #781D32 !important;
    color: #F5F2EA !important;
    border: 1px solid #781D32 !important;
    border-radius: 4px;
    padding: 13px 26px;
    font-size: 16px;
    font-style: normal !important;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#archivo-ver-mas:hover {
    background: transparent !important;
    color: #781D32 !important;
}


/* Párrafo visible únicamente en computadora */

@media (max-width: 900px) {
    .solo-escritorio {
        display: none !important;
    }
}


/* HOME — Ajustar portada del libro en escritorio */

@media (min-width: 901px) {
    .home-portada-libro {
        width: 80% !important;
        max-width: 520px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    .home-portada-libro img {
        width: 100% !important;
        height: auto !important;
    }
}
/* HOME — Ajustar espacio debajo de los libros */
.home .libros-fila {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Acercar el enlace a las portadas de los libros */
.libros-enlace {
    margin-top: -45px !important;
    position: relative;
}

/* LIBROS — Dos columnas alineadas en móvil */
@media (max-width: 767px) {

    .libros-fila {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .libros-fila > .wp-block-column {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .libros-fila .wp-block-columns {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .libros-fila img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .libros-enlace {
        margin-top: 0 !important;
    }
}

/* LIBROS: cuadrícula de dos filas en móvil */
@media (max-width: 767px) {

  .libros-fila {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto !important;
    gap: 24px 16px !important;
  }

  .libros-fila > .wp-block-column {
    display: contents !important;
  }

  .libros-fila > .wp-block-column > .wp-block-columns {
    display: contents !important;
  }

  .libros-fila .wp-block-column {
    min-width: 0 !important;
  }
}


/* HOME — Cuatro libros en escritorio, dos en móvil */
@media (max-width: 781px) {
    .page-id-10095 .libros-cuatro {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 18px !important;
        align-items: start !important;
    }

    .page-id-10095 .libros-cuatro > .wp-block-column {
        width: auto !important;
        min-width: 0 !important;
        flex: none !important;
        margin: 0 !important;
    }

    .page-id-10095 .libros-cuatro img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Alinear las portadas de los libros */
.page-id-10095 .libros-cuatro .wp-block-image {
    margin-top: 0 !important;
}


/* LIBROS — Distribución y alineación uniforme */

.page-id-10095 .libros-cuatro {
    align-items: start !important;
}

.page-id-10095 .libros-cuatro > .wp-block-column {
    align-self: start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-id-10095 .libros-cuatro > .wp-block-column > .wp-block-image {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

@media (max-width: 781px) {
    .page-id-10095 .libros-cuatro {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 18px !important;
        align-items: start !important;
    }

    .page-id-10095 .libros-cuatro > .wp-block-column {
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .page-id-10095 .libros-cuatro .wp-block-image img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
    }
}


/* LIBROS — Una columna en móvil */
@media (max-width: 781px) {
    .page-id-10095 .libros-cuatro {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .page-id-10095 .libros-cuatro > .wp-block-column {
        width: 100% !important;
        margin: 0 !important;
    }
}


/* LIBROS — Centrar cada libro en móvil */
@media (max-width: 781px) {
    .page-id-10095 .libros-cuatro > .wp-block-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .page-id-10095 .libros-cuatro .wp-block-image {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* LIBROS — Acercar el año al título en móvil */
@media (max-width: 781px) {
    .page-id-10095 .libros-cuatro .libro-titulo {
        margin-bottom: 0 !important;
    }

    .page-id-10095 .libros-cuatro .libro-titulo + p {
        margin-top: 6px !important;
    }
}


/* LIBROS — Acercar enlace final en móvil */
@media (max-width: 781px) {
    .page-id-10095 .libros-cuatro {
        margin-bottom: 0 !important;
    }

    .page-id-10095 .libros-enlace {
        margin-top: 15px !important;
    }
}

/* LIBROS — Reducir espacio antes del enlace */
@media (max-width: 781px) {
    .page-id-10095 .libros-cuatro {
        margin-bottom: -35px !important;
    }

    .page-id-10095 .libros-enlace {
        margin-top: 0 !important;
    }
}


/* PORTADA — Formulario de suscripción */

.page-id-10095 .formulario-suscripcion {
    margin-top: 20px;
    margin-bottom: 40px;
}

.page-id-10095 .formulario-suscripcion input[type="email"] {
    background: #fffdf8 !important;
    border: 1px solid #c9bdb5 !important;
    border-radius: 3px !important;
    color: #5e0722 !important;
    padding: 15px 18px !important;
    font-size: 16px !important;
}

.page-id-10095 .formulario-suscripcion button,
.page-id-10095 .formulario-suscripcion input[type="submit"] {
    background: #781d32 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 3px !important;
    padding: 15px 25px !important;
    font-size: 16px !important;
    cursor: pointer;
}

.page-id-10095 .formulario-suscripcion button:hover,
.page-id-10095 .formulario-suscripcion input[type="submit"]:hover {
    background: #5e0722 !important;
}


/* Reducir separación antes del footer en las entradas */

.single-post .footer-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-post .site-footer {
    margin-top: 0 !important;
    padding-top: 30px !important;
}


/* FOOTER — Colores de la identidad visual */

.site-footer .footer-widgets h5,
.site-footer .footer-widgets a {
    color: #781D32 !important;
}

.site-footer .footer-widgets p {
    color: #66605D !important;
}

.site-footer .footer-widgets a:hover {
    color: #A33A2B !important;
}

/* Reducir separación antes del footer en las entradas */
.single-post #content {
    margin-bottom: 0 !important;
}

/* Acercar el formulario de comentarios al artículo */
.single-post #comments {
    margin-top: 20px !important;
    padding-top: 0 !important;
}

/* Acercar los comentarios al final del artículo */
.single-post .site-main hr {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.single-post #respond {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reducir espacio después del artículo */
.single-post .post-navigation {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.single-post .site-main > article {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Eliminar margen inferior del footer */
footer#colophon.site-footer {
    margin-bottom: 0 !important;
    padding-bottom: 24px !important;
}