/* css/header-footer.css */
.header {
    background-color: var(--dark);
    box-shadow: var(--shadow);
    position: absolute;
    margin: auto 0;
    align-items: center;
    width: 80%;
    height: 80px;
    top: 15px;
    z-index: 1000;
    padding: 10px 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    width: 20%;
}

.logo img {
    height: 180px;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 10px;
}

.menu {
    display: flex;
    align-items: center;
    width: 60%; 
    justify-content: center; 
}

.menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 15px;
    position: relative;
}

.menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 10px 0;
    color: white;
    text-decoration: none;
}

.menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.menu a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.cta-button {
    width: 20%; 
    display: flex;
    justify-content: flex-end; 
}

.cta-button a {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.footer {
    background-color: #ffffff;
    color: var(--black);
    padding: 0.2rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 10px;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--dark);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark);
}

.agendaliza {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .menu ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
        z-index: 999;
    }

    .menu ul.active {
        display: flex;
        width: 100%;
    }

    .menu ul.active a {
        color: var(--dark); 
    }

    .menu li {
        margin: 10px;
    }

    .menu {
        width: 100%; 
        justify-content: flex-end; 
    }

    .menu-toggle {
        display: block;
    }

    .cta-button {
        display: none; 
    }

    .logo {
        width: 100%; 
        justify-content: flex-start;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
        margin-bottom: 3rem;
        margin: 20px;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 5px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .header {
        width: 95%;
    }

    .logo img {
        height: 120px; 
    }

    .logo-text {
        font-size: 1.5rem;
    }
}
