/* Estilo general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100vw;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

/* Fondo principal */
.background {
    background-image: url('../IMG/Fondos/HOME.png'); /* Ruta de la imagen de fondo */
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Cabecera */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 20px;
    margin: 20px 0;
}

.title {
    position: relative;
    top: 40px;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.logo-container img {
    width: 150px;
    height: auto;
    max-width: 100%;
}

/* Barra de navegación */
.navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.nav-item {
    text-align: center;
}

.icon-container {
    margin-bottom: 10px;
}

.icon-container img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    max-width: 100%;
}

.link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.link:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    color: black;
}

/* Footer */
.footer {
    background-color: #1f075f;
    padding: 20px;
    text-align: center;
}

/* Carrusel */
.carousel-title {
    margin-top: 20px;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.carousel-container {
    margin: 20px auto;
    max-width: 75%;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    scroll-behavior: smooth;
    align-items: center;
    flex-wrap: nowrap;
}

.carousel-logos {
    display: flex;
    gap: 15px;
}

.carousel-logos img {
    max-height: 40px;
    width: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
}

.carousel-logos img:hover {
    transform: scale(1.1);
}

/* Barra de desplazamiento personalizada */
.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Media Queries */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .logo-container img {
        width: 100px;
    }

    .navbar {
        gap: 10px;
    }

    .icon-container img {
        width: 100px;
    }

    .link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .carousel-logos img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .icon-container img {
        width: 100px;
    }

    .link {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-logos img {
        width: 70px;
    }
}

/* Botón de WhatsApp */
.whatsapp-bubble {
    position: fixed;
    bottom: 130px;
    left: 45px;
    width: 70px;
    height: 70px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.whatsapp-bubble img {
    width: 50px;
    height: 50px;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Aviso de privacidad */
.aviso-privacidad {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
}

.aviso-privacidad a {
    text-decoration: underline;
    color: #ffffff;
    cursor: pointer;
}

.aviso-privacidad a:hover {
    color: #007BFF;
}
