/* Footer styles — ported from Footer_c.vue scoped styles */

section#footer {
    border-top: 2px solid var(--rava-blue-01) !important;
}

section#footer hr {
    border-color: var(--rava-blue-01);
}

section#footer [data-src] {
    min-width: 20px;
}

/* ── Collapsible (mobile accordion) ── */

.collapsible-footer {
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0), 0 3px 1px -2px rgba(0,0,0,0), 0 1px 5px 0 rgba(0,0,0,0);
    border: 0;
    padding-bottom: 20px;
}

.collapsible-footer > li {
    margin-bottom: 10px;
}

.collapsible-footer .collapsible-body,
.collapsible-footer .collapsible-header {
    border-bottom: 0;
    padding: 0;
}

.collapsible-footer .collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--rava-blue-light);
    font-weight: bold;
    font-size: 16px;
}

.collapsible-footer .collapsible-header .material-icons {
    margin: 0;
}

.collapsible-footer .collapsible-body {
    margin-top: 5px;
}

.collapsible-footer .collapsible-body li {
    margin: 5px 0;
}

.collapsible-footer .collapsible-body a {
    color: var(--text-muted);
}

.collapsible-footer > li .down {
    display: none;
}

.collapsible-footer > li.active .down {
    display: inline-block;
}

.collapsible-footer > li.active .rigth {
    display: none;
}

.collapsible-footer,
.rava-info-wrapper {
    margin: 0 auto !important;
}

/* ── Links wrapper ── */

.links-wrapper ul,
.links-wrapper p {
    margin: 0;
    padding: 0;
}

/* ── Newsletter input wrapper ── */

.input-wrapper p {
    margin: 0;
    padding: 0;
    font-weight: bold;
    color: var(--rava-blue-light);
    font-size: 18px;
}

.input-wrapper > div {
    border: 1px solid #ddd;
    margin: 10px 0 15px 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
}

.input-wrapper > div #newsletter-footer {
    margin: 0;
    border-bottom: 0px solid transparent !important;
    box-shadow: 0 0px 0 0 transparent !important;
    font-size: 14px;
    height: 40px;
}

.input-wrapper > div .send-icon {
    margin-left: 5px;
    width: 20px;
    height: 20px;
    background-image: url("/img/rava/spinner-btn.svg") !important;
    background-position: center !important;
    background-size: 0;
    background-repeat: no-repeat !important;
}

.input-wrapper > div .material-icons {
    font-size: 20px;
    color: var(--rava-blue-light);
    cursor: pointer;
}

.input-wrapper > div .send-icon.loading {
    background-size: 25px;
}

.input-wrapper > div .send-icon.loading .material-icons {
    display: none;
}

/* ── Address ── */

.direccion-wrapper {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Data izq (hidden by default, shown on desktop) ── */

.data-izq,
.data-izq .socios-wrapper {
    display: none;
}

/* ── Social links ── */

.social-wrapper a {
    font-size: 30px;
    color: var(--rava-blue-light);
}

.social-wrapper a:not(:last-child) {
    margin-right: 23px;
}

.social_ img {
    border-radius: 0 !important;
    filter: invert(31%) sepia(73%) saturate(669%) hue-rotate(168deg) brightness(99%) contrast(95%);
}

.social_ img:hover {
    filter: invert(46%) sepia(78%) saturate(394%) hue-rotate(360deg) brightness(103%) contrast(92%) !important;
}

/* ── Logo ── */

.logo-wrapper {
    text-align: center;
}

.logo-wrapper img {
    width: 210px;
}

/* ── Agente info ── */

.agente-wrapper {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Data fiscal ── */

.data-fiscal-wrapper {
    display: inline-flex;
}

.data-fiscal-wrapper p {
    margin-left: 5px;
}

/* ── Contacto ── */

.contacto-wrapper {
    margin: 10px 0;
}

/* ── Socios ── */

.socio-img {
    height: 40px;
}

.socios-wrapper {
    text-align: center;
    margin-top: 50px;
}

.socios-wrapper p {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-family: Nunito, sans-serif;
    margin: 0;
    margin-top: 5px;
}

div.socio {
    width: 144px;
    height: 107px;
}

/* ── Dark mode ── */

.dark .title,
.dark .input-wrapper p,
.input-wrapper > div .material-icons,
.dark .collapsible-footer .collapsible-header {
    color: var(--dark-mode-blue) !important;
    background: transparent;
}

.dark .direccion-wrapper,
.dark .collapsible-footer .collapsible-body a {
    color: var(--lightgray);
}

/* ── Responsive: <= 655px ── */

@media (max-width: 655px) {
    section#footer {
        padding: 25px 10px !important;
    }
}

/* ── Responsive: >= 656px ── */

@media (min-width: 656px) {
    section#footer {
        padding: 25px !important;
    }
}

/* ── Responsive: <= 767px (mobile) ── */

@media (max-width: 767px) {
    .rava-info-wrapper {
        display: block;
        margin: 30px 0;
        padding: 0;
    }

    .logo-wrapper {
        padding-right: 0;
    }

    .contacto-wrapper {
        margin: 30px 0;
    }

    .socios-wrapper {
        display: block;
        width: 100%;
    }

    .agente-wrapper {
        right: unset;
        margin-bottom: 30px;
    }

    div.socio {
        width: auto;
    }
}

/* ── Responsive: >= 768px (tablet/desktop) ── */

@media screen and (min-width: 768px) {
    section#footer .flex {
        display: flex;
        justify-content: space-between;
    }

    .collapsible-footer {
        display: none;
    }

    .rava-info-wrapper {
        margin-bottom: 20px;
        width: 40%;
    }

    .data-izq {
        display: block;
        width: 60%;
        padding-right: 15px;
    }

    .links-wrapper {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .links-wrapper > div {
        width: 32%;
    }

    .links-wrapper .sections {
        margin-bottom: 15px;
    }

    .links-wrapper .sections .title {
        font-weight: bold;
        font-size: 16px;
        color: var(--rava-blue-light);
    }

    .links-wrapper .sections li {
        margin: 5px 0;
    }

    .links-wrapper .sections a {
        color: var(--text-muted);
    }

    .links-wrapper .sections a:hover {
        color: var(--rava-blue-light);
    }

    .socios-wrapper {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    div.socio {
        width: 144px;
    }

    .dark .links-wrapper .sections a {
        color: var(--lightgray);
    }

    .dark .links-wrapper .sections a:hover {
        color: var(--dark-mode-blue);
    }
}

/* ── Responsive: >= 992px (large desktop) ── */

@media screen and (min-width: 992px) {
    section#footer {
        padding: 20px !important;
    }

    section#footer > .socios-wrapper {
        display: none;
    }

    .rava-info-wrapper {
        width: 30%;
    }

    .data-izq {
        width: 70%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .data-izq .socios-wrapper {
        display: flex;
    }

    .socio-img {
        height: 35px;
    }

    .socios-wrapper {
        justify-content: space-between;
    }

    div.socio {
        width: 105px;
        height: 89px;
    }
}

/* ── Responsive: >= 1200px (extra large) ── */

@media screen and (min-width: 1200px) {
    section#footer {
        padding: 40px 50px !important;
    }

    section#footer .flex {
        max-width: 1400px;
        margin: 0 auto;
    }

    .rava-info-wrapper {
        padding-left: 10px;
    }

    .socio-img {
        height: 40px;
    }

    .input-wrapper p,
    .links-wrapper .sections .title {
        font-size: 20px;
    }
}
