* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Estilos generales */
body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    z-index: 1000;
}


/* Logo en el header */
.header-logo {
    width: 100px;
    height: auto;
}

/* Menú de navegación */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f9d002;
}


/* Secciones generales */
section {
    padding: 100px 20px;
    text-align: center;
    font-size: 1.2rem;
}

/* Estilo de los títulos */
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center; /* Centrar títulos */
    color: white; /* Asegurar que sean blancos */
}

/* Diferentes colores de fondo (opcional) */
#quienes-somos, #clientes, #servicios{
    background-color: black; /* Fondo negro */
    color: rgb(0, 0, 0); /* Texto blanco */
    border-bottom: 1px solid #f9d002; /* Línea sutil entre secciones */
}


.carousel {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Contenedor de imágenes en movimiento */
.carousel-container {
    display: flex;
    width: 400vw; /* 4 imágenes = 400% del ancho de la pantalla */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100vw;
    height: 100vh;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor del logo y texto (Fijo en pantalla) */
.fixed-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

/* Estilo del logo */
.logo {
    width: auto; /* Tamaño ajustado */
    height: auto;
    margin-bottom: 10px;
}

/* Botones de navegación */
button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Sección Nuestros Clientes */
#clientes {
    background: black;
    text-align: center;
    padding: 50px 0;
}

#clientes h2 {
    font-size: 2rem;
    color: rgb(0, 0, 0);
    margin-bottom: 20px;
}

/* Carrusel de clientes */
.clients-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Contenedor de logos en movimiento */
.clients-track {
    display: flex;
    gap: 30px;
    animation: scrollClients 15s linear infinite;
}

/* Imágenes de los logos */
.clients-track img {
    width: 150px;  /* Tamaño uniforme */
    height: auto;
    object-fit: contain;
    transition: transform 0.3s, filter 0.3s;
}

/* Efecto al pasar el mouse */
.clients-track img:hover {
    filter: grayscale(0%); /* Se muestra a color */
    transform: scale(1.1);
}

/* Animación del carrusel automático */
@keyframes scrollClients {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Sección de Galería */
#galeria {
    background: black;
    text-align: center;
    padding: 50px 20px;
    border-bottom: 1px solid #f9d002;
}

#galeria h2 {
    font-size: 2rem;
    color: rgb(0, 0, 0);
    margin-bottom: 20px;
}

/* Contenedor de imágenes */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 2 columnas */
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Imágenes de la galería */
.gallery-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* Efecto al pasar el mouse */
.gallery-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Sección de galería con imágenes más pequeñas y del mismo tamaño */
.full-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 50px;
    text-align: center;
    margin-top: 50px; /* Espacio debajo del header */
}

/* Tamaño uniforme para todas las imágenes */
.full-gallery img {
    width: 200px;  /* Ajusta el tamaño según prefieras */
    height: 150px; /* Mantiene proporción */
    object-fit: cover; /* Recorta la imagen si es necesario */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

/* Modal para ampliar imagen */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* Imagen dentro del modal */
.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    animation: zoomIn 0.3s ease-in-out;
}

/* Animación de zoom */
@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* capacitaciones*/
/* Asegurar que el título se vea bien */
body.capacitaciones-page .capacitaciones-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
    color: #ffd900;
}

/* 📌 Estilos para la galería de capacitaciones */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    width: calc(33.33% - 15px); /* 3 imágenes por fila */
    max-width: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 400px;
    height: 400px;
    display: block;
    border-radius: 8px;
}

/* 📌 Título dentro de la imagen */
.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
}

/* 📌 Responsive */
@media (max-width: 900px) {
    .gallery-item {
        width: calc(50% - 15px); /* 2 imágenes por fila */
    }
}

@media (max-width: 600px) {
    .gallery-item {
        width: 100%; /* 1 imagen por fila */
    }
}

