body>* {
    margin: 0;
    max-width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.header-desktop {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    background-color: #ffffff;
    transition: opacity 0.3s ease;
}

.header-mobile {
    display: none;
}

.nav {
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
    max-width: 1200px;
    height: 40px;
}

.logo-mobile {
    height: 0px;
    width: auto;
    display: none;
}

.nav-mobile-contacto {
    display: flex;
    flex-direction: column;

}

.nav-mobile-certificaciones-titulo {
    height: 20px;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    padding-top: 5px;
}

.nav-mobile-certificaciones {
    height: 30px;
    color: #a38c63;
    font-weight: bold;
    font-size: 15px;
    padding-top: 0px;
}

.nav-mobile-boton-dorado {
    height: 30px;
}

.header-contactos {
    display: flex;
    align-items: center;
}

.header-contactos-contacto {
    margin-left: 5px;
    margin-right: 5px;
    font-size: 12px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.icon-contacto {
    height: 25px;
    width: 25px;
    margin-right: 5px;
    border-radius: 2px;
}

.banner-section {
    width: 100%;
    background: #0f172a;
    height: 160px;
    position: fixed;
    top: 40px;
    left: 0;
    z-index: 1500;
    transition: top 0.3s ease;
}

.banner-section.compact {
    top: 0;
}

.banner {
    max-width: 1200px;
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.logo-desktop {
    width: 20%;
    height: 150px;
    margin-top: 5px;
    background-color: white;
    border-radius: 5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-desktop-img {
    height: auto;
    width: 80%;
}

.banner-derecha {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80%;
    max-width: 950px;
    height: 95px;
    background: #0f172a;
}

.banner-certificaciones {
    display: flex;
    /*align-items: center;*/
    /*justify-content: space-between;*/
    height: 120px;
    padding-top: 35px;
    font-size: 13px;
    color: #cbd5e1;
}

.banner-certificados {
    display: flex;
    flex-direction: column;
    width: 70%;
    display: flex;
    align-items: center;
}

.banner-certificados-contenedor {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 60px;
    text-align: center;
}

.certificados-certificado {
    text-align: center;
    padding: 0 25px;
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: 1px;
}

.certificados-certificado .text-bold {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #a38c63;
    font-weight: 600;
}

.banner-certificados-servicios {
    text-align: center;
    /*background-color: #7F5E26;*/
    height: 25px;
    color: white;
}

.banner-contacto {
    background: #0F172A;
    background: linear-gradient(90deg, rgba(15, 23, 42, 1) 0%, rgba(127, 94, 38, 1) 15%, rgba(255, 255, 255, 1) 45%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 1) 55%, rgba(127, 94, 38, 1) 85%, rgba(15, 23, 42, 1) 100%);
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    padding-top: 5px;
    width: 30%;
    max-width: 30%;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
}

.banner-contacto-boton {
    height: 30px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 5px 5px 5px;
}

.banner-contacto-texto {
    font-size: 12px;
    font-weight: bold;
    color: #0f172a;
    height: 20px;
}

.banner-cintillo {
    height: 25px;
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a38c63;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.boton-dorado {
    width: auto;
    height: 25px;
    color: #FFFFFF;
}

.text-bold {
    font-weight: bold;
    display: block;
}

.menu-desktop {
    color: #FFFFFF;
    width: 100%;
    z-index: 99999;
    position: relative;
    margin-top: 5px;
    border-top: 1px solid white;
}

.nav-menu-desktop {
    max-width: 1200px;
    margin: 0 auto 0 auto;
    background: linear-gradient(to right, #171f31, #1b2536);
    margin-top: 5px;
    height: 25px;
}

.nav-menu-desktop>ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.nav-menu-desktop ul li {
    font-size: 14px;
    position: relative;
    float: left;
    margin: 0;
    padding: 0;
}

.nav-menu-desktop ul a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    padding: 5px;
    font-weight: bold;
}

.nav-menu-desktop ul a:hover {
    color: #F4C147;
}

.nav-menu-desktop ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to right, #0f172a, #1e293b);
    padding: 0;
}

.nav-menu-desktop ul ul li {
    float: none;
    width: 300px;
    font-size: 13px !important;
}

.nav-menu-desktop ul ul a {
    line-height: 120%;
    padding: 10px 15px;
}

.nav-menu-desktop ul li:hover>ul {
    display: block;
}

.menu-desktop a {
    text-decoration: none;
    color: #FFFFFF;
}

.contenido {
    min-height: 400px;
    margin-top: 220px;
}

/* Contenedor principal negro */
.oferta-comercial {
    background-color: #000000;
    width: 100%;
    padding-bottom: 30px;
    /* Espacio antes del footer */
}

/* Título principal en amarillo */
.oferta-comercial-titulo {
    color: #d1a24f;
    font-weight: bold;
    font-size: 1.5em;
    /* Un poco más grande para destacar */
    text-align: center;
    padding: 30px 20px;
    letter-spacing: 1px;
}

/* Contenedor de los 6 bloques */
.oferta-comercial-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    /* Permite que los bloques bajen si no caben */
    justify-content: center;
    /* Centra los bloques */
    gap: 10px;
    /* Espaciado uniforme entre bloques */
}

/* Cada columna de industria */
.oferta-comercial-bloque {
    width: 190px;
    /* Ajustado para que entren 6 en línea en 1200px */
    margin-bottom: 20px;
}

/* Título del bloque con el borde de la imagen */
.oferta-comercial-bloque-titulo {
    color: #d1a24f;
    font-weight: bold;
    padding: 10px 5px;
    font-size: 0.85em;
    text-align: center;
    border: 1px solid #7F5E26;
    /* El borde café/dorado de la imagen */
    border-radius: 2px;
    min-height: 45px;
    /* Altura mínima para alinear títulos largos */
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Lista de productos en blanco */
.oferta-comercial-bloque-contenido {
    color: #FFFFFF;
    font-weight: normal;
    /* En la imagen no parecen estar en bold */
    font-size: 0.8em;
    padding: 10px 5px;
    line-height: 1.4;
}

/* Espaciado de los párrafos internos */
.oferta-comercial-bloque-contenido p {
    margin: 8px 0;
}

/* Pie de página azul */
.footer {
    text-align: center;
    padding: 15px;
    background-color: #004a99;
    color: #ffffff;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

.acordeon-input {
    display: none;
}

.contenido {
    width: 100%;
    margin-bottom: 50px;
}

.contenido-cuerpo {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 0 auto;
}

/* FORMULARIO CONTACTO*/
.modal-simple {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: #111;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #F4C147;
    border-radius: 5px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#sbm-simple-form input,
#sbm-simple-form textarea {
    width: 95%;
    margin-top: 10px;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
}

.send-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #F4C147;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* MODAL SHARE */
.modal-share {
    display: none;
    position: fixed;
    z-index: 100001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.share-content {
    background: #fff;
    margin: 30% auto;
    padding: 20px;
    width: 90%;
    max-width: 380px;
    border-radius: 20px;
    animation: slideUp 0.3s ease-out;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.share-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.close-share {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.share-item {
    text-decoration: none;
    cursor: pointer;
}

.share-item span {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-box svg {
    width: 28px;
    height: 28px;
}

/* Colores de botones */
.bg-whatsapp {
    background: #25D366;
}

.bg-blue {
    background: #0084FF;
}

.bg-red {
    background: #E4405F;
}

.bg-gray {
    background: #666;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* OFERTA COMERCIAL */
.centro-productos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.centro-productos-item {
    width: 30%;
    margin-left: 3px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    background-color: #dadada;
}

.certificaciones-imagen {
    width: 95%;
    height: auto;
    display: flex;
    justify-content: center;
}

.certificado-imagen {
    max-width: 90%;
    height: auto;
    justify-content: center;

}

/* Contenedor principal */
.clientes {
    display: grid;
    /* En PC 3 columnas, en tablets 2, en móviles 1 */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta de cada cliente */
.cliente {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cliente:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    border-color: #0056b3;
    /* Un toque de color industrial */
}

/* Área de texto */
.cliente-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.cliente-nombre {
    font-family: 'Arial Black', sans-serif;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 10px;
    min-height: 2.4em;
    /* Mantiene alineación si el nombre es corto */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cliente-ubicacion {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 8px;
    display: block;
}

.cliente-maquinaria {
    font-size: 0.9rem;
    font-weight: 600;
    color: #F4C147;
    /* Color destacado para el equipo vendido */
    background: #000000;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Área de imagen */
.cliente-imagen {
    width: 100%;
    height: 200px;
    /* Altura fija para uniformidad */
    overflow: hidden;
    background: #f9f9f9;
}

.cliente-imagen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta la imagen para que llene el espacio sin deformarse */
    transition: transform 0.5s ease;
}

.cliente:hover .cliente-imagen-img {
    transform: scale(1.05);
}

/* Responsivo para móviles */
@media (max-width: 480px) {
    .clientes {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* --- Contenedor Principal --- */
.contacto-bloque {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Header de Sección --- */
.nosotros-header {
    text-align: center;
}

.nosotros-header h1 {
    color: #fff;
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

/* --- Imagen de Perfil/Contacto --- */
.contacto-bloque-imagen {
    text-align: center;
    margin-bottom: 30px;
}

.contacto-bloque-imagen-img {
    width: 80%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Títulos y Tipografía --- */
.contacto-bloque-titulo {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.contacto-bloque-titulo h2 {
    color: #004a99;
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.contacto-bloque-titulo h3 {
    color: #004a99;
    margin: 5px 0 0;
    font-weight: 400;
    font-size: 1.1rem;
    font-weight: bold;
}

.contacto-bloque-contenido-email {
    color: #004a99;
    margin: 5px 0 0;
    font-weight: 400;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
}

/* --- Bloques de Contenido (Tarjetas) --- */
.contacto-bloque-contenido {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #F4C147;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.contacto-bloque-contenido:hover {
    transform: translateX(10px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contacto-bloque-contenido h3 {
    margin-top: 0;
    color: #555;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacto-bloque-contenido p,
.contacto-bloque-contenido {
    font-size: 1.05rem;
    margin: 5px 0;
}

/* --- Ajuste para pantallas pequeñas --- */
@media (max-width: 600px) {
    .nosotros-header h1 {
        font-size: 1.8rem;
    }

    .contacto-bloque-titulo h2 {
        font-size: 1.4rem;
    }

    .contacto-bloque {
        padding: 15px;
    }
}

/* Contenedor principal */
.videos-bloque {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.videos-bloque h1 {
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grilla de videos */
.videos-bloque-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* Tarjeta de video */
.videos-bloque-contenido {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.videos-bloque-contenido:hover {
    transform: translateY(-5px);
}

/* Título del video */
.videos-bloque-contenido-titulo {
    padding: 15px;
    background: #f8f9fa;
    flex-grow: 1;
    /* Para que todos los títulos tengan la misma altura si están en la misma fila */
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    justify-content: center;
}

.videos-bloque-contenido-titulo h3 {
    margin: 0;
    color: #444;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Contenedor del Video (Mantiene proporción 16:9) */
.videos-bloque-contenido-video {
    position: relative;
    width: 100%;
    /* Truco moderno para mantener proporción de video */
    aspect-ratio: 16 / 9;
}

.videos-bloque-contenido-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Ajustes para móviles */
@media (max-width: 500px) {
    .videos-bloque-grid {
        grid-template-columns: 1fr;
    }

    .videos-bloque {
        width: 95%;
    }

    .videos-bloque-contenido-titulo h3 {
        font-size: 0.9rem;
    }
}

/* Contenedor Galeria */
.tabla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cada tarjeta de producto */
.celda {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
}

.celda:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para el enlace */
.celda a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    width: 100%;
}

/* Imagen del producto */
.celda img {
    object-fit: contain;
    /* Evita que la foto se deforme */
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
    /* Permite que sea responsive manteniendo proporción */
}

/* Descripción del producto */
.celda p {
    font-family: sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    color: #555;
    /* Limita a 3 líneas de texto para uniformidad */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: bold;
}

.ficha-tecnica {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    color: #333;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.ficha-imagen-principal {
    width: 100%;
}

.img-wrapper-centrado {
    width: 100%;
    text-align: center;
}

.img-wrapper-centrado img {
    width: 60%;
}

/* Encabezados */
.ficha-header {
    text-align: center;
    border-bottom: 4px solid #004a99;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.ficha-header h1 {
    color: #004a99;
    font-size: 1.8rem;
    margin: 0;
}

.ficha-header h2 {
    color: #555;
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: 400;
}

.destacados {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.destacados p {
    margin: 5px 0;
    color: #d35400;
    font-weight: bold;
}

/* Video */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 80%;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* Secciones */
.ficha-seccion {
    margin-bottom: 40px;
}

.ficha-seccion h2 {
    background: #004a99;
    color: #fff;
    padding: 10px 20px;
    font-size: 1.3rem;
    border-radius: 4px;
    margin-bottom: 20px;
}

.sub-bloque {
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 3px solid #004a99;
}

.sub-bloque h3 {
    color: #004a99;
    margin-top: 0;
    font-size: 1.1rem;
}

.lista-minerales {
    text-align: justify;
    font-size: 0.95rem;
    background: #fafafa;
    padding: 15px;
    border: 1px solid #eee;
}

/* Gráficos */
.ficha-graficos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    /*text-align: center;*/
}

.grafico-item {
    text-align: center;
}

.img-full-width {
    text-align: center;
}

.grafico-item h3 {
    background: #f4f4f4;
    padding: 8px;
    font-size: 1rem;
    color: #444;
}

.grafico-item img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.pie-foto {
    font-size: 0.9rem;
    color: #666;
    padding: 0 20px;
}

/* Wrapper para imágenes con scroll horizontal si son muy grandes en móvil */
.img-wrapper {
    overflow-x: auto;
    width: 100%;
    text-align: center;
}

.ficha-footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-regresar {
    display: inline-block;
    padding: 10px 20px;
    background-color: #004a99;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-regresar:hover {
    background-color: #003d7a;
}

/* Responsive */
@media (max-width: 768px) {
    .ficha-tecnica {
        padding: 15px;
    }

    .ficha-header h1 {
        font-size: 20px;
        font-weight: bold;
    }

    .ficha-header h2 {
        font-size: 15px;
        font-weight: bold;
    }

    .destacados p {
        font-size: 14px;
    }

    .ficha-seccion h2 {
        font-size: 15px;
        font-weight: bold;
    }

    .video-container {
        max-width: 100%;
    }

    .oferta-comercial-titulo {
        font-size: 20px;
        font-weight: bold;
    }
}

.nosotros-container {
    max-width: 900px;
    /* Ancho contenido más íntimo y legible */
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.7;
}

.nosotros-header h1 {
    text-align: center;
    color: #004a99;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.nosotros-header h2 {
    text-align: center;
    color: #004a99;
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Control de la imagen principal */
.nosotros-imagen-destacada {
    text-align: center;
    margin-bottom: 40px;
}

.nosotros-imagen-destacada img {
    max-width: 60%;
    /* La imagen solo ocupa el 60% del ancho del contenedor */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Sutil sombra profesional */
}

.nosotros-contenido p {
    margin-bottom: 20px;
    text-align: justify;
}

.lista-productos {
    margin-bottom: 30px;
    padding-left: 20px;
}

.lista-productos li {
    margin-bottom: 12px;
    font-style: italic;
    color: #555;
}

.mision-destacada {
    background-color: #fcfcfc;
    border-top: 2px solid #F4C147;
    border-bottom: 2px solid #F4C147;
    padding: 30px;
    margin: 50px 0;
    text-align: center;
}

.mision-destacada h2 {
    color: #004a99;
    margin-top: 0;
}

.nosotros-firmas {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.presentacion-container {
    /*max-width: 550px;*/
    /* Un poco más ancho que el carrusel para aire */
    margin: 40px auto;
    text-align: center;
    font-family: Arial, sans-serif;
}

.presentacion-link {
    color: #004a99;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1em;
}

/* Estilo Superior */
.carrusel-caption-top h2 {
    color: #004a99;
    font-size: 1.4em;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.carrusel-caption-top p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* Estilo Inferior */
.carrusel-caption-bottom {
    margin-top: 20px;
}

.carrusel-caption-bottom p {
    color: #333;
    font-size: 1em;
}

.divider {
    width: 50px;
    height: 3px;
    background-color: #F4C147;
    /* Amarillo Shibang */
    margin: 15px auto;
}

.ubicacion {
    font-weight: bold;
    color: #004a99;
    font-size: 0.85em;
    text-transform: uppercase;
}

.carrusel-dinamico {
    width: 493px;
    height: 370px;
    margin: 20px auto;
    overflow: hidden;
    /* Esconde las imágenes que no están en turno */
    border: 1px solid #ddd;
    background-color: #000;
    /* Fondo negro por si la imagen tiene proporciones distintas */
}

.escenario-animado {
    display: flex;
    width: calc(493px * 6);
    /* Ancho total de las 6 diapositivas */
    animation: carrusel-infinito 20s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
    width: 493px;
    height: 370px;
}

.slide img {
    width: 100%;
    height: 100%;
    /* CLAVE: Muestra la imagen completa sin recortar */
    object-fit: contain;
}

/* Lógica de la animación: 
   Dividimos 100% entre las 5 imágenes originales.
   Cada 20% representa una transición completa. */
@keyframes carrusel-infinito {
    0% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-493px);
    }

    35% {
        transform: translateX(-493px);
    }

    40% {
        transform: translateX(calc(-493px * 2));
    }

    55% {
        transform: translateX(calc(-493px * 2));
    }

    60% {
        transform: translateX(calc(-493px * 3));
    }

    75% {
        transform: translateX(calc(-493px * 3));
    }

    80% {
        transform: translateX(calc(-493px * 4));
    }

    95% {
        transform: translateX(calc(-493px * 4));
    }

    100% {
        transform: translateX(calc(-493px * 5));
    }
}

/* Pausar el carrusel cuando el usuario pone el mouse encima */
.carrusel-dinamico:hover .escenario-animado {
    animation-play-state: paused;
}


.catalogo-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.catalogo-header {
    text-align: center;
    margin-bottom: 50px;
}

.catalogo-header h1 {
    color: #004a99;
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 10px;
}

/* Grid Principal */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Tarjeta individual (hereda de .cliente) */
.tarjeta-categoria {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eef0f2;
    text-decoration: none;
    /* Quita el subrayado del link */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tarjeta-categoria:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #F4C147;
}

.categoria-imagen {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.categoria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tarjeta-categoria:hover .categoria-imagen img {
    transform: scale(1.1);
}

/* Información de la tarjeta */
.categoria-info {
    padding: 25px;
    text-align: left;
}

.categoria-tag {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #F4C147;
    background: #000;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.categoria-nombre {
    font-family: 'Arial Black', sans-serif;
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.categoria-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
}

.action-button {
    z-index: 9999;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    height: 50px;
    justify-content: center;
    align-content: center;
    align-items: center;
    display: flex;
}

.action-button-links {
    display: flex;
    flex-direction: row;
    border-radius: 5px;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100%;
    justify-content: space-evenly;
}

.action-button-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d1a24f;
    border-radius: 5px;
}

.action-button-contacto svg {
    color: #d1a24f;
}

.action-button-contacto-icon {
    width: 25px;
    height: 25px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-productos {
        grid-template-columns: 1fr;
    }
}


/* Ajustes para móviles */
@media (max-width: 768px) {
    .nosotros-imagen-destacada img {
        max-width: 90%;
        /* En móviles permitimos que sea un poco más grande para que se aprecie */
    }

    .nosotros-header h1 {
        font-size: 20px;
        letter-spacing: 0.1px;
        margin-bottom: 15px;
    }

    .nosotros-header h2 {
        font-size: 15px;
        letter-spacing: 0.1px;
        margin-bottom: 0px;
    }

    .carrusel-caption-bottom p {
        font-size: 13px;
    }
}

@media (max-width: 768px) {

    .header-desktop {
        display: none;
    }

    .header-mobile {
        width: 100%;
        display: block;
        height: 60px;
        align-items: center;
        align-content: center;
        display: flex;
        justify-content: space-between;
        background-color: #0f172a;
        z-index: 99999;
        position: fixed;
        top: 0;
        left: 0;
    }

    .logo-mobile {
        display: block;
        height: 60px;
        width: 110px;
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .logo-mobile-img {
        height: 45px;
        width: auto;
        margin: auto;
        border-radius: 3px;
    }

    .nav-mobile {
        display: flex;
    }

    .header-contactos-contacto {
        align-items: unset;
        margin: 0;
    }

    .banner-section {
        display: none;
        visibility: hidden;
    }

    .logo-desktop {
        display: none;
    }

    .banner-derecha {
        display: none;
    }

    .nav {
        height: 60px;
    }

    .header-contactos {
        height: 60px;
    }

    .oferta-comercial-contenido {
        display: block;
        flex-direction: column;
    }

    .contenido {
        margin-top: 75px;
    }

    .contenido-cuerpo {
        width: 95%;
    }

    .centro-productos {
        flex-direction: column;
    }

    .centro-productos-item {
        width: 95%;
        margin: auto;
        margin-bottom: 10px;
    }

    .cliente {
        width: 100%;
    }

    .videos-bloque {
        width: 100%;
    }

    .oferta-comercial-contenido {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .oferta-comercial-bloque {
        width: 100%;
        max-width: 500px;
        margin-bottom: 10px;
    }

    /* Convertimos el título en un botón clicable */
    .oferta-comercial-bloque-titulo {
        display: flex;
        /* Para alinear el texto y el icono */
        justify-content: center;
        align-items: center;
        cursor: pointer;
        position: relative;
        font-size: 13px;
    }

    /* Indicador visual (+) */
    .oferta-comercial-bloque-titulo::after {
        content: '+';
        position: absolute;
        right: 15px;
        transition: transform 0.3s ease;
    }

    /* Ocultamos el contenido por defecto con altura 0 y overflow hidden 
       esto permite animaciones más suaves que el display:none */
    .oferta-comercial-bloque-contenido {
        max-height: 0;
        overflow: hidden;
        padding: 0 15px;
        border: 1px solid #7F5E26;
        border-top: none;
        transition: max-height 0.4s ease, padding 0.4s ease;
        opacity: 0;
    }

    /* --- LÓGICA DEL ACORDEÓN SOLO CSS --- */

    /* Cuando el input está checked, afectamos al contenido hermano */
    .acordeon-input:checked~.oferta-comercial-bloque-contenido {
        max-height: 600px;
        /* Un valor lo suficientemente grande */
        padding: 15px;
        opacity: 1;
    }

    /* Rotamos el indicador o cambiamos el símbolo */
    .acordeon-input:checked~.oferta-comercial-bloque-titulo::after {
        content: '-';
        transform: rotate(180deg);
    }

    .acordeon-input:checked~.oferta-comercial-bloque-titulo {
        background-color: #1a1a1a;
    }

    /* Ajustamos el contenedor al ancho de la pantalla móvil */
    .carrusel-dinamico {
        width: 90vw;
        /* Ocupa el 95% del ancho de la pantalla */
        height: calc(95vw * (370 / 493));
        /* Mantiene la proporción 4:3 exacta */
        margin: 10px auto;
    }

    /* Reajustamos el ancho del escenario animado para los 6 slides */
    .escenario-animado {
        width: calc(95vw * 6);
        animation: carrusel-infinito-movil 20s infinite cubic-bezier(0.77, 0, 0.175, 1);
    }

    /* Ajustamos cada slide al nuevo ancho relativo */
    .slide {
        width: 95vw;
        height: calc(95vw * (370 / 493));
    }

    /* Nueva animación con los desplazamientos calculados para móvil */
    @keyframes carrusel-infinito-movil {
        0% {
            transform: translateX(0);
        }

        15% {
            transform: translateX(0);
        }

        20% {
            transform: translateX(-95vw);
        }

        35% {
            transform: translateX(-95vw);
        }

        40% {
            transform: translateX(calc(-95vw * 2));
        }

        55% {
            transform: translateX(calc(-95vw * 2));
        }

        60% {
            transform: translateX(calc(-95vw * 3));
        }

        75% {
            transform: translateX(calc(-95vw * 3));
        }

        80% {
            transform: translateX(calc(-95vw * 4));
        }

        95% {
            transform: translateX(calc(-95vw * 4));
        }

        100% {
            transform: translateX(calc(-95vw * 5));
        }
    }

    .carrusel-caption-top h2 {
        font-size: 1.1em;
    }

    .presentacion-container {
        padding: 0px;
    }

    .menu-mobile {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        max-width: 30px;
        margin-right: 5px;
    }

    .menu-responsive-icon {
        display: flex;
        width: 35px;
        height: 30px;
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        border: 1px solid #FFFFFF;
        border-radius: 5px;
    }

    .responsive-bar {
        width: 20px;
        height: 2px;
        background-color: #FFFFFF;
        border-radius: 3px;
    }

    .text-bold {
        font-size: 10px;
    }

    .nav-mobile-certificaciones {
        display: flex;
        justify-content: space-evenly;
    }

    .nav-mobile-certificaciones {
        width: 90%;
        text-align: center;
    }

    .nav-mobile-certificado {
        width: 33%;
    }

    .ficha-header {
        margin-bottom: 10px;
    }

    .oferta-comercial-bloque-contenido p {
        font-size: 14px;
    }

    /* ======================================================
   MENÚ MÓVIL ESTILO APP (CORREGIDO)
   ====================================================== */

    /* Aseguramos que el contenedor padre no limite el ancho */
    .menu-mobile {
        width: 100%;
        position: static;
        /* Cambiamos a static para que el hijo use el viewport */
        background: #000;
    }

    .nav-links-mobile {
        display: none;
        /* Controlado por JS */
        list-style: none;
        padding: 0;
        margin: 0;
        background: #1a1a1a;

        /* POSICIONAMIENTO ABSOLUTO TOTAL */
        position: absolute;
        left: 0 !important;
        /* Fuerza el inicio en el borde izquierdo */
        right: 0 !important;
        /* Asegura que toque el borde derecho */
        width: 100vw;
        /* 100% del ancho de la ventana */

        /* AJUSTE DE ALTURA Y DESPLIEGUE */
        top: 60px;
        /* Ajusta este valor según la altura de tu header */
        z-index: 99999;
        /* Por encima de todo el contenido */

        border-bottom: 4px solid #F4C147;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        overflow-x: hidden;
        /* Evita scroll horizontal innecesario */
    }

    /* Clase de activación */
    .nav-links-mobile.active {
        display: block !important;
        /* Añade estas líneas para permitir el scroll */
        max-height: 85vh;
        /* Ocupa el 85% de la altura de la pantalla */
        overflow-y: auto;
        /* Permite scroll vertical si el contenido supera la altura */
        -webkit-overflow-scrolling: touch;
        /* Suaviza el scroll en iPhones */
    }

    /* Items del menú estilo Lista de App */
    .nav-links-mobile li {
        width: 100%;
        border-bottom: 1px solid #333;
    }

    .nav-links-mobile li a {
        display: block;
        padding: 18px 25px;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        font-weight: bold;
        text-align: left;
        /* Asegura alineación a la izquierda */
    }

    .menu-insignia {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
        background: linear-gradient(90deg, rgba(15, 23, 42, 1) 0%, rgba(127, 94, 38, 1) 15%, rgba(255, 255, 255, 1) 45%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 1) 55%, rgba(127, 94, 38, 1) 85%, rgba(15, 23, 42, 1) 100%);
    }

    /* ======================================================
   ACORDEÓN DE PRODUCTOS
   ====================================================== */
    .accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-toggle {
        background: none;
        border: none;
        color: #F4C147;
        font-size: 24px;
        padding-right: 25px;
        cursor: pointer;
    }

    .submenu-mobile {
        display: none;
        background: #252525;
        padding: 0;
    }

    .submenu-mobile.active {
        display: block !important;
    }

    .submenu-mobile li a {
        padding: 15px 40px;
        /* Más sangría para sub-ítems */
        font-size: 13px;
        font-weight: normal;
        color: #ccc;
    }
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 480px) {
    .tabla {
        grid-template-columns: 1fr;
        /* Una sola columna en teléfonos */
        gap: 15px;
    }
}