/* =====================================================
   REVELADO24 - FOOTER EXCLUSIVO
   Archivo: /assets/css/footer.css
===================================================== */

:root {
    --r24-footer-dark: #2b2b2b;
    --r24-footer-gold: #d2a51b;
    --r24-footer-white: #ffffff;
    --r24-footer-text: #f4f4f4;
    --r24-footer-muted: #cfcfcf;
    --r24-footer-line: rgba(255, 255, 255, 0.12);
    --r24-footer-hover: rgba(210, 165, 27, 0.16);
    --r24-footer-hover-strong: rgba(210, 165, 27, 0.24);
    --r24-footer-width: 1340px;
    --r24-footer-logo-box-width: 158px;
    --r24-footer-logo-box-height: 108px;
    --r24-footer-ekomi-box-width: 220px;
    --r24-footer-ekomi-box-min-height: 112px;
}

body .r24-footer,
body .r24-footer * {
    box-sizing: border-box;
}

body .r24-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--r24-footer-dark);
    color: var(--r24-footer-text);
    font-family: inherit;
    border-top: 3px solid var(--r24-footer-gold);
}

body .r24-footer a {
    text-decoration: none;
}

body .r24-footer-inner {
    width: min(calc(100% - 32px), var(--r24-footer-width));
    margin: 0 auto;
    padding: 20px 0 17px;
    display: grid;
    grid-template-columns: minmax(170px, 235px) minmax(0, 1fr) minmax(190px, 250px);
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
}

/* =========================
   Marca
========================= */

body .r24-footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

body .r24-footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: min(100%, var(--r24-footer-logo-box-width));
    height: var(--r24-footer-logo-box-height);
    line-height: 0;
    border-radius: 0;
    transition: none;
}

body .r24-footer-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

body .r24-footer-logo-link:hover,
body .r24-footer-logo-link:focus,
body .r24-footer-logo-link:active {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}

/* =========================
   Zona central
========================= */

body .r24-footer-main {
    min-width: 0;
    text-align: center;
}

body .r24-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 0 10px;
}

body .r24-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--r24-footer-gold) !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--r24-footer-line);
    font-size: 15px;
    line-height: 1;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .r24-footer-social a:hover,
body .r24-footer-social a:focus {
    color: var(--r24-footer-white) !important;
    background: var(--r24-footer-hover-strong);
    border-color: rgba(210, 165, 27, 0.45);
    box-shadow: 0 0 0 6px var(--r24-footer-hover);
    outline: none;
}

body .r24-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: clamp(12px, 1.8vw, 24px);
    row-gap: 6px;
    max-width: 820px;
    margin: 0 auto;
}

body .r24-footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    border-radius: 999px;
    color: var(--r24-footer-text) !important;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.15;
    white-space: normal;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

body .r24-footer-links a:hover,
body .r24-footer-links a:focus {
    color: var(--r24-footer-gold) !important;
    background: var(--r24-footer-hover);
    box-shadow: 0 0 0 6px var(--r24-footer-hover);
    outline: none;
}

body .r24-footer-copy {
    margin: 9px 0 0;
    color: var(--r24-footer-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

/* =========================
   eKomi
========================= */

body .r24-footer-trust {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

body .r24-ekomi-widget {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: var(--r24-footer-ekomi-box-min-height);
    line-height: normal;
}

body .r24-ekomi-widget .ekomi-widget-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, var(--r24-footer-ekomi-box-width));
    min-height: var(--r24-footer-ekomi-box-min-height);
    max-width: 100%;
    line-height: normal;
    overflow: visible;
}

body .r24-ekomi-widget .ekomi-widget-container > * {
    max-width: 100% !important;
}

body .r24-ekomi-widget iframe,
body .r24-ekomi-widget object,
body .r24-ekomi-widget embed {
    max-width: 100% !important;
    border: 0 !important;
}

body .r24-ekomi-widget img {
    max-width: 100% !important;
    height: auto;
    border: 0;
}

body .r24-ekomi-widget .r24-ekomi-fallback {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

body .r24-footer-trust a,
body .r24-footer-trust a:hover,
body .r24-footer-trust a:focus,
body .r24-footer-trust a:active,
body .r24-ekomi-widget,
body .r24-ekomi-widget:hover,
body .r24-ekomi-widget:focus,
body .r24-ekomi-widget .ekomi-widget-container,
body .r24-ekomi-widget .ekomi-widget-container:hover,
body .r24-ekomi-widget .ekomi-widget-container:focus {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}

body .r24-footer-social a:focus-visible,
body .r24-footer-links a:focus-visible,
body .r24-footer-logo-link:focus-visible {
    outline: 2px solid var(--r24-footer-gold);
    outline-offset: 4px;
}

/* =========================
   Ajustes intermedios
========================= */

@media (max-width: 1080px) {
    body .r24-footer-inner {
        width: min(calc(100% - 24px), var(--r24-footer-width));
        grid-template-columns: minmax(145px, 200px) minmax(0, 1fr) minmax(170px, 220px);
        gap: 18px;
        padding: 18px 0 16px;
    }

    body .r24-footer-logo-link {
        width: min(100%, 142px);
        height: 96px;
    }

    body .r24-footer-links {
        column-gap: 13px;
    }

    body .r24-footer-links a {
        font-size: 12px;
    }

    body .r24-ekomi-widget {
        min-height: 104px;
    }

    body .r24-ekomi-widget .ekomi-widget-container {
        width: min(100%, 200px);
        min-height: 104px;
    }
}

/* =========================
   Versión móvil
========================= */

@media (max-width: 767px) {
    body .r24-footer {
        border-top-width: 2px;
    }

    body .r24-footer-inner {
        width: min(calc(100% - 24px), var(--r24-footer-width));
        padding: 18px 0 calc(17px + env(safe-area-inset-bottom));
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    body .r24-footer-brand,
    body .r24-footer-trust {
        justify-content: center;
    }

    body .r24-footer-logo-link {
        justify-content: center;
        width: min(100%, 138px);
        height: 94px;
    }

    body .r24-footer-social {
        margin-bottom: 11px;
        gap: 12px;
    }

    body .r24-footer-social a {
        width: 34px;
        height: 34px;
    }

    body .r24-footer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        max-width: 360px;
    }

    body .r24-footer-links a {
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
        padding: 4px 0;
        font-size: 12.5px;
        line-height: 1.25;
    }

    body .r24-footer-copy {
        margin-top: 10px;
        font-size: 11.5px;
    }

    body .r24-ekomi-widget {
        justify-content: center;
        min-height: 100px;
        margin-left: auto;
        margin-right: auto;
    }

    body .r24-ekomi-widget .ekomi-widget-container {
        width: min(100%, 190px);
        min-height: 100px;
    }
}

@media (max-width: 420px) {
    body .r24-footer-inner {
        width: min(calc(100% - 20px), var(--r24-footer-width));
        padding-top: 16px;
    }

    body .r24-footer-logo-link {
        width: min(100%, 126px);
        height: 86px;
    }

    body .r24-footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    body .r24-footer-links a {
        font-size: 12px;
    }

    body .r24-ekomi-widget {
        min-height: 94px;
    }

    body .r24-ekomi-widget .ekomi-widget-container {
        width: min(100%, 172px);
        min-height: 94px;
    }
}
