/**
 * Custom Footer Styles - Astra Child CCL (Final Standardized)
 */

/* HIDE ASTRA FOOTER */
.site-footer,
.ast-footer-builder-layout,
footer[id="colophon"] {
    display: none !important;
}


/* 
 * PARIDAD CON BLOQUE "NUESTROS SERVICIOS"
 * El bloque usa .alignfull para el fondo y .alignwide para el contenedor centrado.
 */
body .pxl-footer-ccl.wp-block-group.alignfull {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-family: var(--font-family-poppins) !important;
    padding: 60px !important;
    /* Padding vertical idéntico a otros patrones */
    margin: 0 !important;
}

/* Alineación Horizontal Master */
.pxl-footer-main-wrapper.wp-block-group.alignwide {
    max-width: var(--wp--style--global--wide-size, 1200px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Reset de Columns para el Footer */
.pxl-footer-main-wrapper .wp-block-columns {
    display: flex !important;
    margin: 0 !important;
    align-items: stretch !important;
}

/* 1. BLOQUE LOGO (Aislado a la izquierda) */
.pxl-footer-logo-isolated {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 20px 0 !important;
    position: relative;
    margin-left: 0 !important;
}

/* Línea Vertical Infinita de punta a punta */
.pxl-footer-logo-isolated::after {
    content: "";
    position: absolute;
    right: 0;
    top: -60px;
    /* Sube para tocar el borde superior del alignfull */
    bottom: -60px;
    /* Baja para tocar el borde inferior del alignfull */
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.pxl-footer-logo {
    max-width: 100%;
    height: auto;
}

/* 2. BLOQUE CONTENIDO (Grilla + Social) */
.pxl-footer-content-grouped {
    display: flex !important;
    flex-direction: column;
    padding-left: 40px !important;
    margin-left: 0 !important;
}

/* Grilla de 4 columnas interna */
.pxl-footer-nav-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 15px;
    padding-bottom: 40px;
}

.pxl-footer-col {
    display: flex;
    flex-direction: column;
}

.pxl-footer-title {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
}

.pxl-footer-ccl ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pxl-footer-ccl li {
    margin-bottom: 12px !important;
}

.pxl-footer-ccl a {
    color: var(--color-white) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover Arrow Effect - Only for Menu Items in Nosotros, Servicios, Transparencia */
.pxl-footer-nav-grid .pxl-footer-col:not(.pxl-footer-contact) li a {
    position: relative;
    display: inline-block;
}

.pxl-footer-nav-grid .pxl-footer-col:not(.pxl-footer-contact) li a:hover {
    padding-left: 15px !important;
}

.pxl-footer-nav-grid .pxl-footer-col:not(.pxl-footer-contact) li a::before {
    content: "\f105";
    font-family: "Flaticon" !important;
    font-weight: 400;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--color-white);
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.pxl-footer-nav-grid .pxl-footer-col:not(.pxl-footer-contact) li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Contact Icons */
.pxl-footer-contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--color-white) !important;
    font-size: 14px;
    line-height: 1.5;
}

.pxl-footer-contact-list i {
    color: var(--color-white);
    margin-top: 4px;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Libro Reclamaciones */
.pxl-btn-reclamaciones {
    margin-top: 20px;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-warning) !important;
    color: var(--color-warning) !important;
    padding: 10px 20px !important;
    border-radius: 5px;
    font-size: 13px !important;
    font-weight: 400;
    width: fit-content;
}

.pxl-btn-reclamaciones i {
    color: var(--color-warning) !important;
}

/* 3. FILA SOCIAL & LOGOS */
.pxl-footer-inner-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-bottom: 30px;
}

.pxl-footer-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pxl-footer-social-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pxl-footer-social-icons {
    display: flex;
    gap: 15px;
}

.pxl-footer-social-icons a {
    font-size: 18px;
    opacity: 0.8;
    color: var(--color-white) !important;
}

.pxl-footer-social-icons a:hover {
    opacity: 1;
    color: var(--color-white) !important;
}

.pxl-footer-institutional-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pxl-footer-inst-logo {
    max-height: 40px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.pxl-footer-inst-logo:hover {
    opacity: 1;
}

/* RESPONSIVE */
@media screen and (max-width: 1200px) {
    .pxl-footer-main-wrapper .wp-block-columns {
        flex-direction: column !important;
    }


    .pxl-footer-logo {
        max-width: 250px;
    }

    .pxl-footer-logo-isolated {
        flex: none !important;
        border-right: none !important;
        padding: 0 0 40px 0 !important;
        margin-bottom: 40px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        justify-content: center !important;
    }

    .pxl-footer-logo-isolated::after {
        display: none !important;
    }

    .pxl-footer-content-grouped {
        padding-left: 0 !important;
    }

    .pxl-footer-nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}


@media screen and (max-width: 900px) {
    .pxl-footer-meta-row {
        flex-direction: column;
    }
}

@media screen and (max-width: 781px) {
    .pxl-footer-nav-grid {
        grid-template-columns: 1fr;
    }

    .pxl-footer-meta-row {
        gap: 30px;
        text-align: center;
    }

    .pxl-footer-ccl a,
    .pxl-footer-contact-list li {
        font-size: 13px !important;
    }

    /* Reducción de logos en mobile */
    .pxl-footer-logo {
        max-width: 150px;
    }

    .pxl-footer-inst-logo {
        max-height: 30px;
    }

    .pxl-footer-institutional-logos {
        justify-content: center;
        flex-wrap: wrap;
    }


    body .pxl-footer-ccl.wp-block-group.alignfull {
        padding: 40px 20px !important;

    }
}