/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor principal */
.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 20px 0;
    text-align: center;
}

/* Alternar colores en las secciones */
section:nth-child(odd) {
    background-color: #000;
}

section:nth-child(even) {
    background-color: #18181B;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    width: 100%;
}

/* Header */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000;
    width: 100%;
}

/* Logo */
header img {
    max-width: 500px;
    height: auto;
    margin-bottom: 30px;
}

/* Botón */
.btn-quote {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    text-align: center;
    margin-top: 20px;
}

.btn-quote:hover {
    background-color: #218838;
}

/* Animación Fade-In */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Sección de servicios */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    justify-content: center;
    padding: 40px;
}

.service {
    background: #000;
    padding: 30px 40px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
    font-size: 1.3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 260px;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

/* Animaciones en los servicios */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animación a las columnas */
.service:nth-child(3n + 1) { 
    animation: fadeInLeft 0.8s ease-out forwards;
}

.service:nth-child(3n + 2) {
    animation: fadeInRight 0.8s ease-out forwards;
}

.service:nth-child(3n) {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Agregar delay progresivo */
.service:nth-child(1) { animation-delay: 0.2s; }
.service:nth-child(2) { animation-delay: 0.4s; }
.service:nth-child(3) { animation-delay: 0.6s; }
.service:nth-child(4) { animation-delay: 0.8s; }
.service:nth-child(5) { animation-delay: 1s; }
.service:nth-child(6) { animation-delay: 1.2s; }
.service:nth-child(7) { animation-delay: 1.4s; }

/* Galería de trabajos */
.work-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.work-gallery img {
    width: 273px;
    height: 260px;
    border-radius: 15px;
    object-fit: cover;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Animación escalonada en la galería */
.work-gallery img:nth-child(1) { transition-delay: 0.2s; }
.work-gallery img:nth-child(2) { transition-delay: 0.4s; }
.work-gallery img:nth-child(3) { transition-delay: 0.6s; }
.work-gallery img:nth-child(4) { transition-delay: 0.8s; }
.work-gallery img:nth-child(5) { transition-delay: 1s; }

/* Sección Por qué elegirnos */
.why-choose-us {
    text-align: left;
    max-width: 100%;
}

.why-choose-us ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 400px;
    row-gap: 20px;
}

.why-choose-us li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Animación escalonada */
.why-choose-us li:nth-child(1) { transition-delay: 0.2s; }
.why-choose-us li:nth-child(2) { transition-delay: 0.4s; }
.why-choose-us li:nth-child(3) { transition-delay: 0.6s; }
.why-choose-us li:nth-child(4) { transition-delay: 0.8s; }
.why-choose-us li:nth-child(5) { transition-delay: 1s; }
.why-choose-us li:nth-child(6) { transition-delay: 1.2s; }
.why-choose-us li:nth-child(7) { transition-delay: 1.4s; }
.why-choose-us li:nth-child(8) { transition-delay: 1.6s; }

/*seccion de video*/
h2{
    font-size: 1.8rem;
}
.promo-video {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Asegura que el contenedor usa todo el ancho disponible */
    margin: 20px 0;
}

.promo-video video {
    width: 100%;
    max-width: 1200px; /* Aumenta el tamaño máximo si es necesario */
    min-width: 800px; /* Evita que el video sea muy pequeño en pantallas grandes */
    height: auto; /* Mantiene la proporción correcta */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Contacto */
.contacto {
    text-align: center;
    width: 100%;
}

.contact-info p {
    font-size: 1.5rem;
    margin: 15px 0;
}
.icon-maps {
    width: 35px;  /* Ajusta el tamaño del icono */
    height: 35px;
    margin-left: 8px; /* Espaciado entre el texto y el icono */
    vertical-align: middle; /* Alinea el icono con el texto */
    transition: transform 0.2s ease-in-out; /* Efecto al pasar el cursor */
}

.icon-maps:hover {
    transform: scale(1.2); /* Efecto de agrandado al pasar el mouse */
}


/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
}

.whatsapp-float a {
    font-size: 40px;
    text-decoration: none;
}

/* Sección de logos corporativos */
.logos-corporativos {
    display: flex;
    flex-direction: row; /* ✅ Ahora los logos estarán en una sola fila */
    flex-wrap: wrap; /* Permite que los logos se acomoden si el ancho es pequeño */
    justify-content: center; /* Centra los logos horizontalmente */
    align-items: center; /* Centra verticalmente */
    gap: 80px; /* Espacio entre los logos */
    width: 100%;
    padding: 20px 0;
    border-top: 2px solid #333;
}

.logos-corporativos img {
    width: 200px;
    height: auto;
    transition: transform 0.3s;
}

.logos-corporativos img:hover {
    transform: scale(1.2);
}

/* Footer */
footer {
    background: #222;
    text-align: center;
    padding: 30px;
    font-size: 1.5rem;
    width: 100%;
}

/* Redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icons a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.1);
}
/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* 🔥 Asegura que esté por encima de todo */
}

.whatsapp-float a img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.whatsapp-float a img:hover {
    transform: scale(1.1);
}
/* Responsive */
@media (max-width: 1024px) {
    .why-choose-us ul {
        gap: 200px;
    }
}

@media (max-width: 768px) {
    header img {
        max-width: 250px;
    }
    
    .btn-quote {
        font-size: 1em;
        padding: 8px 15px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service {
        font-size: 1.2rem;
        height: auto;
        width: 100%;
        padding: 20px;
    }

    .why-choose-us ul {
        gap: 50px;
    }

    .promo-video video {
        min-width: 100%;
    }

    .logos-corporativos img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    header {
        height: 80vh;
    }

    .work-gallery img {
        max-width: 100%;
    }

    .promo-video video {
        min-width: 100%;
    }

    .why-choose-us ul {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service {
        font-size: 1rem;
        padding: 15px;
    }

    .logos-corporativos {
        gap: 40px;
    }

    .logos-corporativos img {
        width: 120px;
    }

    .contact-info p {
        font-size: 1.2rem;
    }

    footer {
        font-size: 1rem;
    }
}
