body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center; /* Centra el texto por defecto */
}

/* Barra superior */
.top-bar {
    background-color: #3498db;
    color: white;
    display: flex;
    flex-direction: column; /* Pone los elementos en columna */
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
}

/* Contacto */
.contact {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Banner */
.banner {
    background-color: white;
    color: black;
    display: flex;
    flex-direction: column; /* Elementos en columna */
    align-items: center; 
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
}

.social-icons i {
    font-size: 24px;
    color: #3498DB;
    cursor: pointer;
    margin-bottom: -100px;
}

/* Centrar el logo */
.banner-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -70px;
}

.logo-img {
    max-height: 250px; /* Ajusta según el diseño */

}


/* Estilos para el header */
header {
    background-color: #3498db;
    padding: 10px;
    display: flex;
    justify-content: center; /* Centra el header */
    align-items: center;
    position: relative;
}

/* Navbar */
.navbar {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center; /* Centra la navbar */
    align-items: center;
    position: relative;
}

/* Menú */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    justify-content: center; /* Asegura que los enlaces estén centrados */
    flex-grow: 1; /* Hace que el menú ocupe el máximo espacio disponible */
}

/* Estilo de los elementos del menú */
.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Botón Hamburguesa */
.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: white;
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #3498db;
        flex-direction: column;
        width: 100%;
        text-align: center;
        border-radius: 5px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        height: 235px;
        /* Oculto por defecto */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        margin-top: 8px;
    }
}



.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
}

.carousel {
    position: relative;
    width: 100%; /* Se adapta al tamaño del contenedor */
    max-width: 1400px; /* Ancho máximo */
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta sin deformar pero puede recortar */
    border-radius: 15px;
    flex-shrink: 0;
    display: none;
}

.carousel-images img.active {
    display: block;
}

/* Responsivo para móviles pequeños */
@media (max-width: 600px) {
    .carousel {
        max-width: 90%;
        height: 250px;
    }

    .carousel-images img {
        height: 250px;
    }
}

/* Responsivo para tablets */
@media (max-width: 840px) {
    .carousel {
        max-width: 90%;
        height: 350px;
    }

    .carousel-images img {
        height: 350px;
    }
}

/* Responsivo para pantallas medianas */
@media (max-width: 1024px) {
    .carousel {
        max-width: 90%;
        height: 350px;
    }

    .carousel-images img {
        height: 350px;
    }
}


/*Servicios*/

.servicios {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.servicios h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.servicios p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.servicios-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.servicio {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.servicio h3 {
    font-size: 20px;
    color: #333;
    margin: 15px 0 10px;
}

.servicio p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.btn-mas-info {
    background: transparent;
    border: 2px solid #333;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-mas-info:hover {
    background: #333;
    color: white;
}



/*Equipo*/
/*✅ Tamaño ideal: 250x250 px (mínimo 200x200 px)
✅ Formato: JPG o PNG
✅ Relación de aspecto: 1:1 (cuadradas)
✅ Calidad: Alta resolución para evitar pixelación*/
.equipo {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.equipo h2 {
    font-size: 32px;
    color: #3498DB;
    margin-bottom: 10px;
}

.equipo p {
    font-size: 18px;
    color: #3498DB;
    margin-bottom: 40px;
}

.equipo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.miembro {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.miembro img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #3498DB;
}

.miembro h3 {
    font-size: 20px;
    color: #333;
    margin: 10px 0 5px;
}

.cargo {
    font-size: 16px;
    color: #a34e1b;
    font-weight: bold;
    margin-bottom: 10px;
}

.miembro p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icons i {

    cursor: pointer;
    transition: color 0.3s ease;
}

.social-icons i:hover {
    color: #333;
}


/*quienes somos*/
.quienes-somos {
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), 
    url('./img/sweeper-1687444_1280.jpg') no-repeat center center/cover;
    height: 50vh;
    display: flex;
    align-items: center;
    color: rgb(255, 255, 255);
    padding: 50px;
}

.quienes-somos-title{
    font-size: 50px;
}

.quienes-somos-desc{
    font-size: 30px;
}

.texto {
    max-width: 50%;
}

.contacto {
    display: inline-flex;  /* Cambié de flex a inline-flex */
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;  /* Reduce el padding para que el borde se ajuste mejor al texto */
    border-radius: 20px;
    border: 2px solid white;
    margin-top: 10px;
    gap: 5px; /* Espacio entre el ícono y el texto */
}

.contacto .icono {
    width: 24px; /* Mantén el tamaño del ícono ajustado */
    height: 24px;
    margin-right: 8px; /* Menos margen para que el borde se ajuste mejor */
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*footer*/
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    background: #3498DB;
    padding: 10px;
    font-size: 14px;
    color: white;
}
.footer div {
    display: flex;
    align-items: center;
    gap: 5px;
}
.stars {
    color: white;
}
.footer i {
    color: white
}
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .footer div {
        margin: 5px 0;
    }
}

.cleaning-section {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
}

.cleaning-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.cleaning-item {
    background: #3498dbc2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    opacity: 0; /* Oculto inicialmente */
    transform: translateY(50px); /* Efecto de desplazamiento */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cleaning-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.cleaning-item i {
    font-size: 40px;
    color: white;
}

.cleaning-item h3 {
    color: white;
    margin-top: 10px;
}

.cleaning-item p {
    color: white;
}

@media (max-width: 768px) {
    .cleaning-container {
        flex-direction: column;
        align-items: center;
    }
}


/* Contenedor principal */
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    width: 90%;
    margin: 50px auto; /* Centrar horizontalmente */
    padding: 20px;
    background: white;
    box-shadow: 0 4px 12px rgb(52, 152, 219);
    border-radius: 10px;
    border: 1px solid rgb(52, 152, 219);

}

/* Logo */
.logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo_contacto img {
    width: 450px; /* Ajusta según tu logo */
    height: auto;
}

/* Formulario */
form {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
}

.titulo_contacto {
    color: rgb(52, 152, 219);
    text-align: left;
    width: 100%;
    font-size: 45px;
}

label {
    font-weight: bold;
    color: rgb(52, 152, 219);
    font-size: 20px;
    
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgb(52, 152, 219);
    border-radius: 5px;
    box-shadow: 0 0px 4px rgb(52, 152, 219);

}

button {
    padding: 10px;
    background-color: rgb(52, 152, 219);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: black;
}

/* Responsivo */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 20px;
    }

    form {
        align-items: center;
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 1000;
}

.whatsapp-button img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.whatsapp-button img:hover {
    transform: scale(1.1);
}
