
/*
 * JLC Portada v1.10 — Referencias
 * Tratamiento editorial tipo catálogo/bibliografía.
 * No modifica contenidos almacenados.
 */

body.jlc-referencias-page {
    --jlc-ref-ivory: #f2eee6;
    --jlc-ref-brown: #51483e;
    --jlc-ref-charcoal: #262522;
    --jlc-ref-silver: #aaa9a3;
    --jlc-ref-muted: #746f67;
    --jlc-ref-line: rgba(81,72,62,.20);
    background: var(--jlc-ref-ivory) !important;
    color: var(--jlc-ref-charcoal);
}

body.jlc-referencias-page #page,
body.jlc-referencias-page .site-content,
body.jlc-referencias-page .site-main,
body.jlc-referencias-page .content-area,
body.jlc-referencias-page .ast-container {
    background: var(--jlc-ref-ivory) !important;
}

body.jlc-referencias-page .site-content > .ast-container,
body.jlc-referencias-page .ast-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

body.jlc-referencias-page .site-content {
    padding-top: clamp(48px, 7vw, 92px);
    padding-bottom: clamp(86px, 10vw, 150px);
}

/* Título principal */
body.jlc-referencias-page .entry-header,
body.jlc-referencias-page header.entry-header {
    max-width: 780px;
    margin: 0 auto clamp(36px, 5vw, 62px);
    padding: 0 clamp(22px, 4vw, 56px);
}

body.jlc-referencias-page .entry-title,
body.jlc-referencias-page h1.entry-title,
body.jlc-referencias-page .wp-block-post-title,
body.jlc-referencias-page .entry-content > h1:first-child {
    color: var(--jlc-ref-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(38px, 4vw, 56px) !important;
    font-weight: 400 !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em !important;
    text-transform: none !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
}

body.jlc-referencias-page .entry-header::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 24px;
    background: var(--jlc-ref-silver);
}

