.header {
    width: 100%;
    background: rgb(255, 248, 248);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    padding: 0; 
    height: 120px;
}

.header:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25); 
    transform: translateY(-2px); 
}

.nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: rgb(255, 248, 248);
    padding: 10px;
    width: calc(70% + 40px); 
}

.img-nav {
    display: block;
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.img-nav:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.nav-item.dropdown {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    list-style: none;
}

.image1-fondo1 {
    position: fixed; 
    width: 100vw; 
    height: 100vh; 
    object-fit: cover; 
}

.image1-fondo1 {
    top: 0;
    left: 0;
     
}



@media (max-width: 1024px) {
    .nav {
        gap: 1.5rem;
    }
    .img-nav {
        max-height: 80px;
    }

    .img-carmen{
        max-height: 70px;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 1rem;
    }
    .img-nav {
        max-height: 60px;
    }
    .img-carmen{
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 0.5rem;
    }
    .img-nav {
        max-height: 50px;
    }
    .img-carmen{
        max-height: 30px;
    }
}