/**
 * Latin LA - Global Footer.
 * Mantiene el contenido editable desde los widgets nativos de WordPress.
 */

/* Área principal de widgets. */
#widget-area {
    --lla-footer-title-size: clamp(1.125rem, 1.5vw, 1.35rem);
    position: relative;
    overflow: hidden;
    border: 0 !important;
    background: #151515 !important;
    color: #f7f4ec;
}

#widget-area::before {
    position: absolute;
    top: 0;
    right: -8rem;
    left: -8rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 4.25rem;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            125deg,
            #151515 0,
            #151515 0.42rem,
            #ffd34e 0.42rem,
            #ffd34e 0.84rem
        ) top left / 100% 0.55rem no-repeat,
        repeating-linear-gradient(
            125deg,
            #151515 0,
            #151515 0.42rem,
            #ffd34e 0.42rem,
            #ffd34e 0.84rem
        ) bottom left / 100% 0.55rem no-repeat,
        #ffd34e;
    color: #151515;
    content: "LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA\2003\2003 LATIN LA";
    font-family: var(--lla-font-raven-gothic-bold);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    will-change: transform;
    animation: lla-footer-strip-drift 9s linear infinite alternate;
}

@keyframes lla-footer-strip-drift {
    from {
        transform: translate3d(-6rem, 0, 0);
    }

    to {
        transform: translate3d(6rem, 0, 0);
    }
}

#widget-area > .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
    padding-top: clamp(7rem, 10vw, 8.25rem) !important;
    padding-bottom: clamp(4rem, 6vw, 5rem) !important;
}

/* Soledad añade pseudo-elementos de clearfix a la .container.
 * Dentro de CSS Grid se convierten en celdas fantasma y desplazan columnas. */
#widget-area > .container::before,
#widget-area > .container::after {
    display: none !important;
    content: none !important;
}

#widget-area .footer-widget-wrapper {
    box-sizing: border-box;
    float: none !important;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#widget-area .widget {
    margin: 0 0 2.5rem !important;
}

#widget-area .widget:last-child {
    margin-bottom: 0 !important;
}

#widget-area #block-7 {
    display: none;
}

/* Títulos de columnas. */
#widget-area .widget-title {
    position: relative;
    margin: 0 0 1.5rem !important;
    padding: 0 0 0.85rem !important;
    border: 0 !important;
    color: #ffd34e !important;
    font-family: var(--lla-font-raven-gothic-bold) !important;
    font-size: var(--lla-footer-title-size) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase;
}

#widget-area .widget-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    border-radius: 999px;
    background: #ffd34e;
    content: "";
}

#widget-area .widget-title::before,
#widget-area .widget-title .inner-arrow::before,
#widget-area .widget-title .inner-arrow::after {
    display: none !important;
}

#widget-area .widget-title .inner-arrow {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}

/* Marca y descripción. */
#widget-area .about-widget img {
    display: block;
    width: 100% !important;
    height: auto;
    margin: 0 0 1.4rem !important;
    border: 0 !important;
    border-radius: 0.9rem;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: cover;
}

#widget-area .about-me-desc,
#widget-area .about-me-desc p {
    margin: 0;
    color: #e8e3d9 !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.94rem !important;
    line-height: 1.7 !important;
}

/* Redes sociales. */
#widget-area .widget-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

#widget-area .widget-social a {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.7rem !important;
    height: 2.7rem !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #fff !important;
    line-height: 1 !important;
    text-decoration: none;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

#widget-area .widget-social a span {
    display: none !important;
}

/* El widget dibuja un segundo círculo directamente sobre el ícono. */
#widget-area .widget-social a .penci-faicon {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: none !important;
}

#widget-area .widget-social a .penci-faicon::before {
    display: block;
    line-height: 1 !important;
}

#widget-area .widget-social a:hover,
#widget-area .widget-social a:focus-visible {
    border-color: #ffd34e !important;
    background: #ffd34e !important;
    color: #151515 !important;
    transform: translateY(-2px);
}

