/* CHELECH · Footer global — idéntica fuente de contenido para todas las páginas.
 * La estructura sticky footer impide que aparezca a media pantalla si main está vacío.
 */
body .wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
body .wp-site-blocks > header.wp-block-template-part,
body .wp-site-blocks > footer.wp-block-template-part {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
}
body .wp-site-blocks > main.chelech-main {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}
body .wp-site-blocks > footer.wp-block-template-part {
    margin-block-start: 0;
}
body .wp-site-blocks .chelech-site-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #050505;
    color: #f5f5f5;
}
/* WP core .is-layout-flow adds blockGap to the first child of the footer.
 * It appeared as a large empty black strip above the columns. Only reset it here. */
body .wp-site-blocks .chelech-site-footer > .chelech-footer {
    margin-block-start: 0 !important;
    margin-block-end: 0;
}
.chelech-footer,
.chelech-footer * {
    box-sizing: border-box;
}
.chelech-footer {
    width: 100%;
    background: #050505;
    color: #f6f6f6;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.35;
}
.chelech-footer__inner {
    width: min(100%, 1420px);
    margin-inline: auto;
    padding: 8px clamp(22px, 2.9vw, 42px) 9px;
}
.chelech-footer__grid {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,1.3fr) minmax(0,1.02fr) minmax(0,.97fr) minmax(0,.7fr);
    align-items: start;
    column-gap: clamp(19px,2.15vw,36px);
    row-gap: 12px;
}
.chelech-footer--no-social .chelech-footer__grid {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1.3fr) minmax(0,1.02fr) minmax(0,.97fr);
}
.chelech-footer--no-payment .chelech-footer__grid {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1.3fr) minmax(0,1.02fr) minmax(0,.7fr);
}
.chelech-footer--no-social.chelech-footer--no-payment .chelech-footer__grid {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1.3fr) minmax(0,1.02fr);
}
.chelech-footer__grid > * {
    align-self: start;
    margin-block: 0;
}
.chelech-footer__brand {
    display: flex;
    align-items: flex-start;
    padding: 0;
}
.chelech-footer__brand-link {
    display: inline-block;
    width: min(100%, 178px);
    max-width: 100%;
    text-decoration: none!important;
}
.chelech-footer__logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    object-position: left center;
    filter: grayscale(1) brightness(0) invert(1);
}
.chelech-footer__brand-fallback {
    color: #fff;
    font-size: clamp(24px,2.6vw,35px);
    font-weight: 850;
    letter-spacing: -.06em;
}
.chelech-footer h2 {
    margin: 0 0 6px;
    padding: 0;
    font-size: clamp(12px, 1.05vw, 16px);
    font-weight: 800;
    line-height: 1.26;
    letter-spacing: .012em;
    color: #ffdb00;
    text-transform: uppercase;
    white-space: nowrap;
}
.chelech-footer__service,
.chelech-footer__contact,
.chelech-footer__payment,
.chelech-footer__social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.chelech-footer__service a,
.chelech-footer__contact a {
    display: block;
    padding: 0;
    margin: 0 0 3px;
    border: 0;
    color: #f4f4f4!important;
    text-decoration: none!important;
    line-height: 1.35;
    font-size: clamp(11px,.87vw,14px);
    font-weight: 650;
    overflow-wrap: anywhere;
    word-break: normal;
}
.chelech-footer__contact a { margin-bottom: 0; }
.chelech-footer a:hover { text-decoration: underline!important; }
.chelech-footer__webpay-image {
    display: block;
    width: 160px;
    max-width: 100%;
    height: 62px;
    max-height: none;
    object-fit: contain;
    object-position: left center;
    margin: -7px 0 -5px;
    filter: grayscale(1) brightness(0) invert(1);
}
.chelech-footer__webpay-text {
    display: inline-block;
    color: white;
    font-size: clamp(20px,1.7vw,26px);
    letter-spacing: -.07em;
    font-weight: 800;
    line-height: .95;
}
.chelech-footer__webpay-text small {
    display: block;
    margin: 3px 0 0 5px;
    letter-spacing: -.02em;
    font-size: 10px;
    font-weight: 450;
}
.chelech-footer__payment p {
    margin: 3px 0 0;
    color: #e9e9e9;
    font-size: clamp(11px,.87vw,13px);
    line-height: 1.3;
    font-weight: 800;
}
.chelech-footer__social-links {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
}
.chelech-footer__social-links a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: #fff;
    color: #080808!important;
    border-radius: 50%;
    text-decoration: none!important;
}
.chelech-footer__social-links a:hover {
    background: #ffdb00;
}
.chelech-footer__social-links .chelech-footer__icon {
    width: 22px;
    height: 22px;
}
.chelech-footer__benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px clamp(20px, 3vw, 45px);
    margin: 9px 0 7px;
    padding: 0;
}
.chelech-footer__benefit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #e4e4e4;
    font-size: clamp(11px,.86vw,13px);
    line-height: 1.35;
}
.chelech-footer__icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    flex: none;
}
.chelech-footer__benefit .chelech-footer__icon {
    color: #ffdb00;
}
.chelech-footer__bottom {
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid #777;
    color: #b6b6b6;
    font-size: clamp(11px,.93vw,14px);
    font-weight: 350;
    line-height: 1.4;
}
.chelech-footer a:focus-visible {
    outline: 2px solid #ffdb00;
    outline-offset: 4px;
}
@media(max-width:920px) {
    .chelech-footer__inner {padding-inline: 24px;}
    .chelech-footer__grid,
    .chelech-footer--no-social .chelech-footer__grid,
    .chelech-footer--no-payment .chelech-footer__grid,
    .chelech-footer--no-social.chelech-footer--no-payment .chelech-footer__grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 16px;
    }
    .chelech-footer h2 {font-size: 13px;}
    .chelech-footer__service a,.chelech-footer__contact a {font-size: 12px;}
}
@media(max-width:680px) {
    .chelech-footer__inner {padding: 15px 17px 11px;}
    .chelech-footer__grid,
    .chelech-footer--no-social .chelech-footer__grid,
    .chelech-footer--no-payment .chelech-footer__grid,
    .chelech-footer--no-social.chelech-footer--no-payment .chelech-footer__grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        row-gap: 19px;
        column-gap: 16px;
    }
    .chelech-footer__brand {grid-column:1 / -1;}
    .chelech-footer__brand-link {max-width: 158px;}
    .chelech-footer h2 {font-size: 12px;white-space: normal;margin-bottom: 6px;}
    .chelech-footer__service a,.chelech-footer__contact a {font-size: 12px;line-height:1.45;}
    .chelech-footer__social-links a {width: 34px;height: 34px;}
    .chelech-footer__benefits {margin-top: 9px;justify-content:flex-start;gap:7px;}
    .chelech-footer__benefit {width:100%;justify-content:flex-start;font-size:12px;}
    .chelech-footer__bottom {padding-top:8px;font-size:11px;}
}
/* Footer para teléfonos: texto ancho, menos columnas y las redes junto al logo.
 * Las filas se recolocan con CSS sin duplicar su contenido editable. */
