.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.hamburger span {
    height: 4px;
    width: 28px;
    background: #4e2897;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.4s;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {

    #icon-info, .top-bar {
        display: none;
    }

    .hero{
        padding: 15% 0;
    }

    .hero-image {
        width: 100%;
        margin-bottom: 30px;
        padding: 23px 0 0 0 ;
    }
    
    .img-nosotros{
        width: 100%;
        height: 300px;
    }

    .hero-content,
    .nosotros-content,
    .por-que-content {
        flex-direction: column;
    }

    .hero-text,
    .hero-image,
    .nosotros-text,
    .nosotros-image,
    .por-que-text,
    .por-que-timetable {
        width: 100%;
        margin-bottom: 30px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;

    }

    .tab-btn {
        min-width: 120px;
        flex: 1 0 auto;
        text-align: center;
        padding: 10px 8px;
        font-size: 15px;
    }

    .tab-pane p {
        text-align: left;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 40px 0;
    }

    .social-list {
        display: grid;
        grid-template-columns: repeat(2, 90px);
        grid-template-rows: repeat(2, 90px);
        gap: 18px;
        justify-content: center;
        align-items: center;
        position: static;
        top: auto;
        left: auto;
        transform: none;
    }

    .social-list li {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .social-list li a {
        width: 90px;
        height: 90px;
        margin: 0;
    }

    .social-list .icon {
        font-size: 2rem;
        line-height: 90px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links,
    .btn-agenda {
        position: fixed;
        top: 0;
        right: -100vw;
        flex-direction: column;
        background: #e2e2e2;
        width: 100vw;
        height: 64%;
        padding-top: 50px;
        gap: 32px;
        align-items: center;
        transition: right 0.3s;
        z-index: 1000;
        display: flex;
    }

    .nav-links.active,
    .btn-agenda.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        color: #4e2897;
        font-weight: bold;
        text-decoration: none;
        transition: color 0.2s;
    }

    nav{
        top: 0;
        padding: 10px 20px;
        height: auto;
        transform: none !important;
        transition: none;
    }

}