*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header{
    width: 100%;
        overflow: hidden;
        
}

header .banner{
    width: 100%;
    
    
}
header .banner img{
    width: 100%;
    height: 100%;
}

.imgBaner2{
    display: none;
}
/* contenido / categorias */


section .category{
    display: none;
    cursor: pointer;
    color: #f2f2f2;
    font-size: 24px;
}


section{
    padding: 30px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    margin: 0;
    margin-top: -10px;
   background-color: #f1f1f1;
    background-size: cover;
}

section .menuGaleria{
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
section .menuGaleria button{
    border: none;
    width: 200px;
    margin: 10px;
    border-radius: 25px;
    cursor: pointer;
    padding: 15px 0;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(11, 13, 34, 0.4);
    background-color: #728dd6;
    color: #f0f0f0;
    transition: background-color 0.3s, transform 0.3s;
}
.categoria:hover {
    background-color: #6b51c2;
    transform: scale(1.05)
  /* Color en hover */
}

.categoria-activa {
    background-color: #1c1825 !important; /* Color cuando está activa */
    font-weight: bold;
    color: #f0f0f0;
    
}
section .menuGaleria button .categoria{
   
    background-color: #d3d7d8; /* Color por defecto */
    transition: background-color 0.3s;
    color: #5e5c5c;
  
}



/* estylos de las categorias */
section .contenidoGaleria{
    width: 100%;
    margin: 0 auto;
    padding: 5px;
    border-radius: 10px;
    margin-top: 20px;
    
}

/* Categorías / Contenedores de Imágenes */
/* Categorías / Contenedores de Imágenes */
.categorys {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px; /* Espacio entre tarjetas */
}

.maquinas {
    background-color: #ffffff; /* Fondo blanco para las tarjetas */
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Para que la imagen no sobresalga */
    width: calc(25% - 40px); /* Ajusta el tamaño de las tarjetas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transiciones suaves */
    cursor: pointer; /* Cursor de mano para interactividad */
    max-width: 300px; /* Límite máximo de ancho */
    height: auto; /* Altura ajustable */
}

@media (max-width: 768px) {
    .maquinas {
        width: calc(50% - 20px); /* Dos tarjetas por fila en dispositivos móviles */
    }
}

.maquinas:hover {
    transform: translateY(-10px); /* Efecto de elevación */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Sombra más fuerte en hover */
}

.maquinas img {
    width: 100%;
    height: 200px; /* Altura fija para las imágenes */
    object-fit: cover; /* Ajustar la imagen al contenedor */
    display: block;
    border-bottom: 4px solid #f0f0f5; /* Línea de separación sutil */
}

.maquinas h2 {
    text-align: center;
    font-size: 18px;
    padding: 10px;
    margin: 0;
}

/* Estilos del Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro */
}

.modal-content {
    margin: auto;
    margin-top: 6%;
    display: block;
    width: 80%;
    height: 80%;
    max-width: 700px;
    border-radius: 10px; /* Bordes redondeados */
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
@media(max-width:1400px){
    
    section .menuGaleria{
        width: 80%;
    }
    section .menuGaleria button{
        width: 30%;
        font-size: 1.2em;
        
    }
}
@media(max-width:1000px){
    .maquinas {
        width: 30%;
    }
}
@media(max-width:900px){
    section .menuGaleria{
        width: 90%;
    }
    section .menuGaleria button{
        width: 30%;
        font-size: 1em;
    }
    .maquinas h2 {
        font-size: 1em;
    }
    
}
@media(max-width:800px){
    section .menuGaleria{
        width: 100%;
    }

    
}
@media(max-width:700px){
    .maquinas {
        width: 45%;
    }
}
@media(max-width:650px){
    .imgBaner1{
        display:none;
    }
    .imgBaner2{
        display:block;
    }
}
@media(max-width:600px){
    section{
        padding: 10px;
    }

    section .menuGaleria button{
        width: 30%;
        font-size: 0.8em;
        
    }
    .modal-content {
        margin-top: 30%;
        width: 80%;
        height: 60%;
    }
}
@media(max-width:500px){
   
   
    section .menuGaleria{
        width: 100%;
    }
    .maquinas{
        position: relative;
        width: 46%;
    }
    .maquinas h2{
        display: block;
        position: absolute;
        background-color: #3333339d;
        color: white;
        font-size: 0.8em;
        top: 72%;
        left: 0%;
        width: 100%;
        font-size: 0.8em;

    }
}
@media(max-width:400px){

    
    section .category{
        display: block;
        text-align: center;
        width: 20%;
        color: #333;
        background-color: rgb(217, 232, 245);
        width: 100%;
        border-radius: 5px;
        padding: 5px;
        margin: 0 auto;
        box-shadow: 0 4px 8px rgba(11, 13, 34, 0.151); 
    }

    section .menuGaleria{
        width: 100%;
        display: none; /* Oculto por defecto */
        flex-direction: column; /* Cambio a columna */
        justify-content: center;
        align-items: center;
        border-radius: 10px;
        transition: max-height 0.3s ease-out;
        padding: 0;
    }
    section .menuGaleria button{
        width: 100%;
        font-size: 1.3em;
        margin: 0;
        border-radius: 1px;
        box-shadow: 0 4px 8px rgba(11, 13, 34, 0); 
        border-bottom:solid 1px rgb(171, 171, 201);
    }
  
    .menuGaleria.show{
        display: block;
        position:absolute;
        left: 0%;
        z-index: 1;
        width: 100%;
        background-color: rgb(255, 255, 255);
    }
    .categoria-activa {
        background-color: #b7a2ee; /* Color cuando está activa */
        font-weight: bold;
        color: #ffffff;
    }

    
    .maquinas{
        max-width: 100%;
        width: 100%;
        
    }
    section .contenidoGaleria{
        padding: 0;
    }
    .maquinas h2{
        top: 62%;
        left: 0%;
        width: 100%;
        font-size: 1em;
    }

    .modal-content {
        margin-top: 70%;
        width: 100%;
        height: 40%;
    }
    
}
