
/*
 * JLC Portada v1.3
 * Refinamientos reversibles para páginas interiores Astra + Spectra Legacy.
 * No modifica el contenido guardado en WordPress.
 */

:root {
    --jlc-ivory: #f2eee6;
    --jlc-brown: #51483e;
    --jlc-charcoal: #20201e;
    --jlc-silver: #aaa9a3;
    --jlc-line: rgba(81,72,62,.22);
}

/* =========================================================
   MENÚS Y SUBMENÚS ASTRA — MISMA FAMILIA VISUAL QUE PORTADA
   ========================================================= */

body.jlc-refine-menus .ast-primary-header-bar,
body.jlc-refine-menus .site-primary-header-wrap,
body.jlc-refine-menus .ast-mobile-header-wrap .ast-primary-header-bar,
body.jlc-refine-menus header.site-header {
    background: var(--jlc-ivory) !important;
}

body.jlc-refine-menus .ast-primary-header-bar {
    border-bottom: 1px solid var(--jlc-line) !important;
}

body.jlc-refine-menus .main-header-menu > .menu-item > .menu-link,
body.jlc-refine-menus .ast-header-navigation .menu-link,
body.jlc-refine-menus .ast-builder-menu .menu-link {
    color: var(--jlc-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.jlc-refine-menus .main-header-menu > .menu-item > .menu-link:hover,
body.jlc-refine-menus .main-header-menu > .current-menu-item > .menu-link,
body.jlc-refine-menus .ast-header-navigation .menu-link:hover {
    color: var(--jlc-brown) !important;
    opacity: .65;
}

body.jlc-refine-menus .main-header-menu .sub-menu,
body.jlc-refine-menus .ast-header-navigation .sub-menu,
body.jlc-refine-menus .ast-builder-menu .sub-menu {
    background: rgba(242,238,230,.985) !important;
    border: 1px solid rgba(170,169,163,.58) !important;
    box-shadow: 0 14px 34px rgba(32,32,30,.08) !important;
    padding: 10px 20px !important;
    min-width: 190px;
}

body.jlc-refine-menus .main-header-menu .sub-menu .menu-link,
body.jlc-refine-menus .ast-header-navigation .sub-menu .menu-link,
body.jlc-refine-menus .ast-builder-menu .sub-menu .menu-link {
    background: transparent !important;
    color: var(--jlc-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 12px 4px !important;
}

body.jlc-refine-menus .main-header-menu .sub-menu li + li,
body.jlc-refine-menus .ast-header-navigation .sub-menu li + li {
    border-top: 1px solid rgba(170,169,163,.42);
}

body.jlc-refine-menus .main-header-menu .sub-menu .menu-link:hover,
body.jlc-refine-menus .ast-header-navigation .sub-menu .menu-link:hover {
    background: transparent !important;
    opacity: .62;
}

/* Iconos/flechas de desplegable, en plata mate */
body.jlc-refine-menus .ast-menu-toggle,
body.jlc-refine-menus .dropdown-menu-toggle,
body.jlc-refine-menus .ast-icon.icon-arrow {
    color: var(--jlc-silver) !important;
}

/* Menú móvil */
@media (max-width: 921px) {
    body.jlc-refine-menus .ast-mobile-header-content,
    body.jlc-refine-menus .ast-mobile-popup-drawer .ast-mobile-popup-inner {
        background: var(--jlc-ivory) !important;
    }

    body.jlc-refine-menus .ast-builder-menu-mobile .main-navigation .menu-item > .menu-link,
    body.jlc-refine-menus .ast-builder-menu-mobile .main-navigation .menu-item > .ast-menu-toggle {
        color: var(--jlc-brown) !important;
        text-transform: none !important;
    }
}

/* =========================================================
   TEXTO EXPLICATIVO — QUITAR MAYÚSCULAS FORZADAS POR ESTILO
   ========================================================= */

/*
 * Esto NO cambia las palabras guardadas en la base de datos.
 * Solo anula text-transform: uppercase de Astra, Spectra o CSS anterior.
 */
body.jlc-normal-text .entry-content p,
body.jlc-normal-text .entry-content li,
body.jlc-normal-text .wp-block-post-content p,
body.jlc-normal-text .wp-block-post-content li,
body.jlc-normal-text .uagb-container-inner-blocks-wrap p,
body.jlc-normal-text .uagb-ifb-desc,
body.jlc-normal-text .uagb-desc-text,
body.jlc-normal-text .spectra-container p {
    text-transform: none !important;
    letter-spacing: normal;
}

/* Los títulos de proyectos también dejan de ser MAYÚSCULAS forzadas,
   pero conservan el texto que realmente esté escrito en WordPress. */
body.jlc-normal-text .entry-content h1,
body.jlc-normal-text .entry-content h2,
body.jlc-normal-text .entry-content h3,
body.jlc-normal-text .wp-block-post-content h1,
body.jlc-normal-text .wp-block-post-content h2,
body.jlc-normal-text .wp-block-post-content h3 {
    text-transform: none !important;
}


/* =========================================================
   V1.6 — CABECERA INTERIOR MÍNIMA EN TODAS LAS PÁGINAS
   ========================================================= */

/* La portada conserva su diseño propio. En el resto del sitio,
   se elimina la repetición de nombre/logotipo para dejar solo navegación. */
body.jlc-interior-page header.site-header .site-branding,
body.jlc-interior-page header.site-header .ast-site-identity,
body.jlc-interior-page header.site-header .site-logo-img,
body.jlc-interior-page header.site-header .custom-logo-link,
body.jlc-interior-page header.site-header .site-title,
body.jlc-interior-page header.site-header .site-description,
body.jlc-interior-page .ast-primary-header-bar .site-branding,
body.jlc-interior-page .ast-primary-header-bar .ast-site-identity,
body.jlc-interior-page .ast-primary-header-bar .site-logo-img {
    display: none !important;
}

body.jlc-interior-page header.site-header,
body.jlc-interior-page .ast-primary-header-bar,
body.jlc-interior-page .site-primary-header-wrap {
    background-image: none !important;
    background-color: var(--jlc-ivory) !important;
}

body.jlc-interior-page .ast-primary-header-bar {
    min-height: 76px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 1px solid var(--jlc-line) !important;
}

body.jlc-interior-page .ast-builder-grid-row {
    grid-template-columns: 1fr !important;
}

body.jlc-interior-page .site-header-primary-section-left,
body.jlc-interior-page .site-header-primary-section-center,
body.jlc-interior-page .site-header-primary-section-right {
    min-height: 76px !important;
}

body.jlc-interior-page .site-header-primary-section-right,
body.jlc-interior-page .ast-builder-menu-1,
body.jlc-interior-page .ast-main-header-bar-alignment {
    width: 100%;
}

body.jlc-interior-page .site-header-primary-section-right {
    justify-content: flex-end !important;
}

body.jlc-interior-page .main-header-menu > .menu-item > .menu-link,
body.jlc-interior-page .ast-header-navigation .menu-link,
body.jlc-interior-page .ast-builder-menu .menu-link {
    font-size: 15px !important;
}

/* =========================================================
   V1.6 — PIE DE PÁGINA / COPYRIGHT / ENLACES LEGALES
   ========================================================= */

body.jlc-interior-page footer.site-footer,
body.jlc-interior-page .site-footer,
body.jlc-interior-page .ast-footer-overlay,
body.jlc-interior-page .site-primary-footer-wrap,
body.jlc-interior-page .site-below-footer-wrap {
    background: var(--jlc-ivory) !important;
    color: var(--jlc-brown) !important;
}

body.jlc-interior-page footer.site-footer,
body.jlc-interior-page .site-footer {
    border-top: 1px solid var(--jlc-line);
}

/* Texto del copyright y enlaces legales con la misma familia visual del sitio. */
body.jlc-interior-page .site-footer,
body.jlc-interior-page .site-footer p,
body.jlc-interior-page .site-footer span,
body.jlc-interior-page .site-footer a,
body.jlc-interior-page .ast-footer-copyright,
body.jlc-interior-page .ast-footer-copyright p,
body.jlc-interior-page .ast-footer-copyright a,
body.jlc-interior-page .footer-widget-area,
body.jlc-interior-page .footer-widget-area a,
body.jlc-interior-page .footer-nav-wrap a,
body.jlc-interior-page .site-footer-section a {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--jlc-brown) !important;
}

body.jlc-interior-page .site-footer a:hover,
body.jlc-interior-page .ast-footer-copyright a:hover,
body.jlc-interior-page .footer-nav-wrap a:hover {
    color: var(--jlc-brown) !important;
    opacity: .62;
}

body.jlc-interior-page .site-below-footer-wrap,
body.jlc-interior-page .site-primary-footer-wrap {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

/* Si Astra separa el pie en columnas, reducir ruido visual. */
body.jlc-interior-page .site-footer .ast-builder-grid-row {
    align-items: center;
}

/* Páginas legales: también evitar mayúsculas forzadas en títulos y contenido. */
body.jlc-interior-page .entry-content,
body.jlc-interior-page .entry-content p,
body.jlc-interior-page .entry-content li,
body.jlc-interior-page .entry-title,
body.jlc-interior-page h1,
body.jlc-interior-page h2,
body.jlc-interior-page h3 {
    text-transform: none !important;
}

/* Mantener siglas y palabras tal como estén escritas; no se fuerza lowercase. */

@media (max-width: 921px) {
    body.jlc-interior-page .ast-primary-header-bar {
        min-height: 66px !important;
    }

    body.jlc-interior-page .site-header-primary-section-right {
        min-height: 66px !important;
    }

    body.jlc-interior-page .site-footer,
    body.jlc-interior-page .site-footer p,
    body.jlc-interior-page .site-footer span,
    body.jlc-interior-page .site-footer a {
        font-size: 12px !important;
    }
}
