html, body {
    width: 100%;
    overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}
/* Inicio Menu de navegacion sitio */
    /* Estilos generales */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Arial', sans-serif;
    }
    
    body {
        padding-top: 60px; /* Espacio para el menú fijo */
        padding-top: 60px; /* Debe ser igual o mayor a la altura de tu navbar */
    }
    
    /* Estilos del menú principal */
    .navbar {
        position: fixed;
        top: 0;
        left: 0; /* Asegura que empiece desde el borde izquierdo */
        right: 0; /* Asegura que llegue hasta el borde derecho */
        width: 100%; /* Ocupa todo el ancho */
        z-index: 11000 !important; /* Asegura que esté por encima de otros elementos */
        background-color: #006578;
        padding: 10px 20px;
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .logo-menu {
        color: #ffffff;
        font-weight: bold;
        font-size: 1.5rem;
        text-decoration: none;
    }
    
    /* Menú para desktop/tablet */
    .nav-menu {
        display: flex;
        list-style: none;
    }
    
    .nav-item {
        position: relative;
        margin-left: 20px;
    }
    
    .nav-link {
        color: #ffffff;
        text-decoration: none;
        font-size: 1rem;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    
    /* Submenú de Servicios */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(220, 152, 0, 0.9);
        border-radius: 0 0 4px 4px;
        list-style: none;
        width: 150px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }
    
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-item {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-link {
        color: #ffffff;
        text-decoration: none;
        display: block;
        transition: all 0.2s ease;
    }
    
    .dropdown-link:hover {
        padding-left: 20px;
        /* background-color: rgba(220, 152, 0, 0.7); */
    }
    
    /* Icono de dropdown */
    .dropdown-icon {
        margin-left: 5px;
        transition: transform 0.3s ease;
    }
    
    .nav-item:hover .dropdown-icon {
        transform: rotate(180deg);
    }
    
    /* Menú hamburguesa para móvil */
    .hamburger {
        display: none;
        cursor: pointer;
        width: 30px;
        height: 20px;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hamburger-line {
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        transition: all 0.3s ease;
    }
    
    /* Estilos para móvil */
    @media (max-width: 768px) {
        .hamburger {
            display: flex;
        }
        
        .nav-menu {
            position: fixed;
            top: 60px;
            left: -100%;
            width: 80%;
            height: calc(100vh - 60px);
            background-color: #333;
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            transition: left 0.3s ease;
        }
        
        .nav-menu.active {
            left: 0;
        }
        
        .nav-item {
            margin: 15px 0;
            width: 100%;
            text-align: center;
        }
        
        .dropdown-menu {
            position: static;
            width: 100%;
            display: none;
            opacity: 1;
            visibility: visible;
            transform: none;
            background-color: rgba(220, 152, 0, 0.3);
            border-radius: 4px;
            margin-top: 10px;
        }
        
        .nav-item:hover .dropdown-menu {
            display: block;
        }
        
        .dropdown-item {
            border-bottom: none;
        }
        
        .hamburger.active .hamburger-line:nth-child(1) {
            transform: translateY(8.5px) rotate(45deg);
        }
        
        .hamburger.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger.active .hamburger-line:nth-child(3) {
            transform: translateY(-8.5px) rotate(-45deg);
        }
    }
/* Fin Menu de navegacion sitio */
/* Inicio portada */
.imgPortada{
    background-image: 
    url('../webp/Dimat-permanente.webp'),
    url('../webp/Servicios.webp');
    background-position: 
        center top,
        center top;
    background-size: 
        100%,
        100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}
.imgPortadaContac{
    background-image: 
    url('../webp/Dimat-permanente.webp'),
    url('../webp/portada-contacto.webp');
    background-position: 
        center top,
        center top;
    background-size: 
        100%,
        100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}
.imgPortadaM{
    background-image: 
    url('../webp/Dimat-permanente.webp'),
    url('../webp/portada-fresado-dimat.webp');
    background-position: 
        center top,
        center top;
    background-size: 
        100%,
        100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}
.imgPortadaCorte{
    background-image: 
    url('../webp/Dimat-permanente.webp'),
    url('../webp/portada-corte.webp');
    background-position: 
        center top,
        center top;
    background-size: 
        100%,
        100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}
.imgPortadaBarrenado{
    background-image: 
    url('../webp/Dimat-permanente.webp'),
    url('../webp/portada-barrenado.webp');
    background-position: 
        center top,
        center top;
    background-size: 
        100%,
        100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}
.imgPortadaMaquinado{
    background-image: 
    url('../webp/Dimat-permanente.webp'),
    url('../webp/portada-maquinado.webp');
    background-position: 
        center top,
        center top;
    background-size: 
        100%,
        100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}
.imgPortadaRectificado{
    background-image: 
    url('../webp/Dimat-permanente.webp'),
    url('../webp/portada-rectificado.webp');
    background-position: 
        center top,
        center top;
    background-size: 
        100%,
        100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}
@media (max-width: 768px) {
    .imgPortada
    .imgPortadaContac
    .imgPortadaM{
        height: 300px;
    }
}
/* Fin portada */
h1 {
    font-size: 1.5em;
}

.Cont-Cent {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Sección 1 - Versión corregida */
.Col-Izq {
    display: block;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.ColIzq-P {
    width: 100%;
    text-align: justify;
}
.ColIzqBTN{
    display: flex;
    margin-left: auto;
    margin-right: auto;
    background-color: #006578;
    color: #fff;
    border: none;
    margin-top: 50px;
    padding: 15px 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: ease-in-out 0.2s;
}
.ColIzqBTN:hover{
    background-color: #015566;
    transform:scale(1.01);
    font-size: 1em;
}
.Col-Der {
    display: block;
    width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
.Col-Der-video{
    width: 100%;
}
.bienvenida {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: justify;
}
.destacado {
    color: #D68500;
    font-weight: bold;
}
.enfasis {
    font-style: italic;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
}
.sofware {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;

    font-weight: 600;
    text-align: left;
    padding-left: 20px;
}
.sofware img{
    max-width: 100px;
    height: auto;
}
/* Imágenes de software */
.software-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.software-logos img {
    max-width: 100px;
    height: auto;
}

/* Estilos para escritorio */
@media (min-width: 769px) {
    .Cont-Cent {
        display: flex;
        align-items: flex-start;
        gap: 30px;
    }
    
    .Col-Izq {
        width: 55%;
    }
    
    .Col-Der {
        width: 45%;
        position: sticky;
        top: 20px;
    }
    .Col-Der img {
        max-height: 80vh;
        width: auto;
        height: auto;
    }
}
.pepillos{
    width: 100%;
    height:100vh;
    margin-top: 20px;
}
/* Inicio de nuestros clientes */
.LogosV{
    margin-top: 20px;
    padding-top: 50px;
    text-align: center;
}
.H3logos{
    padding: 0px 20px;
}
.carrusel-grid {
    background-image:url(../svg/ondas-con-engranes.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    /* position: relative; */
    max-width: 900px;
}
.carrusel-contenedor {
    grid-column: 2;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
}
.carrusel-contenedor::-webkit-scrollbar {
    display: none;
}

.carrusel-items {
    display: flex;
    gap: 20px;
    padding: 10px calc(50% - 210px); /* Centrado exacto (400px/2 + 10px padding) */
}

.carrusel-item {
    scroll-snap-align: center;
    width: 350px;
    height: 263px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carrusel-btn {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carrusel-btn.prev {
    grid-column: 1;
}

.carrusel-btn.next {
    grid-column: 3;
}
@media (max-width: 768px) {
    .LogosV{
        margin-top: 5%;
        padding-top: 50px;
        text-align: center;
    }
}
/* Fin de nuestros clientes */
/* Inicio de seccion gris */
.Cgris {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 50px;
}

.GrisImg {
    flex: 0 0 400px;
    height: 400px;
}

.GrisImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.GrisTex {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.GrisTex h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.GrisTex p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .Cgris {
        flex-direction: column;
    }
    
    .GrisImg {
        flex: 0 0 auto;
        width: 100%;
        height: 300px;
    }
    
    .GrisTex {
        padding: 30px 20px;
    }
}
/* Fin de seccion gris */
/* Inicio de menu por iconos */
.MenuIcon {
    background-color: #CAD1DA;
    padding: 40px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.MenuIcon h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.icon-item:hover {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 0px 0px 5px #a2b9d5;
}

.icon-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.icon-item strong {
    font-size: 14px;
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
}

/* Columnas vacías */
.empty-col-1 {
    grid-column: 1;
}

.empty-col-8 {
    grid-column: 8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .empty-col-1, .empty-col-8 {
        display: none;
    }
}

@media (max-width: 768px) {
    .MenuIcon h2 {
        font-size: 24px;
    }
    
    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .icon-item img {
        width: 50px;
        height: 50px;
    }
    
    .icon-item strong {
        font-size: 13px;
    }
}
/* Fin de menu por iconos */
/* Inicio div Dos Cuadros */
/* Contenedor principal */
.DosCuadros {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.Texlist {
    width: 60%;
}
.Texlist h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 25px;
    line-height: 1.4;
}
.listas-container {
    display: flex;
    gap: 20px;
}
.Texlist ul {
    flex: 1;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.Texlist li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

/* Sección de imagen */
.imagencuadros {
    width: 35%;
    height: 400px; /* Altura fija para el ejemplo */
    border-radius: 6px;
    overflow: hidden;
}
.imagencuadros img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.imagencuadros img:hover {
    transform: scale(1.05);
}
/* Responsive design */
@media (max-width: 768px) {
    .DosCuadros {
        flex-direction: column;
        gap: 30px;
    }
    
    .Texlist, .imagencuadros {
        width: 100%;
    }
    
    .imagencuadros {
        height: 300px;
    }
}
/* Fin div Dos Cuadros */

/* Inicio del formulario y pepillo */
.FormBlack {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    color: #fff;
    background-color: #000;
    padding: 40px 20px;
    text-align: center;
}
.FormIzq {
    flex: 1;
    padding: 0 40px;
}
.FormIzq h3 {
    font-size: 28px;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #fff;
}
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}
.form-group input,
.form-group textarea {
    width: 90%;
    padding: 12px;
    background-color: #222;
    border: 1px solid #444;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
}
.form-group textarea {
    height: 120px;
    resize: vertical;
}
.submit-btn {
    background-color: #DB9600;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: 150px;
    /* /* display: flex; */
    margin-left: auto;
    margin-right: auto;
}
.submit-btn:hover {
    background-color: #bb8000;
}
.FormDer {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}
.FormDer strong {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}
.FormDer img {
    max-width: 300px;
    width: 100%;
    height: auto;
}
/* Responsive Design */
@media (max-width: 768px) {
    .FormBlack {
        flex-direction: column;
        padding: 30px 20px;
    }
    .FormIzq {
        padding: 0;
        margin-bottom: 40px;
    }
    .FormIzq h3 {
        font-size: 1em;
    }
    .FormDer {
        padding: 0;
    }
    .FormDer img {
        max-width: 200px;
    }
}
@media (max-width: 480px) {
    .FormIzq h3 {
        font-size: 20px;
    }
    .FormDer strong {
        font-size: 20px;
    }
}
/* Fin del formlario y pepillo */
/* Inicio estilos footer */
/* Contenedor principal del footer */
.footer-dimat {
    background-color: #DB9600;
    color: white;
    padding: 40px 20px;
}

/* Grid de 3 columnas */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos para cada columna */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Primera columna - Redes sociales */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Segunda columna - Menú */
.footer-menu strong {
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 50px;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.submenu {
    margin-left: 20px;
    margin-top: 5px;
}
.submenu li{
    margin-left: 35px;
}

/* Tercera columna - Certificaciones */
.certifications img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Aviso de privacidad */
.privacy-notice {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #006578;
}

.privacy-notice a {
    color: white;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-col {
        align-items: center;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .submenu {
        margin-left: 0;
    }
}
/* Fin estilos footer */
/* Inicio de Historia Vision */

        /* Contenedor principal */
        .SomosDimat {
            background-color: #1a73e8; /* Azul */
            color: white;
            padding: 2rem;
            font-family: 'Arial', sans-serif;
            min-height: 100vh;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            align-items: center;
        }
        
        /* Estilos para la sección de imagen */
        .imgTorno {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem;
        }
        
        .imgTorno img {
            width: 80%;
            max-width: 100%;
            height: auto;
            border-radius: 8px;
        }
        
        /* Estilos para la sección de texto */
        .TexTorno {
            padding: 1rem;
        }
        
        .TexTorno h3 {
            margin-bottom: 1rem;
            font-size: 1.5rem;
            border-bottom: 2px solid white;
            padding-bottom: 0.5rem;
        }
        
        .TexTorno p {
            margin-bottom: 2rem;
            line-height: 1.6;
        }
        
        /* Media query para ajustar en pantallas pequeñas */
        @media (max-width: 768px) {
            .SomosDimat {
                grid-template-columns: 1fr;
                padding: 1rem;
            }
            
            .imgTorno {
                order: 1; /* La imagen va primero en móviles */
            }
            
            .TexTorno {
                order: 2;
            }
        }
/* Fin de Historia Vision */

/* Inicio CNC principal */
.CNCking{
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}
.CNCking h2{
    text-align: center;
}
.CNCking p{
    padding: 30px 20px;

}
.CNCking ul{
    padding-top: 30px;
    padding-left: 50px;
    line-height: 2em;
}
.CNCking ul li{
    text-decoration: none;
    list-style: none;
}
.CNCking ul li span{
    padding-right: 20px;
}
.Equip{
    font-size: 1.1em;
}
.IMGking{
    display: flex;
    width: 50vw;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .IMGking{
        display: flex;
        width: 80vw;
}
}
/* Fin CNC principal */
/* Inicio Materiales */
.naranja{
    background-color: #D68500;
    color: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 50px 30px;
}
.naranja ul{
    margin-left: 40px;
    line-height: 3em;
}
.naranja i{
    color: #ffcd71;
}

.naranja ul li{
    list-style: none;
}
.naranja ul li span{
    padding-right: 10px;
}
.imgMateriales {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Espaciado uniforme entre imágenes */
    justify-items: center; /* Centra horizontalmente cada imagen en su celda */
    align-items: center; /* Centra verticalmente cada imagen en su celda */
    max-width: 1200px; /* Ancho máximo del contenedor */
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.imgMateriales img {
    max-width: 850px; /* Máximo ancho igual al de su celda */
    height: auto;
    object-fit: contain; /* Muestra toda la imagen sin recortar */
}

/* Responsive design */
@media (max-width: 900px) {
    .imgMateriales {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .imgMateriales {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Inicio Materiales maquinado */
.proceso-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

.proceso-paso {
    border-radius: 0 5px 5px 0;
}

.proceso-titulo {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
}

.proceso-lista {
    list-style-type: none;
    padding-left: 0;
}

.proceso-lista li {
    position: relative;
    padding-left: 20px;
    line-height: 1.5em;
}

.proceso-lista li:before {
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .proceso-container {
        grid-template-columns: 1fr;
    }
}
/* Fin Materiales maquinado */
/* Fin Materiales */