.footer {
    scroll-margin-top: var(--navbar-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1.25rem 2rem 1.25rem;
    background: linear-gradient(
        180deg,
        var(--clr-surface) 0%,
        var(--clr-surface-alt) 100%
    );
    border-top: 0.125rem solid var(--clr-border);
    transition: all 0.4s ease;
}

body.dark .footer {
    background: linear-gradient(
        180deg,
        var(--clr-surface-dark) 0%,
        var(--clr-surface-alt-dark) 100%
    );
    border-top-color: var(--clr-border-dark);
}

.footer h4 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-accent);
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

body.dark .footer h4 {
    color: var(--clr-accent-dark);
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 0.1875rem;
    background-color: var(--clr-accent);
    border-radius: 0.125rem;
}

body.dark .footer h4::after {
    background-color: var(--clr-accent-dark);
}

.footer iframe {
    width: 100%;
    max-width: 50rem;
    height: 18.75rem;
    border: 0.125rem solid var(--clr-border);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem var(--clr-shadow-strong);
    transition: all 0.3s ease;
}

body.dark .footer iframe {
    border-color: var(--clr-border-dark);
    box-shadow: 0 0.5rem 1.5rem var(--clr-shadow-strong-dark);
}

.footer iframe:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.75rem 2rem var(--clr-shadow-strong);
}

body.dark .footer iframe:hover {
    box-shadow: 0 0.75rem 2rem var(--clr-shadow-strong-dark);
}

.footer > ul:first-of-type {
    display: flex;
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer > ul:first-of-type li {
    margin: 0;
}

.footer > ul:first-of-type a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--clr-surface);
    color: var(--clr-text);
    border: 0.125rem solid var(--clr-border);
    border-radius: 50%;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.75rem var(--clr-shadow);
}

body.dark .footer > ul:first-of-type a {
    background-color: var(--clr-surface-dark);
    color: var(--clr-text-dark);
    border-color: var(--clr-border-dark);
    box-shadow: 0 0.25rem 0.75rem var(--clr-shadow-dark);
}

.footer > ul:first-of-type a:hover {
    background-color: var(--clr-accent);
    color: var(--clr-bg);
    border-color: var(--clr-accent);
    transform: translateY(-0.375rem) scale(1.1);
    box-shadow: 0 0.625rem 1.25rem var(--clr-shadow-strong);
}

body.dark .footer > ul:first-of-type a:hover {
    background-color: var(--clr-accent-dark);
    color: var(--clr-bg-dark);
    border-color: var(--clr-accent-dark);
    box-shadow: 0 0.625rem 1.25rem var(--clr-shadow-strong-dark);
}

.footer > ul:first-of-type a:active {
    transform: translateY(-0.25rem) scale(1.05);
}

.footer > ul:first-of-type a[aria-label="Facebook"]:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

.footer > ul:first-of-type a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.footer > ul:first-of-type a[aria-label="X/Twitter"]:hover {
    background-color: #000000;
    border-color: #000000;
}

body.dark .footer > ul:first-of-type a[aria-label="X/Twitter"]:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.footer > ul:first-of-type a[aria-label="Tik Tok"]:hover {
    background-color: #000000;
    border-color: #000000;
}

body.dark .footer > ul:first-of-type a[aria-label="Tik Tok"]:hover {
    background-color: #fe2c55;
    border-color: #fe2c55;
}

.footer-a-Direccion {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-text);
    text-decoration: none;
    text-align: center;
    background-color: var(--clr-surface);
    border: 0.125rem solid var(--clr-border);
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem var(--clr-shadow);
    transition: all 0.3s ease;
    max-width: 90%;
}

body.dark .footer-a-Direccion {
    color: var(--clr-text-dark);
    background-color: var(--clr-surface-dark);
    border-color: var(--clr-border-dark);
    box-shadow: 0 0.25rem 0.75rem var(--clr-shadow-dark);
}

.footer-a-Direccion:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem var(--clr-shadow-strong);
}

body.dark .footer-a-Direccion:hover {
    color: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    box-shadow: 0 0.5rem 1rem var(--clr-shadow-strong-dark);
}

.footer > a[href^="tel"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-bg);
    text-decoration: none;
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    border-radius: 0.75rem;
    box-shadow: 0 0.375rem 1rem var(--clr-shadow-strong);
    transition: all 0.3s ease;
}

body.dark .footer > a[href^="tel"] {
    color: var(--clr-bg-dark);
    background: linear-gradient(135deg, var(--clr-accent-dark) 0%, var(--clr-accent-hover-dark) 100%);
    box-shadow: 0 0.375rem 1rem var(--clr-shadow-strong-dark);
}

.footer > a[href^="tel"]::before {
    content: '📞';
    font-size: 1.5rem;
}