/* Últimas notas. */
#widget-area .side-newsfeed .penci-feed {
    margin: 0 !important;
    padding: 0.9rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11) !important;
}

#widget-area .side-newsfeed .penci-feed:first-child {
    padding-top: 0 !important;
}

#widget-area .side-newsfeed .penci-feed:last-child {
    border-bottom: 0 !important;
}

#widget-area .side-newsfeed .side-item {
    display: grid !important;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

#widget-area .side-newsfeed .side-image,
#widget-area .side-newsfeed .penci-image-holder.small-fix-size {
    float: none !important;
    width: 6.25rem !important;
    height: 4.7rem !important;
    margin: 0 !important;
    border-radius: 0.65rem;
    background-position: center;
    background-size: cover;
}

#widget-area .side-newsfeed .side-item-text {
    width: auto !important;
    padding: 0 !important;
}

#widget-area .side-newsfeed .side-title-post,
#widget-area .side-newsfeed .side-title-post a {
    margin: 0 !important;
    color: #fff !important;
    font-family: var(--lla-font-news) !important;
    font-size: 0.86rem !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-decoration: none;
    transition: color 180ms ease;
}

#widget-area .side-newsfeed .side-title-post a:hover,
#widget-area .side-newsfeed .side-title-post a:focus-visible {
    color: #ffd34e !important;
}

#widget-area .side-newsfeed .side-item-meta,
#widget-area .side-newsfeed time {
    color: #c9c2b5 !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Categorías. */
#widget-area :is(.widget_categories, .penci_advanced_categories_widget) ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#widget-area :is(.widget_categories, .penci_advanced_categories_widget) li {
    margin: 0 !important;
    padding: 0.72rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11) !important;
    color: #c9c2b5;
}

#widget-area :is(.widget_categories, .penci_advanced_categories_widget) li:first-child {
    padding-top: 0 !important;
}

#widget-area :is(.widget_categories, .penci_advanced_categories_widget) li:last-child {
    border-bottom: 0 !important;
}

#widget-area :is(.widget_categories, .penci_advanced_categories_widget) .cat-item-1 {
    display: none !important;
}

#widget-area :is(.widget_categories, .penci_advanced_categories_widget) a {
    display: inline-block;
    max-width: 100%;
    color: #f7f4ec !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition:
        color 180ms ease,
        padding-left 180ms ease;
}

#widget-area :is(.widget_categories, .penci_advanced_categories_widget) a:hover,
#widget-area :is(.widget_categories, .penci_advanced_categories_widget) a:focus-visible,
#widget-area :is(.widget_categories, .penci_advanced_categories_widget) .current-cat > a {
    padding-left: 0.25rem;
    color: #ffd34e !important;
}

/* Formulario de contacto del footer (WPForms 6534). */
#widget-area #wpforms-6534 {
    margin: 0 !important;
}

#widget-area #wpforms-6534 .wpforms-head-container {
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
}

#widget-area #wpforms-6534 .wpforms-title {
    position: relative;
    margin: 0 !important;
    padding: 0 0 0.85rem !important;
    color: #ffd34e !important;
    font-family: var(--lla-font-raven-gothic-bold) !important;
    font-size: var(--lla-footer-title-size) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase;
}

#widget-area #wpforms-6534 .wpforms-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    border-radius: 999px;
    background: #ffd34e;
    content: "";
}

#widget-area #wpforms-6534 .wpforms-field-container > :is(
    #wpforms-6534-field_1-container,
    #wpforms-6534-field_5-container,
    #wpforms-6534-field_3-container,
    #wpforms-6534-field_4-container
) {
    padding: 0 0 0.95rem !important;
}

#widget-area #wpforms-6534 .wpforms-field-label {
    margin: 0 0 0.45rem !important;
    color: #f7f4ec !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#widget-area #wpforms-6534 .wpforms-required-label {
    color: #ffd34e !important;
}

#widget-area #wpforms-6534 :is(
    #wpforms-6534-field_1,
    #wpforms-6534-field_5,
    #wpforms-6534-field_3,
    #wpforms-6534-field_4
) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 2.9rem !important;
    padding: 0.7rem 0.85rem !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 0.45rem !important;
    background: #222 !important;
    color: #fff !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
    box-shadow: none !important;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

