/* =========================================================
   Revedoux Footer — diseño tipo Offcorss (escritorio + móvil)
   Cambia los colores aquí:
   ========================================================= */
.rvx-footer {
    --rvx-bg: #f2f2f2;
    --rvx-text: #1e1f1f;
    --rvx-muted: #6b6f8d;
    /* links legales inferiores */
    --rvx-social: #9097b5;
    /* círculos de redes */
    --rvx-btn: #2b2b2b;
    /* botón enviar */
    --rvx-line: #8f94b8;
    /* borde del input */
    --rvx-bar: #000;
    --rvx-bar-text: #b9bcc4;

    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--rvx-bg);
    color: var(--rvx-text);
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.rvx-footer *,
.rvx-footer *::before,
.rvx-footer *::after {
    box-sizing: border-box;
}

.rvx-footer a {
    color: inherit;
    text-decoration: none;
}

.rvx-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rvx-footer p {
    margin: 0;
    margin-top: 10px;
}

.rvx-footer__main {
    max-width: none;
    margin: 0 auto;
    padding: 24px clamp(18px, 3vw, 48px) 28px;
}

/* ---------- Grid principal ---------- */
.rvx-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* ---------- Logo ---------- */
.rvx-ft-logo {
    display: flex;
    justify-content: center;
    padding: 12px 0 18px;
}

.rvx-ft-logo img {
    display: block;
    max-width: 200px;
    max-height: 70px;
    width: auto;
    height: auto;
}

.rvx-ft-logo__text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ---------- Columnas / acordeón ---------- */
.rvx-ft-col {
    border: 0;
}

.rvx-ft-toggle {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rvx-text);
    cursor: pointer;
}

.rvx-ft-toggle:focus-visible {
    outline: 2px solid var(--rvx-text);
    outline-offset: 2px;
}

.rvx-ft-toggle svg {
    width: 20px;
    height: 20px;
    flex: none;
    transition: transform .25s ease;
}

.rvx-ft-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.rvx-ft-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}

.rvx-ft-toggle[aria-expanded="true"]+.rvx-ft-panel {
    grid-template-rows: 1fr;
}

.rvx-ft-panel__inner {
    overflow: hidden;
    min-height: 0;
}

.rvx-ft-links li+li {
    margin-top: 14px;
}

.rvx-ft-links a,
.rvx-ft-contact a {
    display: inline-block;
}

.rvx-ft-links a:hover,
.rvx-ft-contact a:hover {
    text-decoration: underline;
}

.rvx-ft-links {
    padding: 4px 4px 16px;
}

.rvx-ft-contact {
    padding: 4px 4px 0;
}

.rvx-ft-contact li+li {
    margin-top: 12px;
}

.rvx-ft-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rvx-ft-contact svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: #6b6f8d;
}

.rvx-ft-contact a {
    min-width: 0;
    align-items: flex-start;
}

.rvx-ft-contact a.is-mail {
    text-decoration: underline;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.rvx-ft-contact svg {
    margin-top: 2px;
}

.rvx-ft-schedule {
    padding: 14px 4px 16px;
    font-size: 13px;
    color: #44464f;
}

/* ---------- Newsletter ---------- */
.rvx-ft-news {
    padding: 16px 0 6px;
}

.rvx-ft-news__lead {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 340px;
    margin-bottom: 24px;
}

.rvx-ft-form {
    position: relative;
    max-width: 100%;
}

.rvx-ft-form__field {
    display: flex;
    align-items: stretch;
    height: 46px;
    border: 1px solid var(--rvx-line);
    border-radius: 999px;
    overflow: hidden;
    background: transparent;
    margin-top: 20px;
}

.rvx-ft-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 16px;
    font: inherit;
    color: var(--rvx-text);
    outline: none;
    box-shadow: none;
}

.rvx-ft-form input[type="email"]::placeholder {
    color: #6e7185;
}

.rvx-ft-form__field:focus-within {
    border-color: var(--rvx-text);
}

.rvx-ft-form button[type="submit"] {
    flex: none;
    border: 0;
    background: var(--rvx-btn);
    color: #fff;
    padding: 0 24px;
    font: inherit;
    font-size: 14px;
    letter-spacing: .3px;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity .2s;
}

.rvx-ft-form button[type="submit"]:hover {
    opacity: .85;
}

.rvx-ft-form button[disabled] {
    opacity: .6;
    cursor: wait;
}

.rvx-ft-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.rvx-ft-form__msg {
    min-height: 0;
    margin-top: 8px;
    padding-left: 16px;
    font-size: 12.5px;
}

.rvx-ft-form__msg:empty {
    display: none;
}

.rvx-ft-form__msg.is-ok {
    color: #0f7a7a;
}