/* 📌 MODAL SOLO PARA CAPACITACIONES */
.capacitaciones-page .modal {
    display: none; /* Se asegura que use flexbox */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 📌 Centra el modal */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 📌 Ajustes para centrar la imagen y el contenido */
.capacitaciones-page .modal-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    max-width: 500px; /* 📌 Ajuste para que no se vea tan ancho */
    width: 90%;
    text-align: center;
    position: relative;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
a{
    color: #f9d002;
  }
/* 📌 Se centra la imagen dentro del modal */
.capacitaciones-page .modal img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* quienes somos*/
/* 🔹 Secciones de Quiénes Somos, Misión, Visión y Certificaciones */
.info-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupar toda la altura de la pantalla */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
}

/* 🔹 Mantener las imágenes siempre en pantalla completa */
.info-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7); /* Oscurece un poco para que el texto resalte */
    z-index: -1;
}

/* 🔹 Asignar imágenes a cada sección */
#quienessomos::before {
    background-image: url('img/fullGaleria/3.jpg');
}
#mision::before {
    background-image: url('img/fullGaleria/5.jpg');
}
#vision::before {
    background-image: url('img/fullGaleria/41.jpg');
}
#certificaciones::before {
    background-image: url('img/fullGaleria/45.jpg');
}

/* 🔹 Estilo del overlay con el logo y texto */
.overlay {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* 🔹 Animación al pasar el cursor */
.info-section:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 🔹 Logo sobrepuesto */
.logo-overlay {
    width: 120px;
    margin-bottom: 15px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* 🔹 Logo animado al pasar el cursor */
.info-section:hover .logo-overlay {
    opacity: 1;
    transform: scale(1);
}

/* 📌 Responsive */
@media (max-width: 900px) {
    .info-container {
        flex-direction: column;
        align-items: center;
    }
}

/* contacto index */
/* 🔹 Botones de navegación */
.section-buttons {
    text-align: center;
    margin: 20px 0;
}

.section-buttons button {
    background-color: #f9d002;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s;
}

.section-buttons button:hover {
    background-color: #000000;
}

/* 🔹 Redes sociales en contacto */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}

body.index-page section.contacto-index {
    background-color: black !important;
    color: white !important;
  }

body.index-page section.contacto-index h2 {
    color: white !important;
  }
  body.index-page section.contacto-index {
    padding: 10px 0; /* reduce el espacio vertical */
  }
  
/*footer*/
footer {
    text-align: center;
    background-color: #151515; /* Color de fondo */
    color: white; /* Color del texto */
    padding: 10px 0; /* Espaciado arriba y abajo */
    font-size: 14px;
    position: relative;
    width: 100%;
}

/* botones */
/* 🔹 Estilos para el botón "Más información" */
.btn-mas-info {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    background-color:  #f9d002;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 🔹 Efecto hover */
.btn-mas-info:hover {
    background-color:  #fcde4a;
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
/* whatsapp*/
.whatsapp {
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:30px;
    z-index:100;
  }
  
  .whatsapp-icon {
    margin-top:13px;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: black;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-top: 1px solid #444;
    }

    nav.active {
        display: flex;
    }
}
/*maquinaria*/
body.maquinaria-page {
    background-color: white;
    color: #000;
    font-family: Arial, sans-serif;
  }
  
  .maquinaria-section {
    display: flex;
    align-items: center;
    padding: 50px 5%;
    border-bottom: 1px solid #eee;
  }
  
  .maquinaria-section.reverse {
    flex-direction: row-reverse;
  }
  
  .maquinaria-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 5px;
  }
  
  .maquinaria-text {
    flex: 1;
    padding: 0 30px;
    text-align:start;
  }
  
  .maquinaria-text h2.highlight {
    color: #ffc800;
    font-size: 30px;
    margin-bottom: 15px;
  }
  
  .maquinaria-text p {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .maquinaria-text ul {
    list-style-type: disc;
    padding-left: 20px;
  }
  
  @media (max-width: 768px) {
    .maquinaria-section,
    .maquinaria-section.reverse {
      flex-direction: column;
      text-align: center;
    }
  
    .maquinaria-text {
      padding: 20px 0;
    }
  }

  footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
  }
  
