.header {
    background-color: var(--c2);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.txt-logo {
    color: var(--c1);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--c1);
    cursor: pointer;
    padding:5px 20px;
    border-radius:var(--rad);
}

.nav-item:hover {
    color: var(--c5);
    text-shadow: 0px 0px 1px goldenrod;
    background:var(--c3);
}





/* Menu toggle button styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    position: relative;
    z-index: 10;
}

.icon,
.icon::before,
.icon::after {
    content: '';
    display: block;
    background-color: var(--c1);
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.icon {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.icon::before {
    top: -8px;
}

.icon::after {
    top: 8px;
}

/* Active state: turn into an "X" */
.menu-toggle.active .icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.menu-toggle.active .icon {
    background-color: transparent;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: start;
        gap: 0.8rem;
        position: fixed;
        top: 0;
        left: -100%;
        background-color: var(--c2);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 5rem 2rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1001; /* Por encima del overlay */
    }

    .nav-list.active {
        left: 0; 
    }
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .txt-logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .nav-item {
        font-size: 0.9rem;
    }
    
    .txt-logo {
        font-size: 1.2rem;
    }
}












/* footer */
.footer {
    background: linear-gradient(to top, var(--c2), var(--c3), var(--c2));
    color: var(--c1);
    padding: 2.5rem 0 0;
    box-shadow: var(--s2);
    width: 100%;
    overflow: hidden;
    margin-top:50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--c7);
    border-bottom: 2px solid var(--c5);
    padding-bottom: 0.5rem;
    display: inline-block;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--c1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--c1);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.3rem 0;
    display: inline-block;
    position: relative;
}

.footer-links a:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--c5);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--c5);
    transform: translateX(5px);
}

.footer-links a:hover:before {
    width: 100%;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.8rem;
    color: var(--c5);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--c6);
    border-radius: var(--rad);
    color: var(--c4);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--s);
}

.social-icon:hover {
    background-color: var(--c5);
    transform: translateY(-5px);
    box-shadow: var(--s2);
}

.footer-bottom {
    width: 100%;
    padding: 1.2rem 0;
    text-align: center;
    color: var(--c4);
    font-size: 0.85rem;
    background-color: var(--c1);
    margin-top: 1rem;
}
.footer-bottom a {
    color: var(--c5);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: var(--c2);
    text-decoration: underline;
}
.footer-section:first-child {
    flex: 1.5;
}

.footer-section:last-child {
    flex: 1;
}

.btn-ini{
    padding:3px 35px;
    display:flex;
    margin:auto;
    font-size:1rem;
    border:1px solid var(--c5);
    border-radius:12px;
    background: var(--c4);
    color:var(--c5);
    box-shadow: var(--s);
    opacity:0.8;
    transition: all 0.3s ease;
}
.btn-ini:hover{
    opacity: 1;
    box-shadow: var(--s2);
    background-color: var(--c1);
    color: var(--c5);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .footer-section {
        min-width: 100%;
        text-align: center;
        padding: 0;
        margin-bottom: 2.5rem;
    }
    
    .social-icons, .contact-info li {
        justify-content: center;
    }
    
    .footer-section:first-child {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}