* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #2b2836;
    margin: 0;
}

html{
    overflow-x: hidden;
    overflow-y: scroll;
}

.encabezado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

main {
    margin-top: 10vh;
}

.navlist {
    background-color: #dfbd26;
    height: 5vh;
    box-shadow: 0 0 10px #dfbd26aa;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 2px 2px 10px #dfbd26aa;
}

.navlink {
    font-size: 1.1em;
    font-weight: bolder;
    background-color: transparent;
    border: none;
    color: #2b2836;
    transition: color .3s ease, transform .3s ease;
    cursor: pointer;
}

.navlink:hover {
    color: #2b283699;
    transform: translateY(-3px);
    
}

.navlink:active {
    color: #2b2836;
    transform: translateY(3px);
}

/* Quienes somos  */

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 60vw;
    height: 30vh;
}
.subtitulo {
    color: #dfbd26dd;
    width: 30vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    border: 2px solid #dfbd26dd;
    margin: 60px auto;
    border-radius: 10px;
    box-shadow: 1px 1px 5px #dfbd26dd;
    transition: transform .2s ease, box-shadow .2s ease;
}

.subtitulo:hover {
    box-shadow: none;
    transform: scale(0.99);
}

.quienes-somos {
    color: #2b2836;
    background-color: #dfbd26dd;
    width: 45vw;
    margin: 50px auto;
    font-size: 1.2em;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.quienes-somos:hover {
    box-shadow: 2px 2px 10px #dfbd26dd;
    transform: scale(1.02);
    background-color: #2b2836;
    color: #dfbd26dd;
    border: 2px solid #dfbd26dd;
}

.division {
    width: 100%;
    height: 15px;
    background-color: #dfbd26dd;
    margin: 0;
    box-shadow: 1px 1px 5px #dfbd26dd;
}

.division1 {
    width: 100%;
    height: 50px;
    background-color: #dfbd26dd;
    margin: 0;
    box-shadow: 1px 1px 5px #dfbd26dd;
}

/* Mision Vision y Valores*/

.iconos {
    margin: 100px auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 6%;
}

#mvv {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin: 20px 0 100px 0;
}
.mvv-images {
    transition: transform .2s ease;
}

.mvv-images:hover {
    transform: scale(0.98);
}

h2 {
    margin: 0;
}

.mision,
.valores,
.vision{
    min-height: 45vh;
    width: 15vw;
    text-align: center;
    color: #2b2836;
    background-color: #dfbd26dd;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 50px 30px;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border .2s ease;
}

.mision:hover,
.valores:hover,
.vision:hover {
    box-shadow: 2px 2px 10px #dfbd26dd;
    background-color: transparent;
    color: #dfbd26;
    border: 2px solid #dfbd26;
    transform: scale(1.02);
}

/* Servicios */

