nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 7rem;
    border-bottom: 1px solid #eaeaea;
}

.logo {
    width: 150px;
    height: auto;
}

.nav-links ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 5vh;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #333333;
    font-family: 'arial', sans-serif;
    font-weight: 700;
    padding: 8px 12px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #a196c0;
    transition: width 0.3s ease;
}

.nav-links a:not(#boton-cita-header):hover::after {
    width: 100%;
}

#boton-cita-header {
    background-color: #8978b9;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.8rem;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

#boton-cita-header:hover {
    background-color: #53427e;
}

.footer {
    background-color: #8978b9;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem 2rem;
    margin-top: auto;
}

.lado-izquierdo-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.lado-izquierdo-footer h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #fff;
    border-bottom: 2px solid #009E8C;
    padding-bottom: 0.3rem;
}

.lado-izquierdo-footer p {
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.lado-centro-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-footer {
    width: 140px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.redes-sociales img{
    width: 4vh;
    transition: 0.1s ease;
}

.redes-sociales img:hover{
    transform: scale(1.3);
}

.redes-sociales a{
    text-decoration: none;
}

.lado-centro-footer p {
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.lado-derecho-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lado-derecho-footer h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #fff;
    border-bottom: 2px solid #009E8C;
    padding-bottom: 0.3rem;
}

.lado-derecho-footer a {
    text-decoration: none;
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.lado-derecho-footer a:hover {
    color: #009E8C;
}

.hamburguesa {
    display: none;
}

@media (max-width: 1536px) {
    nav {
        padding: 2rem;
    }
}

@media (max-width: 1100px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links ul {
        gap: 1rem;
    }
}

@media (max-width: 1026px) {
    nav {
        height: auto;
    }
}

@media (min-width: 921px) and (max-width: 1180px) {
    .nav-links a {
        white-space: nowrap;
        font-size: 0.88rem;
    }

    .nav-links ul {
        gap: 0.8rem;
    }

    #boton-cita-header {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .logo img {
        max-width: 130px;
        height: auto;
    }
}

@media (max-width: 920px) {
    .nav-links {
        gap: 0;
        position: fixed;
        left: 50%;
        top: -140%;
        width: 50%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
        z-index: 999;
        border-radius: 10px;
    }

    .nav-links.active {
        top: 30px;
    }

    .nav-links ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        margin: 0;
        gap: 0;
    }

    .nav-links a {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .nav-links li {
        margin: 12px 0;
    }

    .nav-links a,
    #boton-cita-header {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hamburguesa {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .bar {
        height: 3px;
        width: 100%;
        background-color: #897da9;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .hamburguesa.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburguesa.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburguesa.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .lado-izquierdo-footer,
    .lado-derecho-footer {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .logo{
        width: 120px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}