/*
Theme Name: Soledad Child
Theme URI: https://pencidesign.net/
Description: Child theme de Soledad para Latin LA
Author: EPCON CCS
Template: soledad
Version: 1.1.0
*/

/*
 * Los estilos de componentes viven en assets/css/.
 * Este archivo se reserva para la cabecera del child theme y reglas globales.
 */

/* =========================================================
   LATIN LA — PALETA OFICIAL
   ========================================================= */

:root {
    --lla-yellow: #FFD34E;
    --lla-black: #151515;
    --lla-ivory: #FFF9F1;
    --lla-pink: #FF4D6D;
    --lla-orange: #FF8A3D;
    --lla-turquoise: #20CFE8;
    --lla-blue: #4D96FF;
    --lla-mint: #73E2A7;

    /* Raven Hell siempre Gothic; Avant para subtítulos, interfaz y lectura. */
    --lla-font-news: "ravenhell-boldgothic", sans-serif;
    --lla-font-subtitle: "itc-avant-garde-gothic-pro", "avant-bold", sans-serif;
    --lla-font-body: "avant-book", "itc-avant-garde-gothic-pro", sans-serif;
    --lla-font-ui: "avant-demi", "itc-avant-garde-gothic-pro", sans-serif;
    --lla-font-raven-gothic-bold: "ravenhell-boldgothic", sans-serif;
    --lla-font-raven-gothic-medium: "ravenhell-mediumgoth", sans-serif;
    --lla-font-raven-gothic-regular: "ravenhell-regulargot", sans-serif;
}

/* Base tipográfica del child theme; Use Any Font solo aloja los archivos. */
body,
body p {
    font-family: var(--lla-font-body) !important;
}

body h1,
body h2,
body h3,
body.single-post .entry-title,
body.page .entry-title {
    font-family: var(--lla-font-news) !important;
    font-weight: 400 !important;
}

body h4,
body h5 {
    font-family: var(--lla-font-raven-gothic-medium) !important;
    font-weight: 400 !important;
}

body h6 {
    font-family: var(--lla-font-raven-gothic-regular) !important;
    font-weight: 400 !important;
}

body .widget-title {
    font-family: var(--lla-font-ui) !important;
}

/* Titulares de entradas: uniformidad visual sin modificar el texto en WordPress. */
.lla-home-hero h3,
.lla-home-hero h3 a,
.lla-home-ticker .penci-topbar-post-title,
.lla-home-stories h2,
.lla-home-stories h2 a,
.lla-category-archive .lla-archive-card__title,
.lla-category-archive .lla-archive-card__title a,
body.single-post .single-post-title,
body.single-post .post-related .related-content h3,
body.single-post .post-related .related-content h3 a,
body.single-post .post-pagination h5,
#widget-area .side-newsfeed .side-title-post,
#widget-area .side-newsfeed .side-title-post a,
body.search .entry-title,
body.search .entry-title a,
body.search .penci-entry-title,
body.search .penci-entry-title a {
    text-transform: uppercase !important;
}

/*
 * El amarillo y el negro sostienen la identidad general.
 * Los colores secundarios identifican categorías en badges y acentos breves.
 */
.penci-cat-name,
.lla-home-hero .cat a,
.lla-home-stories .cat a {
    --lla-category-accent: var(--lla-yellow);
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem !important;
    border: 0 !important;
    border-radius: 999px;
    background: var(--lla-category-accent) !important;
    color: var(--lla-black) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: filter 180ms ease, box-shadow 180ms ease;
}

.penci-cat-name:hover,
.penci-cat-name:focus-visible,
.lla-home-hero .cat a:hover,
.lla-home-hero .cat a:focus-visible,
.lla-home-stories .cat a:hover,
.lla-home-stories .cat a:focus-visible {
    color: var(--lla-black) !important;
    filter: saturate(1.08) brightness(0.96);
    box-shadow: inset 0 -2px 0 rgba(21, 21, 21, 0.22) !important;
}

