/**
 * Latin LA — Homepage v1.0
 *
 * Scope:
 * - .lla-home-hero
 * - .lla-home-ticker
 * - .lla-home-stories
 * - Carrusel editorial «Lo más leído» (widgets Elementor 8450d68 y f8f9191)
 */

.lla-home-hero,
.lla-home-ticker,
.lla-home-stories {
    --lla-yellow: #FFD34E;
    --lla-black: #151515;
    --lla-gray: #5f5f5f;
    --lla-display: var(--lla-font-raven-gothic-bold);
    --lla-body: var(--lla-font-body);
    --lla-headline: var(--lla-font-news);
}


/* =========================================================
   HERO — PENCI BIG GRID
   ========================================================= */

.lla-home-hero {
    margin-top: 18px;
    overflow: hidden;
}

.lla-home-hero h3,
.lla-home-hero h3 a {
    color: #ffffff !important;
    font-family: var(--lla-headline) !important;
    font-weight: 400 !important;
    line-height: 1.16 !important;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.lla-home-hero a,
.lla-home-hero a:hover,
.lla-home-hero a:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Contraste constante detrás de los titulares, incluso con fotos claras. */
.lla-home-hero .pcbg-content .pcbg-bgoverlay.active-overlay {
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.18) 38%,
        rgba(0, 0, 0, 0.7) 68%,
        rgba(0, 0, 0, 0.88) 100%
    ) !important;
}

.lla-home-hero img {
    transition: transform 0.4s ease;
}

@media (hover: hover) {
    .lla-home-hero a:hover img {
        transform: scale(1.025);
    }
}


/* =========================================================
   TICKER — LO ÚLTIMO
   ========================================================= */

.lla-home-ticker {
    width: min(100% - 40px, 1240px);
    margin: 34px auto 0;
    padding-bottom: 86px;
    font-family: var(--lla-body);
}

.lla-home-ticker .penci-enews-ticker {
    position: relative;
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr);
    min-height: 56px;
    align-items: center;
    overflow: hidden;
    background: var(--lla-black) !important;
    border: 0 !important;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(21, 21, 21, 0.14) !important;
}

.lla-home-ticker .headline-title {
    display: flex !important;
    align-items: center;
    float: none !important;
    height: 56px !important;
    padding-right: 26px !important;
    padding-left: 26px !important;
    background: var(--lla-yellow) !important;
    color: var(--lla-black) !important;
    font-family: var(--lla-display) !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 56px !important;
    letter-spacing: 0.025em;
}

.lla-home-ticker .headline-title::before {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.6rem;
    border: 2px solid rgba(21, 21, 21, 0.18);
    border-radius: 50%;
    background: #ff4d6d;
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.45);
    content: "";
    animation: lla-ticker-pulse 2.4s ease-out infinite;
}

@keyframes lla-ticker-pulse {
    0%, 45% {
        box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.45);
    }

    75%, 100% {
        box-shadow: 0 0 0 0.48rem rgba(255, 77, 109, 0);
    }
}