@media (max-width: 680px) {
    .chelech-footer__inner { padding: 18px 19px 16px; }
    .chelech-footer__grid,
    .chelech-footer--no-social .chelech-footer__grid,
    .chelech-footer--no-payment .chelech-footer__grid,
    .chelech-footer--no-social.chelech-footer--no-payment .chelech-footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 16px;
        align-items: start;
    }
    .chelech-footer__brand {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }
    .chelech-footer__brand-link { width: 143px; max-width: 100%; }
    .chelech-footer__logo-image { max-height: 58px; }
    .chelech-footer__social {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        align-items: flex-start;
    }
    .chelech-footer__social h2 {
        margin-bottom: 7px;
        font-size: 11px;
    }
    .chelech-footer__social-links { gap: 8px; }
    .chelech-footer__social-links a { width: 37px; height: 37px; }
    .chelech-footer__service {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 6px 15px;
    }
    .chelech-footer__contact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        grid-column: 1 / -1;
        grid-row: 3;
        gap: 5px 15px;
    }
    .chelech-footer__service h2,
    .chelech-footer__contact h2,
    .chelech-footer__payment h2 {
        flex: 0 0 100%;
        width: 100%;
        margin: 0 0 2px;
        font-size: 12px;
        white-space: normal;
    }
    .chelech-footer__service a,
    .chelech-footer__contact a {
        flex: 0 0 auto;
        max-width: 100%;
        margin: 0;
        padding: 0;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
        text-decoration: none;
    }
    .chelech-footer__payment {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        grid-column: 1 / -1;
        grid-row: 4;
        gap: 4px 14px;
    }
    .chelech-footer__payment .chelech-footer__webpay-image {
        width: 147px;
        max-width: 60%;
        height: 57px;
        margin: -5px 0 -7px;
    }
    .chelech-footer__payment .chelech-footer__webpay-text { font-size: 24px; }
    .chelech-footer__payment p { margin: 0; font-size: 12px; font-weight: 800; }
    .chelech-footer__benefits {
        justify-content: flex-start;
        align-items: flex-start;
        gap: 9px;
        margin: 15px 0 10px;
        padding-top: 12px;
        border-top: 1px solid #363636;
    }
    .chelech-footer__benefit {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        font-size: 11px;
        line-height: 1.4;
    }
    .chelech-footer__benefit .chelech-footer__icon { margin-top: -1px; }
    .chelech-footer__bottom { padding-top: 10px; font-size: 10.5px; }
    /* El botón flotante no debe tapar los enlaces ni los mensajes del footer. */
    body.chelech-mobile-footer-visible .joinchat {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}
@media print {
    body .wp-site-blocks {display:block;min-height:auto;}
    .chelech-footer {background:#fff;color:#111;}
}