#widget-area #wpforms-6534 #wpforms-6534-field_4 {
    min-height: 7.25rem !important;
    resize: vertical;
}

#widget-area #wpforms-6534 :is(
    #wpforms-6534-field_1,
    #wpforms-6534-field_5,
    #wpforms-6534-field_3,
    #wpforms-6534-field_4
):focus {
    outline: 0 !important;
    border-color: #ffd34e !important;
    box-shadow: 0 0 0 3px rgba(255, 211, 78, 0.18) !important;
}

#widget-area #wpforms-6534 .wpforms-submit-container {
    padding: 0.2rem 0 0 !important;
}

#widget-area #wpforms-6534 button.wpforms-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 2.9rem !important;
    padding: 0.7rem 1.25rem !important;
    border: 1px solid #ffd34e !important;
    border-radius: 0.45rem !important;
    background: #ffd34e !important;
    color: #151515 !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

#widget-area #wpforms-6534 button.wpforms-submit:hover,
#widget-area #wpforms-6534 button.wpforms-submit:focus-visible {
    background: #151515 !important;
    color: #ffd34e !important;
    transform: translateY(-2px);
}

#widget-area #wpforms-6534 .wpforms-error,
#widget-area #wpforms-6534 label.wpforms-error {
    color: #ff7d86 !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.75rem !important;
}

#widget-area #wpforms-6534 .wpforms-confirmation-container-full {
    border-color: #ffd34e;
    background: #222;
    color: #fff;
}

/* Franja inferior y botón para volver arriba. */
#footer-section {
    border: 0 !important;
    border-top: 1px solid rgba(21, 21, 21, 0.22) !important;
    background: #ffd34e !important;
}

#footer-section .footer-logo-copyright {
    padding: 1.15rem 0 !important;
    border: 0 !important;
}

#footer-section #footer-copyright p {
    margin: 0;
    color: #151515 !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.72rem !important;
    font-style: normal !important;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: none !important;
}

#footer-section #footer-copyright a {
    padding-bottom: 0.1rem;
    border-bottom: 1px solid currentColor;
    color: #151515 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 700;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
    text-decoration: none !important;
}

#footer-section #footer-copyright a:hover,
#footer-section #footer-copyright a:focus-visible {
    color: #151515 !important;
    border-bottom-color: transparent;
}

.penci-go-to-top-floating {
    border: 1px solid #151515 !important;
    border-radius: 50% !important;
    background: #ffd34e !important;
    color: #151515 !important;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.penci-go-to-top-floating:hover {
    background: #151515 !important;
    color: #ffd34e !important;
    transform: translateY(-2px);
}

@media (max-width: 960px) {
    #widget-area > .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem 2.5rem;
    }

    #widget-area .footer-widget-wrapper.last {
        grid-column: 1 / -1;
    }

    #widget-area .footer-widget-wrapper.last .widget_categories ul {
        columns: 2;
        column-gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    #widget-area::before {
        height: 3.5rem;
        font-size: 1.1rem;
    }

    #widget-area > .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.75rem;
        padding-top: 6rem !important;
        padding-right: 1.25rem !important;
        padding-bottom: 3.5rem !important;
        padding-left: 1.25rem !important;
    }

    #widget-area .footer-widget-wrapper.last {
        grid-column: auto;
    }

    #widget-area .footer-widget-wrapper.last .widget_categories ul {
        columns: 1;
    }

    #widget-area .side-newsfeed .side-item {
        grid-template-columns: 5.4rem minmax(0, 1fr);
    }

    #widget-area .side-newsfeed .side-image,
    #widget-area .side-newsfeed .penci-image-holder.small-fix-size {
        width: 5.4rem !important;
        height: 4.15rem !important;
    }

    #footer-section .footer-logo-copyright {
        padding: 1rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #widget-area::before {
        animation: none;
        transform: none;
    }
}