.lla-home-ticker .penci-trending-nav {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    float: none !important;
    min-width: 0;
    height: 56px;
    margin: 0 !important;
    padding: 0 12px !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

.lla-home-ticker .penci-trending-nav a {
    box-sizing: border-box;
    display: inline-flex !important;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.lla-home-ticker .penci-trending-nav a i {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.lla-home-ticker .penci-trending-nav a:hover,
.lla-home-ticker .penci-trending-nav a:focus-visible {
    border-color: var(--lla-yellow);
    background: var(--lla-yellow) !important;
    color: var(--lla-black) !important;
}

.lla-home-ticker .penci-trending-nav a:hover i,
.lla-home-ticker .penci-trending-nav a:focus-visible i {
    color: var(--lla-black) !important;
}

.lla-home-ticker .penci-headline-posts.swiper {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    max-height: 56px !important;
}

.lla-home-ticker .penci-headline-posts .swiper-slide,
.lla-home-ticker .penci-enews-ticker .penci-owl-carousel .owl-item {
    background: var(--lla-black) !important;
}

.lla-home-ticker .penci-topbar-post-title {
    color: #ffffff !important;
    font-family: var(--lla-font-subtitle) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 56px !important;
}

.lla-home-ticker .penci-topbar-post-title:hover,
.lla-home-ticker .penci-topbar-post-title:focus-visible {
    color: var(--lla-yellow) !important;
}

.lla-home-ticker a,
.lla-home-ticker a:hover,
.lla-home-ticker a:focus {
    color: var(--lla-black) !important;
    background-color: transparent !important;
    box-shadow: none !important;
}


/* =========================================================
   MÁS HISTORIAS — PENCI LATEST POSTS
   ========================================================= */

.lla-home-stories {
    width: min(100% - 40px, 1240px);
    margin: 0 auto;
    padding-bottom: 128px;
    box-sizing: border-box;
    font-family: var(--lla-body);
}

/* Neutraliza por completo el estilo 15 del encabezado de Soledad. */
.lla-home-stories .penci-homepage-title {
    margin: 0 0 44px !important;
    padding: 0 0 40px !important;
    background-color: transparent !important;
    background-image: linear-gradient(var(--lla-yellow), var(--lla-yellow)) !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: min(72%, 720px) 6px !important;
    border: 0 !important;
    text-align: center !important;
}

.lla-home-stories .penci-homepage-title.style-15.penci-border-arrow::before,
.lla-home-stories .penci-homepage-title.style-15.penci-border-arrow::after,
.lla-home-stories .penci-homepage-title .inner-arrow::before,
.lla-home-stories .penci-homepage-title .inner-arrow > span::before,
.lla-home-stories .penci-homepage-title .inner-arrow > span::after {
    content: none !important;
    display: none !important;
}

.lla-home-stories .penci-homepage-title .inner-arrow,
.lla-home-stories .penci-homepage-title .inner-arrow > span,
.lla-home-stories .penci-homepage-title .inner-arrow > span > span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--lla-black) !important;
}

.lla-home-stories h3 {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--lla-black) !important;
    font-family: var(--lla-display) !important;
    font-size: clamp(40px, 4.4vw, 60px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    text-align: center !important;
}

.lla-home-stories h2,
.lla-home-stories h2 a {
    color: var(--lla-black) !important;
    font-family: var(--lla-headline) !important;
    font-size: clamp(21px, 1.55vw, 25px) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em;
}

.lla-home-stories h2 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lla-home-stories h2 a,
.lla-home-stories h2 a:hover,
.lla-home-stories h2 a:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}