.servicios-titulo {
    background: linear-gradient(to right, transparent, #dfbd2611, transparent);
}
.titulos {
    color: #dfbd26;
    text-align: center;
    font-size: 5em;
    margin: 50px 0 ;
}

.subtitulos-servicios {
    font-size: 1.5em;
}

.parrafos-servicios {
    font-size: 1.1em;
    text-align: justify;
    margin: 20px 0;
}

.trabajos-titulo {
    background: linear-gradient(to right, transparent, #dfbd2611, transparent);
}

.torno-portatil {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
}

.torno-portatil-img {
    margin: 10px 0;
    width: 15vw;
    height: 50vh;
    padding: 80px;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
}

.descripcion-torno,
.descripcion-mangueras {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #2b2836;
    background-color: #dfbd26dd;
    padding: 20px 35px;
    border-radius: 10px;
    border: 2px solid transparent;
    width: 50vw;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.video-servicio {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 900px;
    border-radius: 12px;
    background: #2b2836;
    padding: 20px;
}

.video-servicio video,
.video-servicio iframe {
    width: 100%;
    height: 65vh;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
    background: #000;
}

@media (max-width: 900px) {
    .video-servicio {
        width: fit-content;
        max-width: 100vw;
        padding: 10px;
    }
    .video-servicio video,
    .video-servicio iframe {
        height: 50vh;
    }
}

@media (max-width: 600px) {
    .video-servicio {
        width: fit-content;
        padding: 5px;
        margin: 20px auto;
    }
    .video-servicio video,
    .video-servicio iframe {
        height: 40vh;
    }
}

.mangueras-hidraulicas {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.mangueras-hidraulicas-img {
    width: 18vw;
    height: 30vh;
    padding: 20px;
    margin: 50px 0;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
}

.cajon-rompeterrones {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.cajon-alimentador,
.rompeterrones {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 70px;
    height: 60vh;
    width: 50vw;
}

.cajon-alimentador{
    gap: 120px;
}

.cajon-alimentador-img,
.rompeterrones-img {
    width: 40%;
    height: 50%;
    border-radius: 10px;
    padding: 20px;
    margin: 70px 0 0 0;
    border: 2px solid #dfbd26dd;
}

.descripcion-cajon,
.descripcion-rompeterrones {
    text-align: center;
    width: 40%;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.division2 {
    border: 2px solid #dfbd26dd;
    margin: 50px 0;
    height: 80vh;
    box-shadow: 2px 2px 10px #dfbd26dd;
}

.carboyet,
.cortadora {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.carboyet-img {
    width: 15vw;
    height: 35vh;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
}

.descripcion-carboyet,
.descripcion-cortadora {
    text-align: center;
    width: 50vw;
    border-radius: 10px;
    margin: 50px auto;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.descripciones:hover {
    box-shadow: 2px 2px 10px #dfbd26dd;
    background-color: transparent;
    border: 2px solid #dfbd26;
    color: #dfbd26;
    transform: scale(1.02);
}

.images {
    box-shadow: 1px 1px 5px #dfbd26dd;
    transition: transform .2s ease, box-shadow .2s ease;
}

.images:hover {
    box-shadow: none;
    transform: scale(0.99);
}

.tornillo {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.division-carbo {
    margin: 100px 0;
    box-shadow: 2px 2px 10px #dfbd26dd;
}

.tabla-ventilador {
    width: 60vw;
    margin: 40px auto;
    border-collapse: collapse;
    background-color: #2b2836;
    color: #dfbd26;
    font-size: 1.1em;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px #dfbd2622;
}

.tabla-ventilador caption {
    caption-side: top;
    color: #dfbd26;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.tabla-ventilador th,
.tabla-ventilador td {
    border: 2px solid #dfbd26dd;
    padding: 18px 20px;
    text-align: left;
    background-color: #2b2836;
}

.tabla-ventilador th {
    background-color: #dfbd26dd;
    color: #2b2836;
    font-weight: 600;
}

.tabla-ventilador tr:nth-child(even) td {
    background-color: #39354a;
}

.tabla-ventilador tr:hover td {
    background-color: #dfbd2622;
    color: #dfbd26;
    transition: background-color .2s, color .2s;
}

.imagenes-ventilador {
    margin: 100px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.ventilador-img {
    padding: 20px;
    border: 2px solid #dfbd26dd;
    border-radius: 10px;
}

.cortadora-img {
    width: 15vw;
    height: 30vh;
    padding: 20px;
    margin: 100px 0 30px 0;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
}

.valvulas {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin: 100px 0;
    width: 100%;
}

.valvulas-img {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
}

.descripcion-valvulas {
    text-align: center;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.banda-transportadora {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin: 50px auto;
    width: 100%;
}

.banda-transportadora-img {
    width: 15vw;
    height: 20vh;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
}

.descripcion-banda {
    text-align: center;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.acumulador-boquillas {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
}

.acumulador,
.boquillas {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 70px;
    height: 60vh;
    width: 50vw;
}

.acumulador-img,
.boquillas-img {
    width: 30%;
    height: 50%;
    border-radius: 10px;
    padding: 10px;
    margin: 70px 0 0 0;
    border: 2px solid #dfbd26dd;
    background: #2b2836;
}

.descripcion-acumulador,
.descripcion-boquillas {
    text-align: center;
    width: 40%;
    height: auto;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.ventilador-ejes {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
}

.ventilador-movil,
.ejes-portapalet {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 70px;
    height: 60vh;
    width: 50vw;
}

.ventilador-movil-img,
.ejes-portapalet-img {
    width: 30%;
    height: 50%;
    border-radius: 10px;
    padding: 10px;
    margin: 70px 0 0 0;
    border: 2px solid #dfbd26dd;
    background: #2b2836;
}

.descripcion-ventilador-movil,
.descripcion-ejes-portapalet {
    text-align: center;
    width: 40%;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.division3 {
    width: 90%;
    height: 5px;
    background-color: #dfbd26dd;
    margin: 0;
    box-shadow: 2px 2px 10px #dfbd26dd;
}

.piñones {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 50vh;
    margin: 50px auto;
}

.piñones-img {
    width: 10vw;
    height: 17vh;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
}

.descripcion-piñones {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #2b2836;
    background-color: #dfbd26dd;
    padding: 20px 35px;
    border-radius: 10px;
    border: 2px solid transparent;
    width: 50vw;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.espigos-caracoles {
    width: 100vw;
    height: 90vh;
    margin: 80px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
}

.espigos-portapalet,
.caracoles {
    margin: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 70px;
    height: 60vh;
    width: 50vw;
}

.espigos-portapalet-img {
    width: 10%;
    height: 40%;
    border-radius: 10px;
    padding: 10px;
    border: 2px solid #dfbd26dd;
}
.caracoles-img {
    width: 30%;
    height: 50%;
    border-radius: 10px;
    padding: 10px;
    border: 2px solid #dfbd26dd;
}

.descripcion-espigos,
.descripcion-caracoles {
    text-align: center;
    width: 40%;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.maquinaria-amarilla {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 80px 0 100px 0;
}

.imagenes-maquinaria {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 30%;
}

.maquinaria-img1,
.maquinaria-img {
    width: 15%;
    height: 30%;
    border-radius: 10px;
    padding: 10px;
    border: 2px solid #dfbd26dd;
    background: #2b2836;
}
.maquinaria-img{
    height: 100%;
}

.descripcion-maquinaria {
    text-align: center;
    width: 40%;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    margin: 50px 0;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.pasadores {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100vw;
    height: 80vh;
    margin: 100px auto;
}

.imagenes-pasadores {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 30%;
 }

.pasadores-img,
.pasadores-img1 {
    width: 10%;
    height: 30%;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
}

.pasadores-img {
    height: 100%;
}
.descripcion-pasadores {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #2b2836;
    background-color: #dfbd26dd;
    padding: 20px 35px;
    margin: 50px 0;
    border-radius: 10px;
    border: 2px solid transparent;
    width: 50vw;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.contacto-titulo {
    background: linear-gradient(to right, transparent, #dfbd2611, transparent);
}

.contacto-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin: 50px auto;
    width: 100%;
}

.contacto-img {
    width: 15vw;
    height: 30vh;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dfbd26dd;
    background: #2b2836;
}

.descripcion-contacto {
    text-align: center;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
    width: 40vw;
}

.parrafos-servicios a{
    text-decoration: none;
    color: #2b2836;
    font-weight: bold;
}

.parrafos-servicios a:hover {
    color: #dfbd26;
    text-decoration: underline;
}

.footer {
    background-color: #dfbd26ee;
    color: #2b2836ff;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-list {
    list-style: none;
    padding-left: 0;
}

.footer-list a {
    color: #2b2836ff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-list a:hover {
    color: #2b2836aa;
    transform: scale(1.02);
}

section {
    scroll-margin-top: 5vh;
}

/* Responsive Design */
/* Para tablets y móviles */
@media (max-width: 1200px) {
    .logo-img {
        width: 90vw;
        height: 20vh;
    }
    .subtitulo {
        width: 80vw;
        font-size: 1.2em;
    }
    .quienes-somos {
        width: 80vw;
        font-size: 1em;
    }
    .iconos {
        gap: 2vw;
    }
    #mvv {
        flex-direction: column;
        gap: 30px;
    }
    .mision, .valores, .vision {
        width: 80vw;
        min-height: 20vh;
        padding: 30px 10px;
        margin-bottom: 20px;
    }
    .torno-portatil,
    .mangueras-hidraulicas,
    .banda-transportadora {
        flex-direction: column;
        gap: 30px;
    }
    .torno-portatil-img,
    .mangueras-hidraulicas-img,
    .banda-transportadora-img {
        width: 80vw;
        height: 30vh;
        padding: 20px;
    }
    .descripcion-torno,
    .descripcion-mangueras,
    .descripcion-banda {
        width: 90vw;
        padding: 20px 10px;
    }
    .cajon-rompeterrones,
    .acumulador-boquillas,
    .ventilador-ejes,
    .espigos-caracoles {
        flex-direction: column;
        height: auto;
        gap: 30px;
    }
    .cajon-alimentador,
    .rompeterrones,
    .acumulador,
    .boquillas,
    .ventilador-movil,
    .ejes-portapalet,
    .espigos-portapalet,
    .caracoles {
        width: 90vw;
        height: auto;
        gap: 30px;
    }
    .cajon-alimentador-img,
    .rompeterrones-img,
    .acumulador-img,
    .boquillas-img,
    .ventilador-movil-img,
    .ejes-portapalet-img,
    .espigos-portapalet-img,
    .caracoles-img {
        width: 80vw;
        height: 25vh;
        margin: 20px 0 0 0;
        padding: 10px;
    }
    .descripcion-cajon,
    .descripcion-rompeterrones,
    .descripcion-acumulador,
    .descripcion-boquillas,
    .descripcion-ventilador-movil,
    .descripcion-ejes-portapalet,
    .descripcion-espigos,
    .descripcion-caracoles {
        width: 90vw;
        padding: 20px 10px;
    }
    .division2 {
        display: none;
    }
    .carboyet-img,
    .cortadora-img,
    .valvulas-img,
    .piñones-img {
        width: 80vw;
        height: 20vh;
        padding: 10px;
        margin: 20px 0;
    }
    .descripcion-carboyet,
    .descripcion-cortadora,
    .descripcion-valvulas,
    .descripcion-piñones {
        width: 90vw;
        padding: 20px 10px;
        margin: 20px auto;
    }
    .imagenes-ventilador,
    .imagenes-maquinaria,
    .imagenes-pasadores {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        height: auto;
    }
    .maquinaria-img1,
    .maquinaria-img,
    .pasadores-img,
    .pasadores-img1 {
        width: 80vw;
        height: 20vh;
        padding: 10px;
    }
    .descripcion-maquinaria,
    .descripcion-pasadores {
        width: 90vw;
        padding: 20px 10px;
        margin: 20px 0;
    }
    .contacto-info {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin: 20px auto;
    }
    .contacto-img {
        width: 80vw;
        height: 20vh;
        padding: 10px;
    }
    .descripcion-contacto {
        width: 90vw;
        padding: 20px 10px;
    }
    .footer-content {
        padding: 0 5vw;
    }
    .footer-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .titulos {
        font-size: 2.5em;
        margin: 30px 0;
    }
}

@media (max-width: 600px) {
    .logo-img {
        width: 98vw;
        height: 12vh;
    }
    .subtitulo {
        width: 98vw;
        font-size: 1em;
        margin: 30px auto;
    }
    .quienes-somos {
        width: 98vw;
        font-size: 0.95em;
        padding: 10px;
        margin: 20px auto;
    }
    .iconos {
        gap: 1vw;
        margin: 40px auto;
    }
    .mision, .valores, .vision {
        width: 98vw;
        min-height: 10vh;
        padding: 15px 5px;
        margin-bottom: 10px;
        font-size: 1em;
    }
    .titulos {
        font-size: 1.5em;
        margin: 20px 0;
    }
    .subtitulos-servicios {
        font-size: 1.1em;
    }
    .parrafos-servicios {
        font-size: 0.95em;
        margin: 10px 0;
    }
    .division, .division1, .division3 {
        height: 10px;
        margin: 10px 0;
    }
    .footer-content {
        padding: 0 2vw;
    }
}

/* Responsive navbar */
@media (max-width: 900px) {
    .navlist {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 10px;
    }
    .navlink {
        font-size: 1em;
        padding: 8px 16px;
        margin: 5px 0;
        min-width: 140px;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .navlist {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 10px 0;
        gap: 8px;
    }
    .navlink {
        font-size: 1em;
        padding: 10px 0;
        width: 100%;
        min-width: unset;
        border-bottom: 1px solid #2b283622;
        margin: 0;
    }
}

.panel {
    padding-top: 1.5em; /* Espacio extra entre nav y título */
}

@media (max-width: 900px) {
    .panel {
        padding-top: 1em;
    }
}

@media (max-width: 600px) {
    .panel {
        padding-top: 1em;
    }
}

.division,
.division1,
.division3,
.division-carbo {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    left: 0;
    position: relative;
}

.footer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    left: 0;
    position: relative;
    border-radius: 0;
}

/* Mejoras responsive adicionales */
@media (max-width: 900px) {
    img {
        max-width: 100%;
        height: auto;
    }
    .tabla-ventilador table {
        width: 100%;
    }
    .cajon-rompeterrones,
    .acumulador-boquillas,
    .ventilador-ejes,
    .espigos-caracoles {
        height: auto;
    }
}

@media (max-width: 600px) {
    p {
        padding: 0 5vw;
        font-size: 0.9em;
    }
    .division, .division1, .division3 {
        margin: 5px 0;
    }
    .titulos {
        font-size: 1.3em;
    }
}

/* Evitar desbordes en maquinaria amarilla y pasadores */
@media (max-width: 900px) {
    .maquinaria-amarilla,
    .pasadores {
        height: auto; /* Deja que crezca según contenido */
        margin: 40px 0;
        flex-direction: column;
        align-items: center;
    }

    .imagenes-maquinaria,
    .imagenes-pasadores {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .maquinaria-img1,
    .maquinaria-img,
    .pasadores-img,
    .pasadores-img1 {
        width: 80vw; /* Imágenes más grandes y adaptables */
        height: auto;
        padding: 10px;
    }

    .descripcion-maquinaria,
    .descripcion-pasadores {
        width: 90vw;
        margin: 20px 0;
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .maquinaria-img1,
    .maquinaria-img,
    .pasadores-img,
    .pasadores-img1 {
        width: 95vw;
    }
}

/* Evitar desborde en descripción Rompeterrones */
@media (max-width: 900px) {
    .cajon-rompeterrones {
        flex-direction: column;
        height: auto;
        gap: 30px;
        align-items: center;
    }

    .descripcion-rompeterrones {
        width: 90vw;
        padding: 15px;
    }
}

/* Separación para la imagen del Carboyet */
.carboyet-img {
    margin-top: 30px; /* Separación de la división superior */
}

@media (max-width: 900px) {
    .carboyet-img {
        margin-top: 50px; /* Un poco más en móviles */
    }
}

/* Evitar desbordes en cajón alimentador y rompeterrones */
.cajon-rompeterrones {
    height: auto; /* Antes estaba en vh */
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

.cajon-alimentador,
.rompeterrones {
    height: auto; /* Antes estaba en vh */
}

/* Ajustes para pantallas medianas */
@media (max-width: 1200px) {
    .cajon-alimentador-img,
    .rompeterrones-img {
        width: 60%;
        height: auto;
    }
    .descripcion-cajon,
    .descripcion-rompeterrones {
        width: 80%;
    }
}

/* Ajustes para móviles */
@media (max-width: 900px) {
    .cajon-rompeterrones {
        flex-direction: column;
        align-items: center;
    }
    .cajon-alimentador-img,
    .rompeterrones-img {
        width: 90vw;
    }
    .descripcion-cajon,
    .descripcion-rompeterrones {
        width: 90vw;
    }
}

/* Contenedor de cajón alimentador y rompeterrones */
.cajon-rompeterrones {
    display: flex;
    flex-direction: row; /* Por defecto en fila */
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap; /* Permite que baje el contenido si falta espacio */
    margin-bottom: 40px;
}

/* Elementos internos */
.cajon-alimentador,
.rompeterrones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 45%; /* Ocupan casi la mitad cada uno en desktop */
}

/* Imágenes en desktop */
.cajon-alimentador-img,
.rompeterrones-img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #dfbd26dd;
}

/* Texto */
.descripcion-cajon,
.descripcion-rompeterrones {
    text-align: center;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 20px 35px;
    color: #2b2836;
    background-color: #dfbd26dd;
    width: 90%;
}

/* En pantallas pequeñas, pasa a columna */
@media (max-width: 900px) {
    .cajon-rompeterrones {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 30px;
    }
    .cajon-alimentador,
    .rompeterrones {
        width: 90%;
    }
    .cajon-alimentador-img,
    .rompeterrones-img {
        width: 90vw;
    }
}

/* Reducir ancho de imágenes específicas en pantallas pequeñas */
@media (max-width: 900px) {
    .torno-portatil-img,
    .carboyet-img,
    .cortadora-img,
    .espigos-portapalet-img {
        width: 60vw; /* Un poco más estrechas */
        height: auto;
    }
}

@media (max-width: 600px) {
    .torno-portatil-img,
    .carboyet-img,
    .cortadora-img,
    .espigos-portapalet-img {
        width: 70vw; /* En móviles más pequeños un poco más anchas pero controladas */
    }
}

/* Reducir ancho de imágenes específicas en pantallas pequeñas */
@media (max-width: 900px) {
    .torno-portatil-img,
    .carboyet-img,
    .cortadora-img,
    .espigos-portapalet-img,
    .piñones-img {
        width: 60vw; /* Un poco más estrechas */
        height: auto;
    }

    /* Altura reducida para espigos */
    .espigos-portapalet-img {
        max-height: 20vh;
    }
}

@media (max-width: 600px) {
    .torno-portatil-img,
    .carboyet-img,
    .cortadora-img,
    .espigos-portapalet-img,
    .piñones-img {
        width: 70vw; /* En móviles pequeños un poco más anchas */
    }

    /* Altura reducida para espigos */
    .espigos-portapalet-img {
        max-height: 18vh;
    }
}

/* Evitar desborde en descripción de piñones */
@media (max-width: 900px) {
    .descripcion-piñones {
        width: 90vw;
        padding: 15px;
    }
}

/* Imagen de espigos más estrecha */
@media (max-width: 900px) {
    .espigos-portapalet-img {
        width: 50vw; /* Antes 60vw, ahora más estrecha */
        max-height: 20vh;
    }
}

@media (max-width: 600px) {
    .espigos-portapalet-img {
        width: 60vw; /* Más pequeña pero proporcional en móvil */
        max-height: 18vh;
    }
}

@media (max-width: 900px) {
    .piñones {
        height: auto; /* Elimina restricción de altura */
        margin: 30px auto;
    }
    .descripcion-piñones {
        width: 90vw; /* Ocupa casi todo el ancho */
        max-width: 500px; /* Tope en pantallas medianas */
        padding: 15px;
        box-sizing: border-box; /* Para que padding no cause overflow */
        word-wrap: break-word; /* Por si hay palabras largas */
    }
}

@media (max-width: 600px) {
    .descripcion-piñones {
        width: 95vw;
        padding: 12px;
    }
}

/* Centrar acumulador-boquillas, ventilador-ejes y espigos-caracoles en modo columna */
@media (max-width: 900px) {
    .acumulador-boquillas,
    .ventilador-ejes,
    .espigos-caracoles {
        flex-direction: column;
        align-items: center; /* Centrar hijos horizontalmente */
        gap: 30px;
        height: auto; /* Evitar altura fija */
    }

    .acumulador,
    .boquillas,
    .ventilador-movil,
    .ejes-portapalet,
    .espigos-portapalet,
    .caracoles {
        width: 90vw; /* Ocupar casi todo el ancho */
        height: auto;
        align-items: center;
    }

    .acumulador-img,
    .boquillas-img,
    .ventilador-movil-img,
    .ejes-portapalet-img,
    .espigos-portapalet-img,
    .caracoles-img {
        width: 80vw; /* Escalar imágenes */
        height: auto;
        margin: 0 auto;
    }

    .descripcion-acumulador,
    .descripcion-boquillas,
    .descripcion-ventilador-movil,
    .descripcion-ejes-portapalet,
    .descripcion-espigos,
    .descripcion-caracoles {
        width: 90vw;
        text-align: center;
    }
}

/* Ajuste para evitar desbordes en acumulador-boquillas y maquinaria amarilla */
@media (max-width: 1400px) {
    .acumulador-boquillas,
    .maquinaria-amarilla {
        height: auto;
        flex-wrap: wrap; /* Permitir salto de línea si no cabe */
    }

    .acumulador,
    .boquillas {
        width: 45%; /* En escritorio ancho flexible */
    }

    .descripcion-maquinaria {
        width: 80%;
    }

    .imagenes-maquinaria {
        flex-wrap: wrap;
        gap: 20px;
    }

    .imagenes-maquinaria img {
        max-width: 100%;
        height: auto;
    }
}

/* Ajuste extra para móviles y tablets */
@media (max-width: 900px) {
    .acumulador-boquillas,
    .maquinaria-amarilla {
        flex-direction: column;
        align-items: center;
    }

    .acumulador,
    .boquillas {
        width: 90vw;
    }

    .descripcion-maquinaria {
        width: 90vw;
        text-align: center;
    }

    .imagenes-maquinaria img {
        width: 80vw;
    }
}

@media (max-width: 1400px) {
    .descripcion-acumulador {
        width: 80%; /* Más ancho para texto */
        max-width: 600px; /* Tope en pantallas medianas */
        padding: 15px;
        box-sizing: border-box;
        word-wrap: break-word; /* Romper palabras largas */
    }
}
@media (max-width: 900px) {
    .descripcion-acumulador {
        width: 90vw;
        padding: 12px;
        text-align: center;
    }
}

/* Ajustes para pantallas medianas (901px a 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {

    /* 1. Imágenes más proporcionadas (ancho y alto) */
    .torno-portatil-img,
    .mangueras-hidraulicas-img,
    .carboyet-img,
    .cortadora-img,
    .valvulas-img,
    .banda-transportadora-img,
    .acumulador-img,
    .boquillas-img,
    .ventilador-movil-img,
    .ejes-portapalet-img,
    .piñones-img,
    .espigos-portapalet-img,
    .caracoles-img,
    .pasadores-img,
    .pasadores-img1,
    .maquinaria-img1,
    .maquinaria-img {
        width: 50%;   /* Más estrechas */
        height: auto; /* Altura proporcional */
        max-height: 40vh; /* Limitar altura */
    }

    /* 2. Centrado en acumulador-boquillas, ventilador-ejes, espigos-caracoles */
    .acumulador-boquillas,
    .ventilador-ejes,
    .espigos-caracoles {
        justify-content: center;
        align-items: center;
        gap: 40px;
        height: auto;
    }
    .acumulador,
    .boquillas,
    .ventilador-movil,
    .ejes-portapalet,
    .espigos-portapalet,
    .caracoles {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 3. Separar descripción de acople de mangueras de la división superior */
    .descripcion-mangueras {
        margin-top: 30px;
    }

    /* 4. Ajustar sección pasadores para evitar desborde hacia el footer */
    .pasadores {
        height: auto;
        margin-bottom: 40px;
    }
    .pasadores-img1 {
        display: block;
        margin: 0 auto;
        width: 50%;
        height: auto;
        max-height: 40vh;
    }
}

/* Ajustes finales para pantallas medianas (901px a 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {

    /* 1. Imágenes más estrechas y espigos con menos altura */
    .torno-portatil-img,
    .carboyet-img,
    .cortadora-img {
        width: 30%;  /* Más estrechas */
        max-height: 35vh;
    }
    .espigos-portapalet-img {
        width: 17%;
        max-height: 25vh; /* Menos altura */
    }

    /* 2. Separar descripciones de boquillas y ejes portapaletas del divisor inferior */
    .descripcion-boquillas,
    .descripcion-ejes-portapalet {
        margin-bottom: 30px; /* Espacio antes del divisor */
    }

    /* 3. Corregir desborde en descripción de piñones */
    .piñones {
        height: auto; /* Permitir que crezca con el contenido */
    }
    .descripcion-piñones {
        width: 80%; /* Más ancho para texto */
        max-width: 600px; /* Tope */
        padding: 15px;
        box-sizing: border-box;
        margin-bottom: 30px; /* Espacio antes del divisor */
        word-wrap: break-word; /* Evitar palabras largas que rompan */
    }
}

/* Evitar desborde en maquinaria amarilla en pantallas grandes */
@media (min-width: 1401px) {
    .maquinaria-amarilla {
        height: auto; /* Contenedor crece según contenido */
        flex-wrap: wrap; /* Permite que las imágenes pasen a otra línea si no caben */
        justify-content: center;
        gap: 30px;
    }

    .imagenes-maquinaria {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .imagenes-maquinaria img {
        width: 22%; /* Ajustar ancho para que todas entren */
        height: auto;
        max-height: 35vh; /* Limitar altura para que no se vean gigantes */
    }
}

/* Ajustes para móviles y tablets pequeños (<900px) */
@media (max-width: 500px) {

    /* 1. Espacio extra entre secciones y divisores */
    section,
    .acumulador,
    .boquillas,
    .ventilador-movil,
    .ejes-portapalet,
    .espigos-portapalet,
    .caracoles,
    .piñones,
    .pasadores,
    .maquinaria-amarilla {

        margin: 40px auto; /* Espacio antes del divisor */
    }

    /* 2. Imágenes más pequeñas */
    img {
        max-width: 75vw; /* Más estrechas en móviles */
        height: auto;
        max-height: 30vh; /* Controlar altura */
    }

    /* 3. Si quieres que imágenes específicas sean aún más pequeñas */
    .torno-portatil-img,
    .carboyet-img,
    .cortadora-img,
    .espigos-portapalet-img,
    .piñones-img,
    .pasadores-img,
    .pasadores-img1,
    .maquinaria-img1 {
        max-width: 50vw;
        max-height: 20vh;
    }

    .espigos-portapalet-img,
    .caracoles-img {
        max-width: 60vw;
        max-height: 22vh;
    }

    .espigos-portapalet-img {
        max-width: 40vw;
    }
}

@media (max-width: 900px) {

    /* Reducir todas las imágenes excepto las de la tabla */
    img:not(.tabla-img) {
        max-width: 40vw;
        height: auto;
        max-height: 25vh;
    }

    .logo-img {
        max-width: 100vw !important;
        height: auto;
    }

    /* Imagen de espigos más estrecha */
    .espigos-portapalet-img {
        max-width: 55vw !important;
        max-height: 22vh !important;
        width: auto !important;
        height: auto !important;
    }

    .torno-portatil-img{
        max-width: 20vw !important;
    }

    /* Separación extra para que no se peguen a los divisores */
    .acumulador-boquillas,
    .ventilador-movil,
    .ejes-portapalet,
    .descripcion-mangueras {
        margin-bottom: 40px;
        margin-top: 30px;
    }

    /* Mantener imágenes de la tabla sin cambios */
    .tabla-img {
        max-width: 100%;
        height: auto;
    }
}