.footer > a[href^="tel"]:hover {
    transform: translateY(-0.375rem) scale(1.05);
    box-shadow: 0 0.75rem 1.5rem var(--clr-shadow-strong);
}

body.dark .footer > a[href^="tel"]:hover {
    box-shadow: 0 0.75rem 1.5rem var(--clr-shadow-strong-dark);
}

.footer > a[href^="tel"]:active {
    transform: translateY(-0.125rem) scale(1.02);
}

.footer h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-accent);
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

body.dark .footer h3 {
    color: var(--clr-accent-dark);
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 0.1875rem;
    background-color: var(--clr-accent);
    border-radius: 0.125rem;
}

body.dark .footer h3::after {
    background-color: var(--clr-accent-dark);
}

.footer-ul-horario {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 30rem;
}

.footer-ul-horario li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--clr-surface);
    border: 0.125rem solid var(--clr-border);
    border-left: 0.25rem solid var(--clr-accent);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem var(--clr-shadow);
    transition: all 0.3s ease;
}

body.dark .footer-ul-horario li {
    background-color: var(--clr-surface-dark);
    border-color: var(--clr-border-dark);
    border-left-color: var(--clr-accent-dark);
    box-shadow: 0 0.125rem 0.5rem var(--clr-shadow-dark);
}

.footer-ul-horario li:hover {
    transform: translateX(0.5rem);
    border-left-width: 0.375rem;
    box-shadow: 0 0.375rem 1rem var(--clr-shadow-strong);
}

body.dark .footer-ul-horario li:hover {
    box-shadow: 0 0.375rem 1rem var(--clr-shadow-strong-dark);
}

.footer-ul-horario strong {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 0.25rem;
}

body.dark .footer-ul-horario strong {
    color: var(--clr-text-dark);
}

.footer-ul-horario li {
    font-size: 1rem;
    color: var(--clr-text-muted);
}

body.dark .footer-ul-horario li {
    color: var(--clr-text-muted-dark);
}

.footer > p {
    margin: 2rem 0 0 0;
    padding: 1rem 0 0 0;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    border-top: 0.0625rem solid var(--clr-border);
}

body.dark .footer > p {
    color: var(--clr-text-muted-dark);
    border-top-color: var(--clr-border-dark);
}

@media (min-width: 48rem) {
    .footer {
        padding: 4rem 2rem 2.5rem 2rem;
        gap: 2.5rem;
    }

    .footer h4 {
        font-size: 1.75rem;
    }

    .footer iframe {
        height: 21.875rem;
    }

    .footer > ul:first-of-type {
        gap: 1.25rem;
    }

    .footer > ul:first-of-type a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }

    .footer-a-Direccion {
        font-size: 1.125rem;
        padding: 1.125rem 2rem;
    }

    .footer > a[href^="tel"] {
        font-size: 1.375rem;
        padding: 1.125rem 2.5rem;
    }

    .footer h3 {
        font-size: 1.75rem;
    }

    .footer-ul-horario {
        max-width: 35rem;
    }

    .footer-ul-horario li {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-ul-horario strong {
        margin-bottom: 0;
    }
}

@media (min-width: 64rem) {
    .footer {
        padding: 5rem 3rem 3rem 3rem;
        gap: 3rem;
    }

    .footer h4 {
        font-size: 2rem;
    }

    .footer iframe {
        height: 25rem;
    }

    .footer > ul:first-of-type {
        gap: 1.5rem;
    }

    .footer > ul:first-of-type a {
        width: 4rem;
        height: 4rem;
        font-size: 1.625rem;
    }

    .footer-a-Direccion {
        font-size: 1.25rem;
        padding: 1.25rem 2.5rem;
    }

    .footer > a[href^="tel"] {
        font-size: 1.5rem;
        padding: 1.25rem 3rem;
    }

    .footer h3 {
        font-size: 2rem;
    }

    .footer-ul-horario {
        max-width: 40rem;
    }

    .footer-ul-horario li {
        padding: 1.25rem 2rem;
    }

    .footer-ul-horario strong {
        font-size: 1.25rem;
    }

    .footer-ul-horario li {
        font-size: 1.125rem;
    }

    .footer > p {
        font-size: 1rem;
    }
}

@media (min-width: 90rem) {
    .footer {
        padding: 6rem 4rem 3.5rem 4rem;
        max-width: 120rem;
        margin: 0 auto;
    }

    .footer iframe {
        height: 28.125rem;
    }

    .footer-ul-horario {
        max-width: 45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer iframe:hover,
    .footer > ul:first-of-type a:hover,
    .footer-a-Direccion:hover,
    .footer > a[href^="tel"]:hover,
    .footer-ul-horario li:hover {
        transform: none;
    }
}