body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
}

/* CABECERA */
header {
    background-color: #1f2933;
    color: white;
    padding: 40px;
    text-align: center;
}

/* MENÚ */
/* MENÚ */
.menu {
    background: none;      /* sin fondo */
    padding: 0;            /* sin caja */
}

.menu a {
    margin-left: 30px;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
}


nav a:hover {
    color: #9ca3af;
}

/* SECCIONES */
section {
    background-color: white;
    padding: 40px;
    margin: 20px;
    border-radius: 5px;
}

/* PIE DE PÁGINA */
footer {
    background-color: #1f2933;
    color: white;
    text-align: center;
    padding: 20px;
}
/* PRODUCTOS */
/* SECCIÓN PRODUCTOS */
.productos {
    padding: 80px 60px;
    background-color: #f5f7fa;
}

.productos h2 {
    font-size: 32px;
    color: #1f3a5f;
    margin-bottom: 40px;
    text-align: center;
}

/* GRILLA 4 COLUMNAS */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 por fila */
    gap: 25px;
}

/* TARJETA */
.producto-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
}

/* IMAGEN CONTROLADA */
.producto-card img {
    width: 100%;
    height: 180px;          /* evita imagen gigante */
    object-fit: contain;
}

/* NOMBRE DEL PRODUCTO */
.producto-nombre {
    padding: 12px;
    font-size: 15px;
    font-weight: bold;      /* negrilla */
    color: #1f2933;
}

/* HEADER */
/* HEADER PRINCIPAL */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 60px;
    background-color: #1f3a5f; /* azul industrial */
}

/* LOGO * + LEMA */
.logo img {
    height: 65px;
}

.logo img {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}
.log img {
    height: 80px;
}

.lema{
    margin-top: 4px;
    font-size: 14px;
    font-style: italic;
    color: #e5e7eb;
}
/* MENÚ */
.menu a {
    margin-left: 30px;
    text-decoration: none;
    color: white;
    font-size: 18px; /* texto más grande */
    font-weight: 600;
}

.menu a:hover {
    text-decoration: underline;
}


.menu a:hover {
    color: #555;
}
/* INICIO */
.inicio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    gap: 40px;
    background-color: #f5f5f5;
}

.inicio-texto {
    max-width: 600px;
}

.inicio-texto h1 {
    font-size: 32px;
    color: #1f2933;
}

.inicio-texto p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.frase {
    margin-top: 20px;
    font-size: 18px;
}

.inicio-imagen img {
    width: 100%;
    max-width: 500px;
    border-radius: 5px;
}
/* HERO - INICIO */

