/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background-color: #f5f5f5;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

main {
    flex: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #20232a;
    padding: 15px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.logo-container img {
    height: 50px;
}

nav {
    display: flex;
    justify-content: flex-start;
    padding-left: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    left: -80px;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 10px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #61dafb;
}

/* Hero Section con slider de texto */
.hero {
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
}

.video-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto; /* Centra horizontalmente */
    padding: 20px; /* Espacio alrededor del contenido */
    text-align: center; /* Centra el texto */
    z-index: 2;
}


.hero-slider p {
    opacity: 0;
    animation: textSlider 12s infinite;
}

.hero-slider p.active {
    opacity: 1;
}

@keyframes textSlider {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(0); }
    40% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.hero-slider p:nth-child(1) { animation-delay: 0s; }
.hero-slider p:nth-child(2) { animation-delay: 4s; }
.hero-slider p:nth-child(3) { animation-delay: 8s; }

/* Botón principal */
.btn-primary {
    display: inline-block;
    background: #61dafb;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #4fb3d4;
}

/* 🌟 CONTENT CONTAINER actualizado con estilo  */
.content-container {
    background-color: #cac8c8;
    border-radius: 40px 40px 0 0;
    padding: 80px 40px;
    margin-top: -80px;
    box-shadow: 0px -20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    text-align: center;
}

.services-section-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.services-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
}

.services-section-header p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 2rem;
    padding: 2rem;
}

.service-item {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-item i {
    font-size: 2.0rem;
    margin-bottom: 1rem;
    color: #4F46E5; /* Cambia el color si lo prefieres */
}

.service-item h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333333;
}

.service-item p {
    color: #555555;
    font-size: 0.7rem;
    line-height: 1.4;
}

/* Responsivo para pantallas medianas */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
    }
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 columna en pantallas pequeñas */
    }
}


/* 🎨 RESPONSIVE DESIGN */
@media (max-width: 180px) {
    .services-section-header {
        flex-direction: column;
        text-align: center;
    }

    .services-section-header h2 {
        font-size: 2rem;
    }

    .service-item i {
        font-size: 10.5rem;
    }

    .service-item p {
        font-size: 12.5rem;
    }

    .content-container {
        padding: 50px 20px;
    }
}

/* Footer fijo al final de la página */
footer {
    background-color: #333333;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.footer-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.social-media a {
    color: white;
    font-size: 24px;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2);
}

.dropdown {
    position: relative;
}

/* Dropdown mejorado */
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #20232a;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1100;
    padding: 10px 0;
    border-radius: 8px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
}

.dropdown-content li a {
    color: white;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: #333333;
    border-radius: 4px;
}

/* 🔄 Estilos adicionales para contacto.html (actualización de colores formales) */

/* ✉️ Encabezado de Contacto con animación y centrado */
#contacto h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 50px; /* 🆕 Espacio extra sobre el encabezado */
    color: #1f2937; /* Azulino oscuro */
    animation: fadeIn 2s ease-in-out;
}

#contacto p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 35px;
    color: #374151; /* Gris oscuro */
    animation: fadeIn 2.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 💎 Contenedor centrado y moderno con colores formales */



@keyframes shineBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 📱 Mejoras responsive para sección de contacto */
@media (max-width: 768px) {
    #contacto h2 {
        font-size: 2.3rem;
        margin-top: 40px;
    }

    #contacto p {
        font-size: 1rem;
    }

    

    form input, form textarea {
        font-size: 0.9rem;
    }
}


.clients-section {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    overflow: hidden;
    color: white;
}

.clients-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.clients-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.clients-slider, .clients-section h2 {
    position: relative;
    z-index: 2;
}

.clients-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.clients-logos {
    display: flex;
    gap: 4rem;
    animation: slideLeft 40s linear infinite; /* Velocidad reducida a 40s */
}

.clients-logos img {
    width: 200px; /* Más grandes */
    height: auto;
    transition: transform 0.3s ease;
}

.clients-logos img:hover {
    transform: scale(1.2);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Solo se desplaza la mitad gracias al duplicado */
    }
}

/* Responsive */
@media (max-width: 768px) {
    .clients-logos img {
        width: 140px;
    }
}

/* 🌟 NUEVA SECCIÓN: Nosotros */
.nosotros-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.nosotros-section h2 {
    font-size: 2.8rem;
    color: #1a202c;
    margin-bottom: 20px;
    animation: fadeInDown 1.5s ease-in-out;
}

.nosotros-section p {
    max-width: 800px;
    line-height: 1.8;
    color: #4a5568;
    animation: fadeInUp 1.5s ease-in-out;
}

/* Animaciones personalizadas */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards animadas */
.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 50px;
}

.team-card {
    background-color: #f9fafb;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoomIn 0.5s ease-in-out;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}


.team-card h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin: 15px 0 5px;
}



/* 🌈 Animación de entrada */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 💡 Mejoras responsive */
@media (max-width: 768px) {
    .nosotros-section h2 {
        font-size: 2rem;
    }

    .nosotros-section p {
        font-size: 1rem;
    }

    .team-card img {
        height: 200px;
    }
}

/* 🔝 Botón de regreso arriba */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #61dafb;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* 🎬 Animación para mostrar el botón */
.show-button {
    display: block;
    animation: fadeInUp 0.5s ease-in-out;
}

/* 🎥 Video detrás del texto */
.hero-nosotros {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-nosotros video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* 🔙 Coloca el video detrás del texto */
}



/* Animaciones personalizadas */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}



/* 🌈 Animación de entrada */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 💡 Mejoras responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nosotros-section h2 {
        font-size: 2rem;
    }

    .nosotros-section p {
        font-size: 1rem;
    }

    .team-card img {
        height: 200px;
    }

    header {
        padding: 15px 20px;
    }

    nav {
        padding-left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        left: 0;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