/* Acentos por las categorías reales de Latin LA. */
.penci-cat-name[href*="chismecito-de-downstairs"],
.lla-home-hero .cat a[href*="chismecito-de-downstairs"],
.lla-home-stories .cat a[href*="chismecito-de-downstairs"] {
    --lla-category-accent: var(--lla-black);
    color: var(--lla-ivory) !important;
}

.penci-cat-name[href*="whats-happening"],
.lla-home-hero .cat a[href*="whats-happening"],
.lla-home-stories .cat a[href*="whats-happening"] {
    --lla-category-accent: var(--lla-pink);
}

.penci-cat-name[href*="desde-la-esquina"],
.lla-home-hero .cat a[href*="desde-la-esquina"],
.lla-home-stories .cat a[href*="desde-la-esquina"] {
    --lla-category-accent: var(--lla-orange);
}

.penci-cat-name[href*="rayito-de-sol"],
.lla-home-hero .cat a[href*="rayito-de-sol"],
.lla-home-stories .cat a[href*="rayito-de-sol"] {
    --lla-category-accent: var(--lla-turquoise);
}

.penci-cat-name[href*="en-el-barrio"],
.lla-home-hero .cat a[href*="en-el-barrio"],
.lla-home-stories .cat a[href*="en-el-barrio"] {
    --lla-category-accent: var(--lla-blue);
}

.penci-cat-name[href*="take-care-ish"],
.lla-home-hero .cat a[href*="take-care-ish"],
.lla-home-stories .cat a[href*="take-care-ish"] {
    --lla-category-accent: var(--lla-mint);
}

.penci-cat-name[href*="musica-para-quedarse"],
.lla-home-hero .cat a[href*="musica-para-quedarse"],
.lla-home-stories .cat a[href*="musica-para-quedarse"] {
    --lla-category-accent: var(--lla-pink);
}

.penci-cat-name[href*="deportes-varios-depelotas"],
.penci-cat-name[href*="de-pelotas"],
.lla-home-hero .cat a[href*="deportes-varios-depelotas"],
.lla-home-hero .cat a[href*="de-pelotas"],
.lla-home-stories .cat a[href*="deportes-varios-depelotas"],
.lla-home-stories .cat a[href*="de-pelotas"] {
    --lla-category-accent: var(--lla-blue);
}

/* La guía evita texto negro sobre rosa o naranja; el color vive en el contorno. */
.penci-cat-name[href*="whats-happening"],
.penci-cat-name[href*="desde-la-esquina"],
.penci-cat-name[href*="musica-para-quedarse"],
.lla-home-hero .cat a[href*="whats-happening"],
.lla-home-hero .cat a[href*="desde-la-esquina"],
.lla-home-hero .cat a[href*="musica-para-quedarse"],
.lla-home-stories .cat a[href*="whats-happening"],
.lla-home-stories .cat a[href*="desde-la-esquina"],
.lla-home-stories .cat a[href*="musica-para-quedarse"] {
    border: 2px solid var(--lla-category-accent) !important;
    background: var(--lla-ivory) !important;
    color: var(--lla-black) !important;
}

.penci-cat-name[href*="chismecito-de-downstairs"]:is(:hover, :focus-visible),
.lla-home-hero .cat a[href*="chismecito-de-downstairs"]:is(:hover, :focus-visible),
.lla-home-stories .cat a[href*="chismecito-de-downstairs"]:is(:hover, :focus-visible) {
    color: var(--lla-ivory) !important;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.45) !important;
}

/* Los resultados de búsqueda también son titulares editoriales dinámicos. */
body.search .entry-title,
body.search .entry-title a,
body.search .penci-entry-title,
body.search .penci-entry-title a {
    font-family: var(--lla-font-news) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

/* AddToAny solo acompaña la lectura de entradas individuales. */
body:not(.single-post) .a2a_floating_style,
body:not(.single-post) .addtoany_content {
    display: none !important;
}
