/* Estilos para el preloader */
@font-face {
    font-family: 'Montserrat Medium';
    src: url('fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Mejora la carga de fuentes */
}

@font-face {
    font-family: 'Montserrat Bold';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap; /* Mejora la carga de fuentes */
}

/* Texto minimalista */
.message {
    font-size: 1.2rem;
    color: #000;
    margin-top: 10px;
}

/* Animación de espera (puntos) */
.loading {
    font-size: 1.5rem;
    color: #555;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #000; 
    animation: bounce 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat Medium', sans-serif;
    z-index: 9999;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
  
/* Estilos para el mensaje de error en caso de navegador obsoleto */
#error-container {
    display: none;
    text-align: center;
    padding: 20px;
}

#error-container h1 {
    color: red;
}

.browser-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.browser-logos a {
    text-decoration: none;
}

.browser-logos img {
    width: 80px;
    height: 80px;
    transition: transform 0.2s ease-in-out;
}

.browser-logos img:hover {
    transform: scale(1.1);
}

 /* Estilos para el div que muestra el mensaje */
 #mensaje {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    display: none;
    text-align: center; /* Centra el contenido */
    font-family: 'Montserrat Medium', sans-serif;
    font-size: 16px;
    font-weight: bold;
  }
  /* Estilos para el mensaje de éxito */
  #mensaje.exito {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
  }
  #mensaje.exito:before {
    content: "✅ ";
    font-size: 18px;
  }
  /* Estilos para el mensaje de error */
  #mensaje.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
  }
  #mensaje.error:before {
    content: "✖ ";
    font-size: 18px;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box; /* Safari, Chrome */
    -moz-box-sizing: border-box; /* Firefox */
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Mejora el renderizado en WebKit */
    -moz-osx-font-smoothing: grayscale; /* Mejora el renderizado en Firefox */
    text-rendering: optimizeLegibility; /* Optimiza la legibilidad */
}

.nno{
    text-decoration: none !important;
    font-style: normal;
}  