.rvx-ft-form__msg.is-error {
    color: #b3261e;
}

/* ---------- Redes ---------- */
.rvx-ft-social {
    display: flex;
    gap: 14px;
    padding: 14px 0 6px;
}

.rvx-ft-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--rvx-social);
    color: #fff;
    transition: transform .2s, background .2s;
}

.rvx-ft-social a:hover {
    background: var(--rvx-text);
    transform: translateY(-2px);
}

.rvx-ft-social svg {
    width: 16px;
    height: 16px;
}

/* ---------- Pagos + legales ---------- */
.rvx-footer__sub {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.rvx-ft-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px 1px;
}

.rvx-ft-pay li {
    display: inline-flex;
    align-items: center;
}

.rvx-ft-pay img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* multiply = el blanco del SVG desaparece sobre el gris */
.rvx-ft-pay__wompi img {
    height: 20px;
    max-width: 110px;
}

.rvx-ft-pay span {
    font-size: 12px;
    font-weight: 700;
    color: #555;
}

.rvx-ft-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-size: 13px;
    color: var(--rvx-muted);
}

.rvx-ft-legal a {
    color: var(--rvx-muted);
}

.rvx-ft-legal a:hover {
    text-decoration: underline;
}

/* ---------- Barra negra ---------- */
.rvx-footer__bar {
    background: var(--rvx-bar);
    color: var(--rvx-bar-text);
    font-size: 11px;
    line-height: 1.6;
    padding: 18px clamp(18px, 3vw, 48px);
    text-align: center;
}

.rvx-footer__bar-inner {
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* =========================================================
     Móvil: acordeones con separadores
     ========================================================= */
@media (max-width: 767px) {
    .rvx-footer__main {
        padding: 8px 18px 22px;
    }

    .rvx-ft-logo img {
        max-width: 190px;
    }

    .rvx-ft-news__lead {
        max-width: none;
        font-size: 16px;
        margin-bottom: 26px;
    }

    .rvx-ft-social {
        justify-content: flex-start;
    }

    .rvx-ft-legal {
        gap: 6px 18px;
        font-size: 12px;
    }
}

/* Pagos: todos en una sola fila en móvil */
.rvx-ft-pay {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
}

.rvx-ft-pay li {
    min-width: 0;
    flex: 0 1 auto;
}

.rvx-ft-pay img {
    height: clamp(18px, 7vw, 45px);
    /* se achica según el ancho de la pantalla */
    max-width: 100%;
    width: auto;
}

.rvx-ft-pay__wompi img {
    height: clamp(14px, 5vw, 20px);
}

/* =========================================================
     Escritorio: 5 columnas, paneles siempre abiertos
     ========================================================= */
@media (min-width: 768px) {
    .rvx-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr;
        grid-template-areas:
            "logo   c1 c2 c3 c4"
            "news   c1 c2 c3 c4"
            "social c1 c2 c3 c4";
        grid-template-rows: auto auto 1fr;
        column-gap: 32px;
    }

    .rvx-ft-logo {
        grid-area: logo;
        justify-content: flex-start;
        padding: 8px 0 14px;
    }

    .rvx-ft-logo img {
        max-width: 170px;
        max-height: 60px;
    }

    .rvx-ft-news {
        grid-area: news;
        padding-top: 0;
    }

    .rvx-ft-social {
        grid-area: social;
    }

    .rvx-ft-col--1 {
        grid-area: c1;
    }

    .rvx-ft-col--2 {
        grid-area: c2;
    }

    .rvx-ft-col--3 {
        grid-area: c3;
    }

    .rvx-ft-col--4 {
        grid-area: c4;
    }

    .rvx-ft-panel__inner {
        overflow: visible;
    }

    .rvx-ft-toggle {
        pointer-events: none;
        cursor: default;
        padding: 10px 0 14px;
        font-size: 15px;
    }

    .rvx-ft-toggle svg {
        display: none;
    }

    .rvx-ft-panel {
        grid-template-rows: 1fr !important;
    }

    .rvx-ft-links,
    .rvx-ft-contact,
    .rvx-ft-schedule {
        padding-left: 0;
        padding-right: 0;
    }

    .rvx-ft-schedule {
        padding-top: 14px;
    }

    .rvx-footer__sub {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 26px;
    }

    .rvx-footer__bar {
        text-align: left;
    }

    .rvx-footer__bar-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .rvx-footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo   logo"
            "news   news"
            "social social"
            "c1 c2"
            "c3 c4";
        grid-template-rows: auto;
        row-gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .rvx-ft-panel,
    .rvx-ft-toggle svg,
    .rvx-ft-social a {
        transition: none;
    }
}