/* Texto normal */
body.jlc-referencias-page .entry-content > p,
body.jlc-referencias-page .wp-block-post-content > p,
body.jlc-referencias-page .uagb-container-inner-blocks-wrap > p {
    max-width: 780px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(22px, 4vw, 56px);
    padding-right: clamp(22px, 4vw, 56px);
    color: var(--jlc-ref-charcoal) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(16px, 1.2vw, 18px) !important;
    line-height: 1.78 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Encabezados internos: casi bibliográficos */
body.jlc-referencias-page .entry-content h2,
body.jlc-referencias-page .entry-content h3,
body.jlc-referencias-page .wp-block-post-content h2,
body.jlc-referencias-page .wp-block-post-content h3 {
    max-width: 820px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(22px, 4vw, 56px);
    padding-right: clamp(22px, 4vw, 56px);
    color: var(--jlc-ref-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: -.01em !important;
}

body.jlc-referencias-page .entry-content h2,
body.jlc-referencias-page .wp-block-post-content h2 {
    margin-top: clamp(54px, 7vw, 92px) !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jlc-ref-line);
    font-size: clamp(23px, 2.2vw, 30px) !important;
    line-height: 1.25 !important;
}

body.jlc-referencias-page .entry-content h3,
body.jlc-referencias-page .wp-block-post-content h3 {
    margin-top: 34px !important;
    margin-bottom: 14px !important;
    font-size: clamp(18px, 1.7vw, 23px) !important;
    line-height: 1.3 !important;
}

/* Citas: protagonistas pero sin cajas pesadas */
body.jlc-referencias-page blockquote,
body.jlc-referencias-page .wp-block-quote {
    max-width: 820px;
    margin: clamp(48px, 7vw, 94px) auto !important;
    padding: 24px 30px !important;
    border-left: 1px solid var(--jlc-ref-silver) !important;
    background: transparent !important;
    color: var(--jlc-ref-brown) !important;
}

body.jlc-referencias-page blockquote p,
body.jlc-referencias-page .wp-block-quote p {
    padding: 0 !important;
    margin: 0 !important;
    color: var(--jlc-ref-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(17px, 1.32vw, 19px) !important;
    line-height: 1.68 !important;
    font-style: normal !important;
}

body.jlc-referencias-page blockquote cite,
body.jlc-referencias-page .wp-block-quote cite {
    display: block;
    margin-top: 16px;
    color: var(--jlc-ref-muted) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    letter-spacing: .02em !important;
    font-style: normal !important;
    text-transform: none !important;
}

/* Listas bibliográficas/referencias */
body.jlc-referencias-page .entry-content ul,
body.jlc-referencias-page .entry-content ol,
body.jlc-referencias-page .wp-block-post-content ul,
body.jlc-referencias-page .wp-block-post-content ol {
    max-width: 820px;
    margin: 24px auto 42px !important;
    padding-left: clamp(42px, 5vw, 72px) !important;
    padding-right: clamp(22px, 4vw, 56px);
    color: var(--jlc-ref-charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.72;
    text-transform: none !important;
}

body.jlc-referencias-page .entry-content li,
body.jlc-referencias-page .wp-block-post-content li {
    padding-top: 10px;
    padding-bottom: 10px;
}

body.jlc-referencias-page .entry-content li + li,
body.jlc-referencias-page .wp-block-post-content li + li {
    border-top: 1px solid rgba(81,72,62,.10);
}

/* Separadores */
body.jlc-referencias-page .wp-block-separator,
body.jlc-referencias-page hr {
    max-width: 820px;
    margin: clamp(46px, 6vw, 82px) auto !important;
    border: 0 !important;
    border-top: 1px solid var(--jlc-ref-line) !important;
}

/* Enlaces como referencias, no como botones */
body.jlc-referencias-page .entry-content a:not(.wp-block-button__link) {
    color: var(--jlc-ref-brown) !important;
    text-decoration: underline;
    text-decoration-color: var(--jlc-ref-silver);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

body.jlc-referencias-page .wp-block-button__link {
    border: 0 !important;
    border-bottom: 1px solid var(--jlc-ref-silver) !important;
    border-radius: 0 !important;
    padding: 5px 0 !important;
    background: transparent !important;
    color: var(--jlc-ref-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 16.5px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

/* Imágenes pequeñas/documentales si existen */
body.jlc-referencias-page .entry-content figure.wp-block-image,
body.jlc-referencias-page .entry-content .wp-block-image,
body.jlc-referencias-page .entry-content .uagb-image {
    max-width: 760px;
    margin: clamp(42px, 6vw, 80px) auto !important;
}

body.jlc-referencias-page .entry-content img,
body.jlc-referencias-page .wp-block-post-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border: 0 !important;
    box-shadow: none !important;
}

body.jlc-referencias-page figcaption,
body.jlc-referencias-page .wp-element-caption {
    margin-top: 10px !important;
    color: var(--jlc-ref-muted) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    text-align: left;
}

@media (max-width: 767px) {
    body.jlc-referencias-page .site-content {
        padding-top: 36px;
        padding-bottom: 76px;
    }

    body.jlc-referencias-page .entry-header,
    body.jlc-referencias-page header.entry-header {
        padding-left: 22px;
        padding-right: 22px;
        margin-bottom: 30px;
    }

    body.jlc-referencias-page .entry-title,
    body.jlc-referencias-page h1.entry-title,
    body.jlc-referencias-page .entry-content > h1:first-child {
        font-size: 36px !important;
    }

    body.jlc-referencias-page .entry-content > p,
    body.jlc-referencias-page .wp-block-post-content > p,
    body.jlc-referencias-page .entry-content h2,
    body.jlc-referencias-page .entry-content h3 {
        padding-left: 22px;
        padding-right: 22px;
    }

    body.jlc-referencias-page .entry-content > p,
    body.jlc-referencias-page .wp-block-post-content > p {
        font-size: 16px !important;
        line-height: 1.72 !important;
    }

    body.jlc-referencias-page blockquote,
    body.jlc-referencias-page .wp-block-quote {
        width: calc(100% - 44px);
        margin-top: 42px !important;
        margin-bottom: 42px !important;
        padding: 18px 22px !important;
    }

    body.jlc-referencias-page blockquote p,
    body.jlc-referencias-page .wp-block-quote p {
        font-size: 17px !important;
        line-height: 1.68 !important;
    }

    body.jlc-referencias-page .entry-content ul,
    body.jlc-referencias-page .entry-content ol,
    body.jlc-referencias-page .wp-block-post-content ul,
    body.jlc-referencias-page .wp-block-post-content ol {
        padding-left: 44px !important;
        padding-right: 22px !important;
    }

    body.jlc-referencias-page .entry-content figure.wp-block-image,
    body.jlc-referencias-page .entry-content .wp-block-image,
    body.jlc-referencias-page .entry-content .uagb-image {
        width: calc(100% - 44px);
    }
}