.hero {
    position: relative;
    height: 85vh;
    background-image: url("imagenes/fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    padding: 0 60px;
    color: white;
}

/* CAPA OSCURA (SUAVE, NO TAN OSCURA) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
}

/* TEXTO ENCIMA */
.hero-contenido {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


.hero-contenido h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-contenido p {
    font-size: 18px;
    line-height: 1.6;
}

.hero-frase {
    margin-top: 25px;
    font-size: 20px;
    font-weight: bold;
}
/* SECCIÓN NOSOTROS */
.nosotros {
    display: flex;
    gap: 60px;
    padding: 80px 100px;
    background-color: #ffffff;
}

.nosotros-texto {
    flex: 1.6;
    max-width: 600px;
}

.nosotros-texto h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1f3a5f;
}

.nosotros-texto p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* VIDEOS */
.nosotros-videos {
    flex: 0.6;            /* ocupa menos espacio aún */
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}


.nosotros-videos video {
    width: 100%;
    max-width: 360px;   /* +40px, ajuste fino */
    height: 200px;      /* +20px, mantiene proporción */
    margin-left: auto;
    border-radius: 6px;
    object-fit: cover;
}
/* TRANSICIÓN ENTRE NOSOTROS Y PRODUCTOS */
.transicion-produccion {
    padding: 40px 60px 60px;
    background-color: #f5f7fa;
    text-align: center;
}

.transicion-produccion img {
    width: 100%;
    max-width: 400px;   /* 👈 aquí está la clave */
    border-radius: 6px;
}

.transicion-texto {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    font-weight: bold; /* 👈 negrilla */
}
/* PRODUCCIÓN AUTOMÁTICA */
.produccion-automatica {
    display: flex;
    gap: 40px;
    padding: 100px 80px;
    background-color: #f5f7fa;

    width: 100%;
    box-sizing: border-box;
}


.produccion-texto {
    flex: 1;
    max-width: 600px;
}

.produccion-texto h2 {
    font-size: 32px;
    color: #1f3a5f;
    margin-bottom: 20px;
}

.produccion-texto p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.produccion-frase {
    margin-top: 20px;
    font-weight: bold;
    font-size: 16px;
}

.produccion-imagen {
    flex: 1;
    text-align: center;
}

.produccion-imagen img {
    width: 100%;
    max-width: 480px;
    border-radius: 6px;
}
/* VIDEOS PRODUCCIÓN AUTOMÁTICA */
.produccion-videos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.produccion-videos video {
    width: 100%;
    max-width: 380px;
    height: 220px;
    border-radius: 6px;
    object-fit: cover;
}
/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp-float img {
    width: 38px;
    height: 38px;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* NOTA PRODUCTOS */
.nota-productos {
    grid-column: 1 / -1;
    margin: 60px auto 0 auto;   /* centrado real */
    padding: 30px 35px;
    background-color: #eef2f6;
    border-left: 6px solid #1f3a5f;
    max-width: 700px;           /* un poco más compacto */
    text-align: center;         /* texto centrado */
}


.nota-productos p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    font-weight: bold;          /* TODO en negrilla */
}

html {
    scroll-behavior: smooth;
}

/* ============================= */
/* AJUSTES PARA CELULARES */
/* ============================= */

@media (max-width: 768px) {

    /* HEADER */
    .header {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .logo img {
        height: 70px;
    }

    .menu a {
        margin-left: 15px;
        font-size: 16px;
    }

    /* HERO */
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero-contenido h1 {
        font-size: 30px;
    }

    .hero-contenido p {
        font-size: 16px;
    }

    /* PRODUCCIÓN AUTOMÁTICA */
    .produccion-automatica {
        flex-direction: column;
        padding: 50px 20px;
    }

    .produccion-texto h2 {
        font-size: 28px;
    }

    .produccion-texto p {
        font-size: 16px;
    }

    .produccion-videos {
        align-items: center;
    }

    .produccion-videos video {
        max-width: 100%;
        height: auto;
    }

    /* TRANSICIÓN */
    .transicion-produccion img {
        max-width: 100%;
    }

    .transicion-texto {
        font-size: 16px;
        padding: 0 20px;
    }

    /* PRODUCTOS */
    .productos {
        padding: 80px 60px;
        background-color: #f5f7fa;
    }

    .productos-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .producto-nombre {
        font-size: 15px;
    }

    /* NOTA PRODUCTOS */
    .nota-productos {
        max-width: 100%;
        margin: 50px auto 0 auto;
        padding: 25px 20px;
    }

    .nota-productos p {
        font-size: 15px;
    }

    /* FOOTER */
    footer {
        font-size: 14px;
        padding: 25px 15px;
        text-align: center;
    }
    /* ============================= */
/* FORZAR PRODUCTOS EN CELULAR */
/* ============================= */

@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================= */
/* AJUSTE DEFINITIVO VIDEOS MÓVIL */
/* ============================= */

@media (max-width: 768px) {

    .produccion-videos {
        align-items: center;
    }

    .produccion-videos video {
        width: 100% !important;
        max-width: 320px !important;   /* 🔥 ESTE ES EL LÍMITE REAL */
        height: auto !important;
        aspect-ratio: 16 / 9;          /* mantiene forma */
    }

}
@media (max-width: 768px) {

    .logo {
        align-items: center; /* centra todo */
        text-align: center;
    }

    .logo img {
        height: 55px; /* un poco más pequeño */
    }

    .lema {
        margin-top: 6px;
        font-family: Georgia, 'Times New Roman', Times, serif;
        font-size: 14px;
        font-style: italic;
        color: #e5e7eb;
        text-align: center;
    }
}


}
