/**
 * Radiodent — Footer
 */

.footer {
    background: #ffffff;
    width: 100%;
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
    color: #1D2343;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    box-shadow: 0 -4px 18px rgba(29, 35, 67, 0.1);
}

.footer * {
    box-sizing: border-box;
}

.footer__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 2.75rem);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 900px) {
    .footer__inner {
        grid-template-columns: 1.1fr 3.6fr;
        align-items: center;
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }

    .footer__col--brand {
        align-self: start;
    }

    .footer__content {
        grid-template-columns: 1.35fr 1.35fr 0.9fr;
        align-items: start;
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
}

.footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__col--qr {
    align-items: center;
    text-align: center;
}

/* —— Columna 1: logo + legal —— */
.footer__logo-link {
    display: block;
    line-height: 0;
    margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.footer__logo {
    width: clamp(8.5rem, 14vw, 11rem);
    height: auto;
    display: block;
}

.footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer__legal a,
.footer__legal li {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    line-height: 1.5;
}

.footer__legal a:hover {
    color: #223A8A;
}

/* —— Filas con icono + texto —— */
.footer__info-row {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 1vw, 0.75rem);
    margin-bottom: clamp(0.85rem, 1.5vw, 1.1rem);
}

.footer__info-row:last-child {
    margin-bottom: 0;
}

.footer__info-row--hours {
    align-items: flex-start;
    margin-bottom: 0;
}

.footer__info-row--hours .footer__info-icon {
    margin-top: 0.1rem;
}

.footer__hours-block {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: clamp(0.6rem, 1vw, 0.75rem);
    row-gap: clamp(1.1rem, 1.8vw, 1.5rem);
    width: 100%;
}

.footer__hours-block .footer__info-row--hours {
    display: contents;
}

.footer__hours-block .footer__info-row--hours .footer__info-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.footer__hours-block .footer__info-row--hours .footer__info-text {
    grid-column: 2;
    grid-row: 1;
}

.footer__hours-block .footer__socials {
    grid-column: 2;
    grid-row: 2;
}

.footer__info-icon {
    width: clamp(1.65rem, 2.4vw, 1.85rem);
    height: clamp(1.65rem, 2.4vw, 1.85rem);
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    object-position: center;
}

.footer__info-text {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 500;
    color: #3A3C45;
    line-height: 1.5;
}

.footer__info-text p {
    margin: 0;
}

.footer__info-text a {
    color: #3A3C45;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__info-text a:hover {
    color: #223A8A;
}

.footer__hours-title,
.footer__hours-day {
    color: #1D2343;
    font-weight: 800;
}

.footer__hours-title {
    margin-bottom: 0.35rem;
}

.footer__hours-day {
    margin-top: 0.5rem;
}

.footer__hours-day:first-of-type {
    margin-top: 0;
}

/* —— Redes sociales —— */
.footer__socials {
    display: flex;
    align-items: center;
    gap: clamp(0.45rem, 0.8vw, 0.6rem);
}

.footer__socials a {
    display: block;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__socials a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.footer__socials img {
    width: clamp(2.35rem, 3.2vw, 2.65rem);
    height: clamp(2.35rem, 3.2vw, 2.65rem);
    object-fit: contain;
    object-position: center;
    display: block;
}

/* —— QR + web —— */
.footer__qr {
    position: relative;
    width: clamp(7.5rem, 12vw, 9.5rem);
    aspect-ratio: 1;
    display: block;
    margin-bottom: 1rem;
    isolation: isolate;
    background-color: #ffffff;
}

.footer__qr::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-primary, #1D2343);
    z-index: 0;
}

.footer__qr img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    mix-blend-mode: screen;
}

.footer__web-label {
    margin: 0;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 500;
    color: #6b7280;
    line-height: 1.25;
}

.footer__web-url {
    font-size: clamp(1.02rem, 1.25vw, 1.12rem);
    font-weight: 800;
    color: #1D2343;
    line-height: 1.25;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__web-url:hover {
    color: #223A8A;
}

@media (max-width: 899px) {
    .footer__content {
        justify-items: center;
    }

    .footer__col {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer__col--brand,
    .footer__col--contact,
    .footer__col--hours {
        align-items: center;
    }

    .footer__legal {
        align-items: center;
        text-align: center;
    }

    .footer__info-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 100%;
    }

    .footer__info-row--hours {
        align-items: center;
    }

    .footer__info-row--hours .footer__info-icon {
        margin-top: 0;
    }

    .footer__info-text {
        text-align: center;
    }

    .footer__hours-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .footer__hours-block .footer__info-row--hours {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer__hours-block .footer__info-row--hours .footer__info-icon,
    .footer__hours-block .footer__info-row--hours .footer__info-text {
        grid-column: auto;
        grid-row: auto;
    }

    .footer__hours-block .footer__info-row--hours .footer__info-icon {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer__hours-block .footer__socials {
        grid-column: auto;
        grid-row: auto;
        justify-content: center;
        width: 100%;
    }

    .footer__socials {
        justify-content: center;
    }
}

@media (min-width: 2000px) {
    .footer {
        padding: 3.75rem clamp(4rem, 5vw, 5rem);
    }

    .footer__inner {
        max-width: 1680px;
        gap: 3rem;
    }

    .footer__logo {
        width: 12rem;
    }

    .footer__legal a,
    .footer__legal li,
    .footer__info-text,
    .footer__web-label {
        font-size: 1.2rem;
    }

    .footer__web-url {
        font-size: 1.35rem;
    }

    .footer__info-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .footer__socials img {
        width: 2.75rem;
        height: 2.75rem;
    }

    .footer__qr {
        width: 10.5rem;
    }
}

@media (min-width: 2560px) {
    .footer {
        padding: 4.25rem 6rem;
    }

    .footer__inner {
        max-width: 2100px;
    }
}