.cabecera {
    font-family: 'Montserrat Medium', sans-serif;
    position: relative;
    height: 100vh;
    background-image: url('images/0_PORTADA INICIO.jpg');
    background-size: cover;
    background-position: center 50px;
    background-repeat: no-repeat;
    display: flex;
    /*flex-direction: column;
    justify-content: flex-end;*/
    align-items: center;
    color: #fff;
    text-align: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.cabecera:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/*
.menu-bar {
    font-family: 'Montserrat Medium', sans-serif;
    width: 100%;
    background-color: #fff;
    padding: 18px 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    padding-right: 5%;
    position: absolute;
    top: 0;
    z-index: 1000;
}*/

.menu-bar {
    font-family: 'Montserrat Medium', sans-serif;
    width: 100%;
    background-color: #fff;
    padding: 18px 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    padding-right: 5%;
    position: fixed; 
    top: 0;
    left: 0; 
    z-index: 1000;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #333;
    padding: 10px 5px;
    text-decoration: none;
    font-size: 18px;
    align-items: center;
}

nav a:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

/*
.logo {
    position: absolute;
    top: 0;
    left: 150px;
    transform: translateY(-5%);
    width: 180px;
    z-index: 1001;
}*/

.logo {
    position: fixed; 
    top: 0;
    left: 150px;
    transform: translateY(-5%);
    width: 160px;
    z-index: 1001;
}

  
.bienvenida {
    position: absolute;
    top: 50%;
    left: 15%; /* Igual al logo */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}


/* Texto "BIENVENIDO A" */
.bienvenida p {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    margin-left: 12px;
    color:rgb(255, 255, 255);
    /*color:rgb(59, 57, 57);*/
    font-weight: normal;
}


/* Imagen del logo tipográfico */
.logo-tipografia {
    width: 600px;
    max-width: 300%;
    height: auto;
    margin-bottom: 20px;
}


/* Botón de contacto */
.btn-contacto {
    display: inline-block;
    padding: 10px 25px;
    border: 3px solid #fff;
    /*color: rgb(59, 57, 57);*/
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 50px;
    font-size: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    transform: translateY(30px);
}

.btn-contacto:hover {
    background-color: #fff;
    color: #333;
}

.menu-toggle {
   /*  display: none; */
   cursor: normal;
}

section {
    padding: 60px 20px;
}

header + section {
    padding-top: 80px;
}

.titulo{
    font-family: 'Montserrat Bold', sans-serif;
    text-align: center;
}

section p{
    font-family: 'Montserrat Medium', sans-serif;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    font-family: 'Montserrat Medium', sans-serif;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/*  Contact form */
.container-form {
    position: relative;
    width: 85%;
    justify-content: space-between;
    margin: 20px auto;
    margin-top: 170px;
    /*overflow: hidden;*/
}

.logo-fondo {
    position: absolute;  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);  
    width: 80%;
    height: auto;
    z-index: -1;  
    opacity: 0.2;  
}

.contact-info {
    font-family: 'Montserrat Medium', sans-serif;
    position: absolute;
    right: 5%;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    transform: translateY(-50px);
    display: block;
}

.contact-info strong {
    font-size: 14px;
    font-family: 'Montserrat Bold', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-wrap: break-word; /* Evita desbordamiento de texto */
    overflow-wrap: break-word; /* Estándar moderno */
}

.description {
    font-family: 'Montserrat Medium', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 20px 0 30px 0;
    max-width: auto;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

input, textarea {
    font-family: 'Montserrat Medium', sans-serif;
    width: 100%;
    padding: 12px 16px;
    border-radius: 25px;
    border: 1px solid #000;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

textarea {
    height: 80px;
    resize: none;
}

.btn-submit {
    font-family: 'Montserrat Bold', sans-serif;
    grid-column: span 2;
    width: 95%;
    padding: 15px;
    background-color:rgb(248, 225, 213);
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    margin: 0 auto;
}

.footer-form {
    font-family: 'Montserrat Medium', sans-serif;
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-top: 20px;
}

/* Contenedor del video */
.video-container {
    width: 85%;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

video {
    width: 100%;
    height: auto;
    aspect-ratio: 32 / 9;
    object-fit: cover;
    pointer-events: none;
}   

/* Galería de imágenes */

.galeria {
    display: flex;
    justify-content: space-between;
    width: 86.5%;
    margin: 20px auto;
    flex-wrap: wrap;
}

.item {
    flex: 1;
    margin: 0 10px;
    text-align: center;
}

.item img {
    width: 100%;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    filter: grayscale(100%);
    transition: transform 0.3s, filter 0.3s;
}

.item img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.item p {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
    text-align: center;
}

.container_nosotros {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transform: translateX(8.9%);
}
/* Imagen a la izquierda */
.image_nosotros {
    flex: 1;
    /*transform: translateX(50px);*/
}
        
.image_nosotros img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}
        
/* Contenido de texto a la derecha */
.content_nosotros {
    flex: 1;
    padding: 40px;
}
        
.content_nosotros h4 {
    font-family: 'Montserrat Medium', sans-serif;
    color: #777;
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
        
.content_nosotros h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Montserrat Bold', sans-serif;
    font-weight: bold;
}
        
.content_nosotros p {
    font-family: 'Montserrat Medium', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: justify;
}
        
/* Botón */
.btn_nosotros {
    font-family: 'Montserrat Medium', sans-serif;
    display: inline-block;
    padding: 20px 30px;
    font-size: 14px;
    color: #555;
    border: 2px solid #ccc;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
        
.btn_nosotros:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.hero {
    background-image: url('images/BienvenidoTAV_0.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.bienvenida-nosotros {
    position: absolute;
    top: 50%;
    left: 15%; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.bienvenida-nosotros img{
    transform: translateY(-50%);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.bienvenida-nosotros p {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    margin-left: 12px;
    transform: translateY(-170%);
    color:rgb(255, 255, 255);
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content-nosotros {
    padding: 40px 10%;
    font-family: 'Montserrat Medium', sans-serif;
}

.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.about img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

.about-text {
    flex: 1;
    margin-left: 50px;
}

.about-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
    font-family: 'Montserrat Bold', sans-serif;
}

.about-text p {
    margin-bottom: 15px;
    font-family: 'Montserrat Medium', sans-serif;
    text-align: justify;
}

.features {
    margin-top: 30px;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.features li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-image: url('images/verificado.png');
    background-size: cover;
    background-repeat: no-repeat;
}

/* Clientes */
.galeria-clientes {
    display: flex;
    justify-content: space-between;
    width: 86.5%;
    margin: 20px auto;
    flex-wrap: wrap;
}

.item-cli {
    flex: 1;
    margin: 0 10px;
    display: flex;             
    justify-content: center;    
    align-items: center;        
}

.item-cli img {
    width: 60%;
    height: auto;
    transition: transform 0.3s, filter 0.3s;
}

.item-cli img:hover {
    transform: scale(1.05);
}



/* Offset */
.center-div_offset {
    display: flex;
    justify-content: center;  
    align-items: center;    
    width: 100%;
    margin-top: 120px;
}

.grid_offset {
    width: 84%;
    display: grid;
    grid-template-columns: repeat(8, auto);
    grid-template-rows: repeat(6, auto);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    justify-content: center;
    align-items: stretch;
}

.div1_offset { grid-area: 1 / 1 / 3 / 5; max-height: 280px; }
.div2_offset { grid-area: 1 / 5 / 3 / 9; max-height: 280px; }
.div3_offset { grid-area: 3 / 1 / 7 / 3; padding-right: 10px; max-height: 574px;}
.div4_offset { grid-area: 3 / 3 / 5 / 5; padding-right: 10px; max-height: 255px;}
.div5_offset { grid-area: 5 / 3 / 7 / 5; padding-right: 10px; max-height: 255px;}
.div6_offset { grid-area: 3 / 5 / 7 / 7; padding-right: 10px; max-height: 574px;}
.div7_offset { grid-area: 3 / 7 / 5 / 9; max-height: 255px;}
.div8_offset { grid-area: 5 / 7 / 7 / 9; max-height: 255px;}

.grid_offset img {
    max-width: 100%;
    width: auto;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover; 
}

.div1_offset h3 {
    padding-left: 20px;
    padding-top: 90px;
    font-family: 'Montserrat Bold', sans-serif;
    font-size: clamp(4px, 1.2vw, 10px); /* Tamaño responsive más pequeño para pantallas medianas */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Asegura que use todo el ancho disponible */
    max-width: none; /* Elimina cualquier limitación de ancho */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    line-height: 1.2;
}

.div1_offset p {
    padding-left: 20px;
    padding-right: 20px;
    text-align: justify;
    font-family: 'Montserrat Medium', sans-serif;
    font-size: 15px;
}

.div2_offset img {
    width: 100%;
    height: 160px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div2_offset img:hover {
    transform: scale(1.05);
}

.div3_offset img {
    width: 100%;
    height: 100%;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div3_offset img:hover {
    transform: scale(1.05);
}

.div4_offset img {
    width: 100%;
    height: 120%;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div4_offset img:hover {
    transform: scale(1.05);
}

.div5_offset img {
    width: 100%;
    height: 100%;
    -webkit-object-fit: cover;
    object-fit: cover; 
    margin-top: 30px;
    transition: transform 0.3s, filter 0.3s;
}

.div5_offset img:hover {
    transform: scale(1.05);
}

.div6_offset img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div6_offset img:hover {
    transform: scale(1.05);
}

.div7_offset img {
    width: 100%;
    height: 280px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div7_offset img:hover {
    transform: scale(1.05);
}

.div8_offset img {
    width: 100%;
    height: 280px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    margin-top: 5px;
    transition: transform 0.3s, filter 0.3s;
}

.div8_offset img:hover {
    transform: scale(1.05);
}

.div2_offset p{
    text-align: justify;
    text-justify: distribute;
    font-family: 'Montserrat Bold', sans-serif;
    font-style: italic;
    font-size: clamp(28px, 5vw, 45px); /* Tamaño mínimo más alto para que se vea bien desde el inicio */
    color:#555;
    width: 100%; 
    letter-spacing: 4px;    
    word-spacing: 20px; 
    white-space: nowrap; /* Mantiene el texto en una sola línea */
    overflow: hidden; /* Oculta el texto que se desborde */
    text-overflow: ellipsis; /* Añade ... si el texto es muy largo */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    line-height: 1.2;
}

/* digital */
.center-div_digital {
    display: flex;
    justify-content: center;  
    align-items: center;    
    width: 100%;
    margin-top: 120px;
}

.grid_digital {
    width: 84%;
    display: grid;
    grid-template-columns: repeat(8, auto);
    grid-template-rows: repeat(6, auto);
    /*grid-template-rows: auto auto auto auto auto auto;*/
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    justify-content: center;
    align-items: stretch;
}

.div1_digital { grid-area: 1 / 1 / 3 / 5; max-height: 280px; }
.div2_digital { grid-area: 1 / 5 / 3 / 9; max-height: 280px; }
.div3_digital { grid-area: 3 / 1 / 5 / 3; padding-right: 10px; max-height: 255px;}
.div4_digital { grid-area: 5 / 1 / 7 / 3; padding-right: 10px; max-height: 255px;}
.div5_digital { grid-area: 3 / 3 / 7 / 5; padding-right: 10px; max-height: 574px;}
.div6_digital { grid-area: 3 / 5 / 7 / 7; padding-right: 10px; max-height: 574px;}
.div7_digital { grid-area: 3 / 7 / 7 / 9; max-height: 574px;}

.grid_digital img {
    max-width: 100%;
    width: auto;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover; 
}

.div1_digital h3 {
    padding-left: 20px;
    padding-top: 90px;
    font-family: 'Montserrat Bold', sans-serif;
    font-size: clamp(4px, 1.2vw, 10px); /* Tamaño responsive más pequeño para pantallas medianas */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Asegura que use todo el ancho disponible */
    max-width: none; /* Elimina cualquier limitación de ancho */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    line-height: 1.2;
}

.div1_digital p {
    padding-left: 20px;
    padding-right: 20px;
    text-align: justify;
    font-family: 'Montserrat Medium', sans-serif;
    font-size: 15px;
}

.div2_digital img {
    width: 100%;
    height: 175px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;    
}

.div2_digital img:hover {
    transform: scale(1.05);
}

.div3_digital img {
    width: 100%;
    height: 280px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div3_digital img:hover {
    transform: scale(1.05);
}

.div4_digital img {
    margin-top: 5px;
    width: 100%;
    height: 280px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div4_digital img:hover {
    transform: scale(1.05);
}

.div5_digital img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;    
}

.div5_digital img:hover {
    transform: scale(1.05);
}

.div6_digital img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;    
}

.div6_digital img:hover {
    transform: scale(1.05);
}

.div7_digital img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;    
}

.div7_digital img:hover {
    transform: scale(1.05);
}

.div2_digital p{
    text-align: justify;
    text-justify: distribute;
    font-family: 'Montserrat Bold', sans-serif;
    font-style: italic;
    font-size: clamp(28px, 5vw, 45px); /* Tamaño mínimo más alto para que se vea bien desde el inicio */
    color:#555;
    width: 100%; 
    letter-spacing: 4px;    
    word-spacing: 20px; 
    white-space: nowrap; /* Mantiene el texto en una sola línea */
    overflow: hidden; /* Oculta el texto que se desborde */
    text-overflow: ellipsis; /* Añade ... si el texto es muy largo */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    line-height: 1.2;
}

/* packaging */
.center-div_packaging {
    display: flex;
    justify-content: center;  
    align-items: center;    
    width: 100%;
    margin-top: 120px;
}

.grid_packaging {
    width: 84%;
    display: grid;
    grid-template-columns: repeat(8, auto);
    grid-template-rows: repeat(6, auto);
    /*grid-template-rows: auto auto auto auto auto auto;*/
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    justify-content: center;
    align-items: stretch;
}

.div1_packaging { grid-area: 1 / 1 / 3 / 5; max-height: 280px; }
.div2_packaging { grid-area: 1 / 5 / 3 / 9; max-height: 280px; }
.div3_packaging { grid-area: 3 / 1 / 7 / 3; padding-right: 10px; max-height: 574px;}
.div4_packaging { grid-area: 3 / 3 / 7 / 5; padding-right: 10px; max-height: 574px;}
.div5_packaging { grid-area: 3 / 5 / 7 / 7; padding-right: 10px; max-height: 574px;}
.div6_packaging { grid-area: 3 / 7 / 7 / 9; max-height: 574px;}

.grid_packaging img {
    max-width: 100%;
    width: auto;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover; 
}

.div1_packaging h3 {
    padding-left: 20px;
    padding-top: 90px;
    font-family: 'Montserrat Bold', sans-serif;
    font-size: clamp(4px, 1.2vw, 10px); /* Tamaño responsive más pequeño para pantallas medianas */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Asegura que use todo el ancho disponible */
    max-width: none; /* Elimina cualquier limitación de ancho */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    line-height: 1.2;
}

.div1_packaging p {
    padding-left: 20px;
    padding-right: 20px;
    text-align: justify;
    font-family: 'Montserrat Medium', sans-serif;
    font-size: 15px;
}

.div2_packaging img {
    width: 100%;
    height: 175px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div2_packaging img:hover {
    transform: scale(1.05);
}

.div3_packaging img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div3_packaging img:hover {
    transform: scale(1.05);
}

.div4_packaging img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div4_packaging img:hover {
    transform: scale(1.05);
}

.div5_packaging img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div5_packaging img:hover {
    transform: scale(1.05);
}

.div6_packaging img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div6_packaging img:hover {
    transform: scale(1.05);
}

.div2_packaging p{
    text-align: justify;
    text-justify: distribute;
    font-family: 'Montserrat Bold', sans-serif;
    font-style: italic;
    font-size: clamp(24px, 4vw, 45px); /* Tamaño mínimo más alto para que se vea bien desde el inicio */
    color:#555;
    width: 100%; 
    letter-spacing: 4px;    
    word-spacing: 20px; 
    white-space: nowrap; /* Mantiene el texto en una sola línea */
    overflow: hidden; /* Oculta el texto que se desborde */
    text-overflow: ellipsis; /* Añade ... si el texto es muy largo */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    line-height: 1.2;
}

/* senalizacion */
.center-div_senalizacion {
    display: flex;
    justify-content: center;  
    align-items: center;    
    width: 100%;
    margin-top: 120px;
}

.grid_senalizacion {
    width: 84%;
    display: grid;
    grid-template-columns: repeat(8, auto);
    grid-template-rows: repeat(6, auto);
    /*grid-template-rows: auto auto auto auto auto auto;*/
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    justify-content: center;
    align-items: stretch;
}

.div1_senalizacion { grid-area: 1 / 1 / 3 / 5; max-height: 280px; }
.div2_senalizacion { grid-area: 1 / 5 / 3 / 9; max-height: 280px; }
.div3_senalizacion { grid-area: 3 / 1 / 7 / 4; padding-right: 10px; max-height: 574px;}
.div4_senalizacion { grid-area: 3 / 4 / 7 / 7; padding-right: 10px; max-height: 574px;}
.div5_senalizacion { grid-area: 3 / 7 / 5 / 9; max-height: 255px;}
.div6_senalizacion { grid-area: 5 / 7 / 7 / 9; max-height: 255px;}

.grid_senalizacion img {
    max-width: 100%;
    width: auto;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover; 
}
.div1_senalizacion h3 {
    padding-left: 20px;
    padding-top: 90px;
    font-family: 'Montserrat Bold', sans-serif;
    font-size: clamp(4px, 1.2vw, 10px); /* Tamaño responsive más pequeño para pantallas medianas */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Asegura que use todo el ancho disponible */
    max-width: none; /* Elimina cualquier limitación de ancho */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    line-height: 1.2;
}

.div1_senalizacion p {
    padding-left: 20px;
    padding-right: 20px;
    text-align: justify;
    font-family: 'Montserrat Medium', sans-serif;
    font-size: 15px;
}

.div2_senalizacion img {
    width: 100%;
    height: 175px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div2_senalizacion img:hover {
    transform: scale(1.05);
}

.div3_senalizacion img {
    width: 100%;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover; 
    transition: transform 0.3s, filter 0.3s;
}

.div3_senalizacion img:hover {
    transform: scale(1.05);
}

.div4_senalizacion img {
    width: auto;
    height: 572px;
    -webkit-object-fit: cover;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

.div4_senalizacion img:hover {
    transform: scale(1.05);
}

.div5_senalizacion img {
    width: 100%;
    height: 280px;
    -webkit-object-fit: cover;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

.div5_senalizacion img:hover {
    transform: scale(1.05);
}

.div6_senalizacion img {
    margin-top: 5px;
    width: 100%;
    height: 280px;
    -webkit-object-fit: cover;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

.div6_senalizacion img:hover {
    transform: scale(1.05);
}

.div2_senalizacion p{
    text-align: justify;
    text-justify: distribute;
    font-family: 'Montserrat Bold', sans-serif;
    font-style: italic;
    font-size: clamp(28px, 5vw, 45px); /* Tamaño mínimo más alto para que se vea bien desde el inicio */
    color:#555;
    width: 100%; 
    letter-spacing: 4px;    
    word-spacing: 20px; 
    white-space: nowrap; /* Mantiene el texto en una sola línea */
    overflow: hidden; /* Oculta el texto que se desborde */
    text-overflow: ellipsis; /* Añade ... si el texto es muy largo */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    line-height: 1.2;
}

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
}
  
.whatsapp-circle {
    background-color: #25d366; 
    width: 60px;
    height: 60px;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3); 
}
  
.whatsapp-icon {
    width: 70%; 
    height: auto;
}

/* Estilos para texto responsive y compatible */
h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-wrap: break-word; /* Evita desbordamiento de texto */
    overflow-wrap: break-word; /* Estándar moderno */
}

/* Estilos específicos para texto en las secciones */
.div1_offset h3,
.div1_digital h3,
.div1_packaging h3,
.div1_senalizacion h3 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    white-space: nowrap; /* Mantiene el texto en una sola línea */
    overflow: hidden; /* Oculta el texto que se desborde */
    text-overflow: ellipsis; /* Añade ... si el texto es muy largo */
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    font-size: clamp(6px, 2vw, 16px); /* Tamaño de fuente responsive que se ajusta automáticamente */
    line-height: 1.2; /* Altura de línea compacta */
    max-width: 100%; /* Asegura que no exceda el ancho del contenedor */
}

.div1_offset p,
.div1_digital p,
.div1_packaging p,
.div1_senalizacion p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto; /* Separación automática de palabras */
    -webkit-hyphens: auto; /* Safari */
    -moz-hyphens: auto; /* Firefox */
}

.div2_offset p,
.div2_digital p,
.div2_packaging p,
.div2_senalizacion p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

/* Estilos para imágenes responsive */
img {
    max-width: 100%;
    height: auto;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* Estándar */
}

/* Estilos para grid responsive */
.grid_offset,
.grid_digital,
.grid_packaging,
.grid_senalizacion {
    display: -ms-grid; /* IE/Edge */
    display: grid;
    -webkit-box-align: stretch; /* Safari */
    -ms-flex-align: stretch; /* IE/Edge */
    align-items: stretch;
}

/* Estilos para flexbox responsive */
.center-div_offset,
.center-div_digital,
.center-div_packaging,
.center-div_senalizacion {
    display: -webkit-box; /* Safari */
    display: -ms-flexbox; /* IE/Edge */
    display: flex;
    -webkit-box-pack: center; /* Safari */
    -ms-flex-pack: center; /* IE/Edge */
    justify-content: center;
    -webkit-box-align: center; /* Safari */
    -ms-flex-align: center; /* IE/Edge */
    align-items: center;
}

/* Estilos para títulos */
h1 {
    font-family: 'Montserrat Bold', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

h2 {
    font-family: 'Montserrat Bold', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin: 5px 0 20px 0;
}

/* Responsividad */
@media (max-width: 890px) {
    .menu-bar {
        font-family: 'Montserrat Medium', sans-serif;
        width: 100%;
        background-color: #fff;
        padding: 10px 0;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: flex-end;
        padding-right: 5%;
        position: fixed; 
        top: 0;
        left: 0; 
        z-index: 1000;
    }

    nav {
        display:block;
        gap: 15px;
    }
    
    nav a {
        color: #333;
        padding: 10px 5px;
        text-decoration: none;
        font-size: 14px;
        align-items: center;
    }
    
    nav a:hover {
        background-color: #f0f0f0;
        border-radius: 5px;
    }
    
    .logo {
        position: fixed; 
        top: 0;
        left: 150px;
        /*left: calc(50vw);
        transform: translateX(-50%);*/
        transform: translateY(-5%);
        width: 100px;
        z-index: 1001;
    }    

    /* Offset */
    .center-div_offset {
        display: flex;
        justify-content: center;  
        align-items: center;    
        width: 100%;
        margin-top: 30px;
    }

    .div1_offset h3 {
        padding-left: 20px;
        padding-top: 90px;
        font-family: 'Montserrat Bold', sans-serif;
        font-size: clamp(4px, 1.2vw, 10px); /* Tamaño responsive más pequeño para pantallas medianas */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%; /* Asegura que use todo el ancho disponible */
        max-width: none; /* Elimina cualquier limitación de ancho */
        word-break: keep-all;
        word-wrap: normal;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        line-height: 1.2;
    }
    
    .div1_offset p {
        padding-left: 20px;
        padding-right: 20px;
        text-align: justify;
        font-family: 'Montserrat Medium', sans-serif;
        font-size: 10px;
    }
   
    .div2_offset p{
        text-align: justify;
        text-justify: distribute;
        font-family: 'Montserrat Bold', sans-serif;
        font-style: italic;
        font-size: 20px;
        color:#555;
        width: 100%; 
        letter-spacing: 4px;    
        word-spacing: 20px; 
    }

    /* Estilos responsive para packaging */
    .center-div_packaging {
        margin-top: 100px;
    }

    .div1_packaging h3 {
        font-size: clamp(4px, 1.2vw, 10px); /* Tamaño responsive más pequeño para pantallas medianas */
        padding-top: 60px;
        padding-left: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: keep-all;
        word-wrap: normal;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        line-height: 1.2;
    }

    .div1_packaging p {
        font-size: 13px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .div2_packaging p {
        text-align: justify;
        text-justify: distribute;
        font-family: 'Montserrat Bold', sans-serif;
        font-style: italic;
        font-size: 35px;
        color:#555;
        width: 100%; 
        letter-spacing: 3px;    
        word-spacing: 15px; 
    }

    /* Estilos responsive para señalización */
    .center-div_senalizacion {
        margin-top: 100px;
    }

    .div1_senalizacion h3 {
        font-size: clamp(4px, 1.2vw, 10px); /* Tamaño responsive más pequeño para pantallas medianas */
        padding-top: 60px;
        padding-left: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: keep-all;
        word-wrap: normal;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        line-height: 1.2;
    }

    .div1_senalizacion p {
        font-size: 13px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .div2_senalizacion p {
        text-align: justify;
        text-justify: distribute;
        font-family: 'Montser Bold', sans-serif;
        font-style: italic;
        font-size: clamp(6px, 1.5vw, 20px); /* Tamaño responsive muy pequeño para móviles */
        color:#555;
        width: 100%; 
        letter-spacing: 1px;    
        word-spacing: 1px; 
        white-space: nowrap; /* Mantiene el texto en una sola línea */
        overflow: hidden; /* Oculta el texto que se desborde */
        text-overflow: ellipsis; /* Añade ... si el texto es muy largo */
        word-break: keep-all;
        word-wrap: normal;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        line-height: 1.2;
    }
} 