.lla-home-stories h2 a:hover,
.lla-home-stories h2 a:focus-visible {
    color: var(--lla-black) !important;
    text-decoration: underline;
    text-decoration-color: var(--lla-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.lla-home-stories .thumbnail {
    overflow: hidden;
    margin-bottom: 22px !important;
    border-bottom: 4px solid var(--lla-story-accent);
    border-radius: 10px;
}

.lla-home-stories .penci-image-holder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto !important;
    padding-top: 0 !important;
    background-position: center;
    background-size: cover;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.35s ease;
}

@media (hover: hover) {
    .lla-home-stories .thumbnail:hover .penci-image-holder {
        transform: scale(1.025);
    }
}

.lla-home-stories ul.penci-wrapper-data {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 76px 44px !important;
    margin: 0 !important;
}

.lla-home-stories li.grid-style {
    --lla-story-accent: var(--lla-yellow);
    width: auto !important;
    max-width: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.lla-home-stories li.grid-style:has(.cat a[href*="chismecito-de-downstairs"]) { --lla-story-accent: var(--lla-black); }
.lla-home-stories li.grid-style:has(.cat a[href*="whats-happening"]) { --lla-story-accent: var(--lla-pink); }
.lla-home-stories li.grid-style:has(.cat a[href*="desde-la-esquina"]) { --lla-story-accent: var(--lla-orange); }
.lla-home-stories li.grid-style:has(.cat a[href*="rayito-de-sol"]) { --lla-story-accent: var(--lla-turquoise); }
.lla-home-stories li.grid-style:has(.cat a[href*="en-el-barrio"]) { --lla-story-accent: var(--lla-blue); }
.lla-home-stories li.grid-style:has(.cat a[href*="take-care-ish"]) { --lla-story-accent: var(--lla-mint); }
/* Categorías sin decisión cromática nueva: se conserva el tratamiento actual. */
.lla-home-stories li.grid-style:has(.cat a[href*="musica-para-quedarse"]) { --lla-story-accent: var(--lla-pink); }
.lla-home-stories li.grid-style:has(.cat a[href*="deportes-varios-depelotas"]) { --lla-story-accent: var(--lla-blue); }

.lla-home-stories article.item {
    height: 100%;
}

.lla-home-stories .cat {
    display: block;
    margin-bottom: 10px !important;
}

.lla-home-stories .cat a {
    font-family: var(--lla-font-subtitle) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.lla-home-stories p,
.lla-home-stories .item-content,
.lla-home-stories .post-entry {
    color: var(--lla-gray);
    font-family: var(--lla-body);
    line-height: 1.65;
}

.lla-home-stories .item-content p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 16px !important;
    font-size: 15px !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.lla-home-stories .grid-post-box-meta {
    margin-top: 12px !important;
    color: #777777 !important;
    font-family: var(--lla-body) !important;
}

.lla-home-stories [class*="cat"] a {
    color: var(--lla-black) !important;
}

/* Oculta la navegación exclusivamente en este bloque de Home. */
.lla-home-stories .penci-pagination,
.lla-home-stories .penci_pagination,
.lla-home-stories .penci-pagination-wrap,
.lla-home-stories .penci-pagenavi,
.lla-home-stories ul.page-numbers,
.lla-home-stories nav.pagination,
.lla-home-stories .page-navigation {
    display: none !important;
}


/* =========================================================
   LO MÁS LEÍDO — HEADING + PENCI FEATURED SLIDER
   ========================================================= */

body.home .elementor-widget-heading[data-id="8450d68"] {
    box-sizing: border-box;
    width: min(100% - 40px, 1240px);
    margin: 0 auto 52px !important;
    padding: 0 0 40px !important;
    background: linear-gradient(#FFD34E, #FFD34E) center bottom / min(72%, 720px) 6px no-repeat;
    text-align: center;
}

body.home .elementor-widget-heading[data-id="8450d68"] .elementor-heading-title {
    margin: 0 !important;
    color: #151515 !important;
    font-family: var(--lla-font-raven-gothic-bold) !important;
    font-size: clamp(40px, 4.4vw, 60px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    text-align: center !important;
    text-transform: uppercase;
}

/* El contenedor Elementor añade 10 px debajo y a cada lado del slider. */
body.home .elementor-element[data-id="91e7bdc"] {
    padding-bottom: 0 !important;
}

body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] {
    position: relative;
    box-sizing: border-box;
    width: calc(100% + 20px) !important;
    max-width: none !important;
    margin-right: -10px !important;
    margin-left: -10px !important;
    overflow: hidden;
    border-top: 6px solid var(--lla-yellow);
    border-bottom: 6px solid var(--lla-yellow);
    background: var(--lla-black);
    box-shadow: 0 18px 42px rgba(21, 21, 21, 0.18);
}

/* Contraste estable para que los títulos funcionen sobre cualquier fotografía. */
body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .featured-slider-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.03) 18%,
        rgba(0, 0, 0, 0.22) 48%,
        rgba(0, 0, 0, 0.88) 100%
    ) !important;
    opacity: 1 !important;
}

body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .penci-featured-content {
    padding-right: clamp(1.25rem, 3vw, 3rem) !important;
    padding-bottom: clamp(1.25rem, 3vw, 2.6rem) !important;
    padding-left: clamp(1.25rem, 3vw, 3rem) !important;
}

body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] h3,
body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] h3 a {
    color: #fff !important;
    font-family: var(--lla-font-raven-gothic-bold) !important;
    font-size: clamp(1.35rem, 2vw, 2rem) !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
    letter-spacing: 0.015em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .penci-owl-nav > div {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.75rem !important;
    height: 2.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 50% !important;
    background: rgba(21, 21, 21, 0.72) !important;
    color: #fff !important;
    backdrop-filter: blur(6px);
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .penci-owl-nav > div:hover,
body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .penci-owl-nav > div:focus-visible {
    border-color: var(--lla-yellow) !important;
    background: var(--lla-yellow) !important;
    color: var(--lla-black) !important;
    transform: translateY(-2px);
}

body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .penci-owl-dot span {
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
}

body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .penci-owl-dot.active span {
    border-color: var(--lla-yellow) !important;
    background: var(--lla-yellow) !important;
}


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

@media (max-width: 1024px) {
    .lla-home-ticker {
        padding-bottom: 72px;
    }

    .lla-home-stories {
        padding-bottom: 104px;
    }

    .lla-home-stories ul.penci-wrapper-data {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 64px 34px !important;
    }

    body.home .elementor-widget-heading[data-id="8450d68"] {
        margin-bottom: 44px !important;
        padding-bottom: 34px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .lla-home-hero {
        margin-top: 10px;
    }

    .lla-home-hero h3,
    .lla-home-hero h3 a {
        line-height: 1.1 !important;
    }

    .lla-home-ticker {
        width: calc(100% - 28px);
        margin-top: 22px;
        padding-bottom: 58px;
    }

    .lla-home-ticker .headline-title {
        height: 48px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        font-size: 17px !important;
        line-height: 48px !important;
    }

    .lla-home-ticker .penci-enews-ticker {
        min-height: 48px;
    }

    .lla-home-ticker .penci-headline-posts.swiper {
        max-height: 48px !important;
    }

    .lla-home-ticker .penci-topbar-post-title {
        font-size: 15px !important;
        line-height: 48px !important;
    }

    /*
     * En móvil, los controles ocupan una fila y el titular otra.
     * Así el texto dispone de todo el ancho y no se corta a una sola línea.
     */
    .lla-home-ticker .penci-enews-ticker {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: stretch;
        min-height: 0;
    }

    .lla-home-ticker .headline-title {
        grid-column: 1;
        grid-row: 1;
        height: 44px !important;
        line-height: 44px !important;
    }

    .lla-home-ticker .penci-trending-nav {
        display: flex !important;
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        height: 44px;
        padding: 0 12px !important;
    }

    .lla-home-ticker .penci-headline-posts.swiper {
        box-sizing: border-box;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100% !important;
        max-height: 82px !important;
        min-height: 82px;
    }

    .lla-home-ticker .penci-headline-posts .swiper-slide {
        box-sizing: border-box;
        display: flex !important;
        align-items: center;
        width: 100% !important;
        min-height: 82px;
        padding: 0.75rem 1rem;
        overflow: hidden;
        white-space: normal !important;
    }

    .lla-home-ticker .penci-topbar-post-title {
        display: -webkit-box !important;
        width: 100%;
        overflow: hidden;
        color: #ffffff !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .lla-home-stories {
        width: calc(100% - 32px);
        padding-bottom: 82px;
    }

    .lla-home-stories .penci-homepage-title {
        margin-bottom: 34px !important;
        padding-bottom: 28px !important;
        background-size: 82% 5px !important;
    }

    .lla-home-stories h3 {
        padding-bottom: 0 !important;
        font-size: 40px !important;
    }

    .lla-home-stories h2,
    .lla-home-stories h2 a {
        font-size: 26px !important;
        line-height: 1.24 !important;
    }

    .lla-home-stories ul.penci-wrapper-data {
        grid-template-columns: minmax(0, 1fr);
        gap: 54px !important;
    }

    .lla-home-stories .penci-image-holder {
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }

    body.home .elementor-widget-heading[data-id="8450d68"] {
        width: calc(100% - 32px);
        margin-bottom: 38px !important;
        padding-bottom: 28px !important;
        background-size: 82% 5px;
    }

    body.home .elementor-widget-heading[data-id="8450d68"] .elementor-heading-title {
        font-size: 40px !important;
    }

    body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] {
        border-top-width: 4px;
        border-bottom-width: 4px;
    }

    body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .penci-featured-content {
        padding: 1rem 1.1rem 1.35rem !important;
    }

    body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] h3,
    body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] h3 a {
        font-size: 1.25rem !important;
        line-height: 1.15 !important;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .lla-home-ticker .headline-title::before {
        animation: none;
    }

    .lla-home-hero img,
    .lla-home-stories .penci-image-holder,
    body.home .elementor-widget-penci-featured-sliders[data-id="f8f9191"] .penci-owl-nav > div {
        transition: none;
    }
}
