
.whatsapp-bar {
    background-color: var(--main-color); 
    padding: 8px 20px;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1002;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.whatsapp-link {
    background-color: var(--secondary-color);
    padding: 8px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border-radius: 4px;
    transition: var(--transition);
}

.whatsapp-link:hover {
    background-color: #25a8a8;
    transform: var(--transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.whatsapp-link i {
    font-size: 20px;
}

.logo {
    height: 55px;
    transition: var(--transition);
    /*filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    border-radius: 4px;*/
}

.enlace, .euro {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    z-index: 1002;
}

.euro-logo {
    height: 35px;
    transition: var(--transition);
    /*filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    border-radius: 4px;*/
}


nav {
    background: var(--white);
    height: 80px;
    width: 100%;
    position: relative;
    border-bottom: 3px solid var(--main-color);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #333;
    font-size: 16px;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}


nav ul li a:hover, 
nav ul li a.active {
    color: var(--white);
    background-color: var(--main-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: white;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav ul li a.active::after {
    width: 70%;
    background: var(--main-color);
}

/* MENÚ HAMBURGUESA */
.checkbtn {
    padding: 10px;
    font-size: 30px;
    color: var(--main-color);
    cursor: pointer;
    display: none;
    transition: var(--transition);
    z-index: 1002;
}

.checkbtn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
    padding: 10px;
}

#check {
    display: none;
}

@media (max-width: 1100px) {
    nav ul li a {
        font-size: 14px;
        padding: 15px 25px;
        margin: 10px 0;
    }
    nav ul li a:hover {
        background-color: var(--main-color);
        color: var(--white);
    }
}

@media (max-width: 952px) {
    .enlace {
        padding-left: 10px;
    }
}

@media (max-width: 858px) {
    .checkbtn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        flex-direction: column;
        justify-content: center;
        z-index: 1000;
        margin: 0;
    }
    
    nav ul li {
        margin: 20px 0;
    }
    
    nav ul li a {
        font-size: 18px;
        padding: 15px 25px;
        display: inline-block;
    }
    
    nav ul li a::after {
        bottom: 0;
    }
    
    #check:checked ~ ul {
        left: 0;
    }
    
    #check:checked ~ ul li {
        animation: slideIn 0.5s forwards;
        opacity: 0;
    }
    
    @keyframes slideIn {
        from {
            transform: translateX(-30px);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

@media (max-width: 768px) {
    .whatsapp-bar {
        padding: 10px 18px;
        justify-content: space-between;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-link {
        padding: 10px 18px;
    }
    
    .whatsapp-link i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo, .euro-logo {
        height: 40px;
    }
    
    nav {
        padding: 0 10px;
    }
    
    .checkbtn {
        font-size: 25px;
    }
}

footer {
    margin-top: 20px;
    background-color: #0958d899;
    color: white;
    width: 100%;
    position: relative;

    /* CLAVE: asegura que .copyright-bar quede debajo de .footer-info */
    display: flex;
    flex-direction: column;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    padding-bottom: 30px; /* separación visual con la barra inferior */
    box-sizing: border-box;
}

.footer-widht {
    font-size: 14px;
    padding: 0 15px;
}

.footer-widht.link a {
    color: white !important; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    display: inline-block; 
    position: relative; 
}

.footer-widht.link a:hover {
    color: #f0f0f0 !important; 
    transform: translateX(5px); 
}

.footer-widht.link a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-widht.link a:hover::after {
    width: 100%; 
}

.footer-widht.link h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-widht.link h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: white;
}

.footer-info h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.footer-info ul {
    list-style: none;
    padding: 0;
}

.footer-info li {
    margin-bottom: 12px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list i {
    font-size: 1.8rem;
    margin-top: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.social-media ul {
    display: flex;
    gap: 15px; 
    margin-top: 25px;
}

.social-media a {
    color: white;
    font-size: 1.8rem; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.social-media a:hover {
    transform: translateY(-5px) scale(1.3); 
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.copyright-bar {
    width: 100%;
    background-color: #063b6d;
    padding: 15px 0;

    /* opcional pro: garantiza que quede al final del footer */
    margin-top: auto;
}

.copyright-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.separator {
    height: 20px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

.copyright-text {
    color: white;
    margin: 0;
    font-size: 14px;
}

.copyright-icon {
    color: white;
    font-size: 10px;
    transition: all 0.3s;
}

.copyright-icon:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-info {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        padding-bottom: 20px;
    }
    
    .copyright-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        height: 1px;
        width: 80%;
        margin: 10px 0;
    }
}