* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}
@media (max-width: 1400px) {
    .carrusel-fondo{
        width: 100%; /* en vez de 100vw */
    }

    #carrusel-img {
        margin-left: 0; /* eliminar espacio forzado */
    }

    .carrusel-click-prev { left: 0; }
    .carrusel-click-next { right: 0; }
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.galeria_principal {
    width: 100%;
    overflow: hidden;
    height: 900px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    margin-top: 70px; 
}
.galeria_principal_img {
    content: url(/img/galeria_principa.png);
        width: 100%;
    height: 900px;
    object-fit: cover;
    object-position: center center;
    display: block;
}
@media (max-width: 40em) {
    .galeria_principal_img {
        content: url(/img/galeria_movil.png);
    }
    .logo_mas {
    content: url(/img/logo_azul.png);
    margin: 0 auto;
    top: 50px;
    width: 310px;
    height: auto;
    position: absolute;
}
}
/* --- BARRA DE NAVEGACION --- */
.barra-navegacion {
    background: #2a2d76;
    padding: 0;
    margin: 0;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    z-index: 9999; /* Z-index muy alto para estar por encima de todo */
    justify-content: space-between;
}
.barra-navegacion img {
    height: 35px;
    margin-right: 0px;
}

.barra-navegacion a {
    z-index: 10000; /* Z-index aún más alto para los enlaces */
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    margin: 0 16px; /* Reducir espaciado entre enlaces */
    transition: opacity 0.2s;
    opacity: 0.85;
    display: inline-block;
}

.barra-navegacion a:hover {
    opacity: 1;
    font-weight: bold;
}

/* Específico para el ícono de WhatsApp */
.barra-navegacion a:last-child {
    font-size: 22px;
    margin-left: auto; /* Empuja el ícono hacia la derecha */
    margin-right: 40px; /* Separación del borde derecho */
    padding: 8px 12px;
    opacity: 1;
}

/* Regla específica para cuando Contacto es el último elemento (sin WhatsApp) */
.barra-navegacion a[href="#contacto"]:last-child {
    font-size: 16px; /* Tamaño normal del texto */
    margin-left: 16px; /* Espaciado normal */
    margin-right: 0; /* Quitar el empuje hacia la derecha */
    padding: 8px 16px; /* Padding normal de texto */
    opacity: 0.85; /* Opacidad normal */
}

.barra-navegacion a[href="#contacto"]:last-child:hover {
    opacity: 1;
    font-weight: bold;
}

.barra-navegacion i {
    vertical-align: middle;
}
    .boton_hamburguesa {
        display: none; 
    }
    .menu_barranav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: #2a2d76;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 10000; /* Z-index alto para el menú móvil */
    }
    .menu_barranav a {
        color: #fff;
        font-size: 24px;
        text-decoration: none;
        margin: 20px 0;
        opacity: 0.9;
        transition: opacity 0.2s;
    }
    .barra-navegacion_nav{
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Cambiar a flex-start para alinear a la izquierda */
        width: 100%;
        height: 60px;
        margin: 0;
        padding: 0px 80px 0px 150px; /* Aumentar padding izquierdo para mover contenido a la derecha */
        gap: 40px; /* Gap entre logo y enlaces */
        box-sizing: border-box;
        z-index: 10002; /* Z-index alto para la navegación */
    }
    .barra-navegacion nav {
        background: #2a2d76;
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Cambiar a flex-start */
        width: 100%;
        gap: 40px; /* Gap entre logo y enlaces */
        height: 60px;
        margin: 0;
        padding: 0px 80px 0px 190px; /* Aumentar padding izquierdo para mover contenido a la derecha */
        box-sizing: border-box;
        z-index: 10001; /* Z-index alto para el nav */
    }
    @media (max-width: 1400px) and (min-width: 769px) {
    .red-social {
        pointer-events: auto; /* Asegura que sean clickeables */
        z-index: 10; /* Asegura que estén por encima de otros elementos */
        position: relative; /* Necesario para que z-index funcione */
    }
    
    .redes-sociales {
        pointer-events: auto;
        z-index: 10;
    }
    .galeria_principal{
        height: 600px;
        margin-top: -00px;
    }

}
@media (max-width: 40em) {
    .barra-navegacion_nav {
        display: none;
    }
    .barra-navegacion img {
        height: 30px;
        align-items: center;
        max-width: 120px;
        margin-right: 1.5rem;
    }
    .barra-navegacion a {
        margin: 10px 0;
        font-size: 18px;
    }
      .boton_hamburguesa {
    display: block;
    margin-left: 1.5rem;
    }
      .menu_barranav.active {
        transform: translateX(0);
    }
        .boton_hamburguesa {
        font-size: 30px;
        display: block;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        z-index: 10100; /* Z-index muy alto para el botón hamburguesa */
        position: relative;
    }
    .barra-navegacion{
        width: 100vw;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    .barra-navegacion nav{
        padding: 0.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

}
/*FIN DE SECCION DE BARRA DE NAVEGACION*/
/* SECCION SOBRE NOSOTROS */

.sobre-nosotros {
    max-width: 1600px;
    margin: 80px auto 0 auto;
    padding: 0 24px 32px 24px;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #fff;
    border-radius: 24px;
}
.sobre-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.sobre-texto {
    flex: 0.5;
    min-width: 0;
}
.sobre-texto h2 {
    font-size: 3rem;
    color: #2F2776;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -1px;
}

.sobre-texto p {
    text-align: justify;
    font-size: 1.5rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

.sobre-imagen {
  position: relative;
  width: 100%;
  max-width: 650px;
  min-height: 400px;
    flex: 2;
}
.sobre-imagen img {
    max-width: 100%;
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out;
    margin-bottom: 1rem;
    margin-top: 1rem;
    display: block;
    max-width: 100%;
    height: auto;
}
.activo {
  opacity: 1;
  z-index: 2;
}

.inactivo {
  opacity: 0;
  z-index: 1;
}
.sobre-columnas {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}

.sobre-columnas h3 {
    font-size: 1.8rem;
    color: #2F2776;
    margin-bottom: 12px;
}

.sobre-columnas p {
    text-align: justify;
    font-size: 1.2rem;
    color: #b0b0b0;
    line-height: 1.6;
}
hr {
    border: none;
    height: 2px;
    background: #e0e0e0; /* Cambia este color al que desees */
    margin: 40px 0;
}
.molino_card {
    position: absolute;          
    display: inline-block;     
    border-radius: 20px;          
    overflow: hidden;
    transition: opacity 0.8s ease-in-out;             
}

.molino_card img {
    width: 100%;
    height: auto;
    display: block;
}

.molino_texto {
    position: absolute;
    bottom: 20px;                
    left: 20px;               
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);  
}
.molino_card.activo {
    opacity: 1;
    z-index: 2;
}

.molino_card.inactivo {
    opacity: 0;
    z-index: 1;
}
/* --- RESPONSIVE SOBRE NOSOTROS --- */
@media (max-width: 768px) {
    .sobre-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    .sobre-nosotros {
        padding: 0 8px 32px 8px;
    }
    .sobre-imagen {
        position: relative;
        width: 100%;
        min-height: 300px; 
    }
    .sobre-imagen img {
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }
    .sobre-texto h2 {
        font-size: 2rem;
    }
    .sobre-texto p {
        font-size: 1.1rem;
    }
    .sobre-columnas {
        flex-direction: column;
        gap: 24px;
    }
    .sobre-columnas h3 {
        font-size: 1.1rem;
    }
    .sobre-columnas p {
        font-size: 1.1rem;
    }
      .molino_card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* la imagen se escala para cubrir toda el área */
  .molino_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* mantiene proporción y llena el contenedor */
  }

  .molino_texto {
    left: 20px;
    bottom: 20px;
    font-size: 1.6rem;
  }

.fade-out {
    opacity: 0;
}
.fade-in {
    opacity: 1;
}
}
@media (max-width: 1400px) and (min-width: 769px){
    .sobre-imagen{
        max-width: 500px;
    }

}
/*FIN SECCION SOBRE NOSOTROS*/
/* --- SECCION DE NUESTROS PRODUCTOS --- */
/*BOTONES DE SIGUIENTE Y ANTERIOR PRODUCTO*/
.carrusel {
    position: relative; 
    margin-bottom: 0px;
    overflow: hidden;
}

/* Nuevas áreas de clic más pequeñas y posicionadas en el carrusel */
.carrusel-click-area {
    position: absolute; /* Cambiar de fixed a absolute */
    top: 0;
    bottom: 0;
    width: 200px;  /* Reducir de 80px a 50px */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    /*backdrop-filter: blur(5px);*/
    border-radius: 8px; /* Esquinas más suaves */
    
}
.carrusel-click-area i {
    font-size: 2rem;
    color: rgba(47, 39, 118, 0.3);
    font-weight: bold;
}
.carrusel-click-prev {
    left: -25px; /* Posicionar en el borde izquierdo del carrusel */
    border-radius: 0 15px 15px 0;
}
.carrusel-click-area svg {
    width: 40px;
    height: 60px;
    transition: transform 0.3s ease;
}

.carrusel-click-area svg path {
    stroke: #525252;
    stroke-width: 3;
    mix-blend-mode: difference;
    filter: brightness(1.5);
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.carrusel-click-area:hover svg {
    transform: scale(1.2);
}

.carrusel-click-area:hover svg path {
    filter: brightness(3);
    stroke-width: 3;
}
.carrusel-click-next {
    right: -25px; /* Posicionar en el borde derecho del carrusel */
    border-radius: 15px 0 0 15px;
}
#carrusel-img {
    max-width: 700px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-left: 200px;
    margin-top: -10px;
}

/* Responsive - ajustar para móviles */
/* Asegurar que el contenedor del carrusel permita overflow */

.bar {
    position: absolute;
    width: 0;
    height: 0;
    transform-origin: center;
}
.carrusel-extrapan .carrusel-info h2 {
    color: #ffffff; 
}
.carrusel-fondo {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.carrusel-productos {
    display: flex;
    flex-direction: row; /* Mantén los elementos en fila */
    align-items: center; /* Centra verticalmente los elementos */
    justify-content: space-between; /* Espacia los elementos horizontalmente */
    position: relative;
    width: 100%; /* Ajusta el ancho al contenedor */
    max-width: 1200px; /* Establece un ancho máximo */
    margin: 0 auto; /* Centra el carrusel */
    padding: 0; /* Elimina padding innecesario */
    box-sizing: border-box; /* Asegura que el padding y borde no afecten el tamaño */
}
.productos {
    position: relative;
    width: 100%;
    min-width: none;
}

#carrusel-img, .animaciones-productos {
    height: 100%;
}
.animaciones-productos {
    position: absolute;     /* ← Cambiar de relative a absolute */
    left: 0;               /* ← Agregar */
    top: 0;                /* ← Agregar */
    width: 100vw;
    height: 100%;          /* ← Cambiar de min-height a height */
    z-index: 1;            /* ← Cambiar de 2 a 1 (detrás del contenido) */
    pointer-events: none;   /* ← Agregar */
    /* QUITAR estas líneas que no son necesarias para animaciones: */
    /* display: flex; */
    /* flex-direction: row-reverse; */
    /* align-items: center; */
    /* justify-content: flex-start; */
    /* min-height: 600px; */
    /* background: transparent; */
    /* overflow: visible; */
    /* gap: 0; */
    /* max-width: 100vw !important; */
    /* margin: 0; */
}

#carrusel-img {
    flex: 1; /* Permite que la imagen ocupe espacio proporcional */
    max-width: 500px; /* Establece un ancho máximo */
    min-width: 350px; /* Establece un ancho mínimo */
    height: auto; /* Mantén la proporción de la imagen */
    object-fit: contain; /* Ajusta la imagen dentro del contenedor */
    margin: 0; /* Elimina márgenes innecesarias */
    display: block; /* Asegura que la imagen sea un bloque */
    order: 2;
    z-index: 100;
}
.carrusel-info {
    flex: 1; /* Permite que el texto ocupe espacio proporcional */
    gap: 0px; /* Espacio entre los elementos */
    text-align: left; /* Alinea el texto a la izquierda */
    padding: 20px; /* Agrega espacio interno */
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño */
    margin: 0; /* Elimina márgenes innecesarias */
    display: flex; /* Usa Flexbox para organizar el contenido interno */
    flex-direction: column; /* Organiza el contenido en columna */
    justify-content: center; /* Centra el contenido verticalmente */
    order: 1;
    z-index: 100;
    margin-top: 190px;
    margin-left: -50px;
}
@media (max-width: 1200px){
    
.carrusel-info {
    flex: 1; /* Permite que el texto ocupe espacio proporcional */
    gap: 0px; /* Espacio entre los elementos */
    text-align: left; /* Alinea el texto a la izquierda */
    padding: 20px; /* Agrega espacio interno */
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño */
    margin: 0; /* Elimina márgenes innecesarias */
    display: flex; /* Usa Flexbox para organizar el contenido interno */
    flex-direction: column; /* Organiza el contenido en columna */
    justify-content: center; /* Centra el contenido verticalmente */
    order: 1;
    z-index: 100;
    margin-top: 200px;
    margin-left: 100px;
}
.carrusel-info p {
    font-size: 10px;
    color: #777777;
    margin-bottom: 12px;
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 0.5px;
    max-width: 500px;
    white-space: normal;
    background: none;
    position: relative;
    z-index: 11;
}
}
#producto-nombre {
    white-space: nowrap;
    font-size: 4rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 0.5px;
    align-self: flex-start;
    z-index: 11;
}
#producto-descripcion {
    margin-top: 0;
    margin-bottom: 20px;
    z-index: 11;
}

#producto-presentacion {
    margin-top: 20px; /* Espacio adicional para la presentación */
}
.carrusel-info p {
    font-size: 24px;
    color: #777777;
    margin-bottom: 12px;
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 0.5px;
    max-width: 500px;
    white-space: normal;
    background: none;
    position: relative;
    z-index: 11;
}
.carrusel-info a {
    display: inline-block;
    background: #2F2776;
    color: #fff;
    padding: 12px 36px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 18px;
    letter-spacing: 2px;
    font-size: 1.1rem;
    transition: background 0.2s;
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.carrusel-info a:hover {
    background: #f37021;
}


.carrusel-info .carrusel-btn {
    display: inline-block;
    background: #2F2776; 
    color: #ffffff;
    border: none;
    padding: 12px 56px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(47,39,118,0.12);
    transition: background 0.3s ease, transform 0.12s ease; 
    outline: none;
    width: fit-content;
    height: auto;
}
/*CLASES ESPECIFICAS PARA CADA COLOR DE TITULO*/
@media (max-width: 768px) {
#producto-nombre.extrapan {
    color: #c21632 !important;
}

#producto-nombre.galeras-azul {
    color: #2a2d76 !important;
}

#producto-nombre.galeras-verde {
    color: #006330 !important;
}

#producto-nombre.galeras-cafe {
    color: #703a13 !important;
}

#producto-nombre.galeras-artesanal {
    color: #f32222 !important;
}

#producto-nombre.galeras-familiar {
    color: #151254 !important;
}
    .carrusel-productos {
        flex-direction: column; /* Cambiar de fila a columna */
        align-items: center; /* Centrar los elementos */
        justify-content: center; /* Centrar verticalmente */
        padding: 20px 0; /* Ajustar padding */
        gap: 30px; /* Espacio entre imagen e info */
    }

    #carrusel-img {
        order: 1; /* La imagen va primero */
        max-width: 90%; /* Ajustar ancho */
        min-width: auto; /* Quitar ancho mínimo */
        margin: 0 auto; /* Centrar la imagen */
    }

    .carrusel-info {
        order: 2; /* El texto va después */
        margin-top: 0; /* Quitar margen superior */
        margin-left: 0; /* Quitar margen izquierdo */
        padding: 0 20px; /* Padding lateral */
        text-align: center; /* Centrar el texto */
        align-items: center; /* Centrar elementos */
    }

    #producto-nombre {
        font-size: 2.5rem; /* Reducir tamaño de fuente */
        white-space: normal; /* Permitir que el texto se divida en líneas */
        text-align: center; /* Centrar el título */
        margin-bottom: 20px; /* Reducir margen inferior */
    }

    .carrusel-info p {
        font-size: 1rem; /* Ajustar tamaño de fuente */
        text-align: center; /* Centrar el texto */
        max-width: 100%; /* Usar todo el ancho disponible */
    }

    .carrusel-btn {
        margin: 20px auto 0 auto; /* Centrar el botón */
        align-self: center; /* Centrar en el contenedor flex */
    }

    /* Ajustar las áreas de clic para móvil */
    .carrusel-click-area {
        width: 50px;
        height: 50px;
        top: 30%; /* Posicionar en la mitad de la imagen */
    }

    .carrusel-click-prev {
        left: 10px;
    }

    .carrusel-click-next {
        right: 10px;
    }

    /* Ajustar animaciones para móvil */
    .animaciones-productos {
        min-height: 400px; /* Reducir altura mínima */
    }

    .triangulo-dinamico {
        border-bottom-width: 150px; /* Reducir tamaño del triángulo */
    }

    .triangulo-dos {
        border-bottom-width: 120px; /* Reducir tamaño del triángulo */
    }
}
/* Clases específicas para cada color de producto */
.carrusel-btn.extrapan {
    background: #c21632;
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.12);
}

.carrusel-btn.extrapan:hover {
    background: #c21632;
    transform: translateY(-3px);
}

.carrusel-btn.galeras-azul {
    background: #2a2d76;
    box-shadow: 0 10px 20px rgba(42, 45, 118, 0.12);
}

.carrusel-btn.galeras-azul:hover {
    background: #1f2159;
    transform: translateY(-3px);
}

.carrusel-btn.galeras-verde {
    background: #006330;
    box-shadow: 0 10px 20px rgba(0, 99, 48, 0.12);
}

.carrusel-btn.galeras-verde:hover {
    background: #004d26;
    transform: translateY(-3px);
}

.carrusel-btn.galeras-cafe {
    background: #703a13;
    box-shadow: 0 10px 20px rgba(112, 58, 19, 0.12);
}

.carrusel-btn.galeras-cafe:hover {
    background: #5c2e0f;
    transform: translateY(-3px);
}

.carrusel-btn.galeras-artesanal {
    background: #f32222;
    box-shadow: 0 10px 20px rgba(243, 34, 34, 0.12);
}

.carrusel-btn.galeras-artesanal:hover {
    background: #d11717;
    transform: translateY(-3px);
}

.carrusel-btn.galeras-familiar {
    background: #151254;
    box-shadow: 0 10px 20px rgba(21, 18, 84, 0.12);
}

.carrusel-btn.galeras-familiar:hover {
    background: #0f0e3f;
    transform: translateY(-3px);
}

.carrusel-info .carrusel-btn:hover {
    transform: translateY(-3px);
    background: #34286b;
}

.carrusel-info .carrusel-btn:active {
    transform: translateY(-1px);
}
/* Mantener el estilo del botón COTIZAR diferente */
.carrusel-info .carrusel-a {
    display: inline-block;
    background: #2F2776;
    color: #ffffff;
    border: none;
    padding: 12px 56px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(47,39,118,0.12);
    transition: transform .12s ease, background .15s ease;
    outline: none;
    width: auto;
    height: auto;
}

.carrusel-info .carrusel-btn:hover {
    transform: translateY(-3px);
    background: #34286b;
}

.carrusel-info .carrusel-btn:active {
    transform: translateY(-1px);
}
.triangulo-dinamico {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 0px solid transparent;
    border-bottom: 250px solid #f37021;
    z-index: 1;
}

.triangulo-dos {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 0px solid transparent;
    border-bottom: 200px solid #2a2d76;
    z-index: 1;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0; }
}
/* Ajustes para garantizar la visibilidad del carrusel en modo responsive */
@media (max-width: 768px) {
    .carrusel {
        display: block; /* Asegura que el carrusel sea visible */
        overflow: visible; /* Permite que el contenido se muestre correctamente */
    }

    .carrusel-productos {
        padding-left: 5vw; /* Reduce el desplazamiento en pantallas pequeñas */
        width: 100%; /* Asegúrate de que el ancho se ajuste al contenedor */
        margin: 0 auto;
    }

    #carrusel-img {
        width: 90%; /* Ajusta el ancho de la imagen */
        height: auto; /* Mantiene la proporción de la imagen */
        margin-left: 5vw; /* Elimina márgenes innecesarios */
    }

    .carrusel-info {
        width: 90%; /* Ajusta el ancho del contenedor de información */
        padding: 1rem; /* Agrega espacio interno para mejor visibilidad */
        text-align: left; /* Centra el texto */
    }

    .carrusel-click-area {
        display: flex; /* Asegura que las áreas de clic sean visibles */
        width: 40px; /* Ajusta el tamaño de las áreas de clic */
        height: 60px; /* Ajusta la altura de las áreas de clic */
    }
}
/* Responsive para portátiles (entre 769px y 1024px) */
@media (max-width: 1400px) and (min-width: 769px) {
    body {
        font-size: 85%; /* Reduce el tamaño de la fuente general */
    }

    header {
        padding: 8px 16px; /* Reduce el padding del header */
    }

    header h1 {
        font-size: 1.8rem; /* Reduce el tamaño del título principal */
    }

    nav ul li {
        font-size: 0.9rem; /* Reduce el tamaño de los elementos del menú */
    }

    .galeria_principal {
        padding: 8px; /* Ajusta el padding para portátiles */
    }

    .carrusel-info {
        font-size: 0.85rem;
        margin-top: 180px;
        margin-left: 100px; 
        gap: 10px;
    }
    #carrusel-img {
        margin-top: 100px;
        max-width: 400px;
    }

    .carrusel-info h2 {
        font-size: 1.5rem; /* Reduce el tamaño del título del carrusel */
    }

    .carrusel-info p {
        font-size: 0.9rem; /* Reduce el tamaño de los párrafos del carrusel */
    }

    .carrusel-btn {
        padding: 8px 24px; /* Ajusta el tamaño del botón */
        font-size: 0.85rem; /* Reduce el tamaño del texto del botón */
    }
    .triangulo-dinamico {
        border-bottom: 200px solid;
    }
    .triangulo-dos {
        border-bottom: 150px solid;
    }

    .formulario-email {
        width: 85%; /* Ajusta el ancho del formulario */
        margin: 0 auto; /* Centra el formulario */
    }

    .formulario-email input, .formulario-email textarea {
        font-size: 0.9rem; /* Reduce el tamaño del texto en los campos del formulario */
        padding: 8px; /* Ajusta el padding de los campos */
    }

    footer {
        padding: 8px 16px; /* Reduce el padding del footer */
    }

    footer p {
        font-size: 0.8rem; /* Reduce el tamaño del texto en el footer */
    }

    .btn-contactanos {
        padding: 10px 40px; /* Ajusta el tamaño del botón de contacto */
        font-size: 0.9rem; /* Reduce el tamaño del texto del botón */
    }
}
/*SECCION DE CLIENTES*/
.clientes {
  text-align: center;
  margin: 60px 0;
}
.clientes-logos {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin-top: 30px;
}
@media (max-width: 768px) {
  .clientes-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 5px; 
  }
  .cliente-logo img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}
}
/*FIN SECCION CLIENTES*/
/* --- WHATSAPP FLOATING TAB --- */
.whatsapp-tab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#whatsapp-btn {
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 36px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#whatsapp-btn:hover {
    background: #1ebe57;
}

.whatsapp-popup {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    width: 320px;
    margin-bottom: 16px;
    overflow: hidden;
    animation: whatsapp-popup-in 0.3s;
}

@keyframes whatsapp-popup-in {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.whatsapp-popup-header {
    background: #00fd15;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

#whatsapp-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
}

.whatsapp-popup-body {
    padding: 18px;
    color: #333;
}

.whatsapp-link {
    display: inline-block;
    margin-top: 12px;
    background: #25d366;
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.whatsapp-link:hover {
    background: #1ebe57;
}

/* --- MIA FLOATING TAB --- */
.mia-tab {
    position: fixed;
    bottom: 110px; /* Debajo del WhatsApp */
    right: 30px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#mia-btn {
    background: #ffffff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#mia-btn:hover {
    background: #4b3bbd;
}

.mia-popup {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(47,39,118,0.18);
    width: 320px;
    margin-bottom: 16px;
    overflow: hidden;
    animation: mia-popup-in 0.3s;
    max-width: calc(-100% - 40px);
    max-height: calc(-100% - 150px); 
}

@keyframes mia-popup-in {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mia-popup-header {
    background: #2F2776;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

#mia-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
}

.mia-popup-body {
    padding: 18px;
    color: #333;
}
/* Ícono del botón flotante de WhatsApp */
#whatsapp-btn i {
    font-size: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ícono del botón flotante de MIA */
#mia-btn i {
    font-size: 2rem;
    color: #2F2776; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#mia-btn:hover i {
    color: #fff;
}
/*NUESTROS CLIENTES*/
.clientes{
    max-width: 1400px;              
    margin: 80px auto;         
    padding: 40px;         
    text-align: center;
}
.cliente-logo img {
    width: 500px;       
    height: 200px;      
    object-fit: contain;   
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.clientes h2 {
    font-size: 3.5rem;           
    color: #2F2776;             
    margin-bottom: 24px;          
    font-weight: 600;             
    letter-spacing: -1px;          
    font-family: 'Montserrat', Arial, sans-serif; 
    text-align: center; 
    
    mix-blend-mode: difference; 
    position: relative;
    z-index: 10; 
}
.cliente-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;              
    border-radius: 12px;  
    transition: transform 0.3s ease;
}

.cliente-logo:hover {
    transform: translateY(-5px);  
}
/*SECCION DE CONTACTO*/
.contacto {
    background: #f8f9fa;
    padding: 80px 0;
    display: flex;
    width: 100%;
    margin: 0;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
}

.ubicacion-mapa {
    width: 50%;
    padding: 0 40px;
}

.ubicacion-mapa h2 {
    font-size: 3.5rem;
    color: #2F2776;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: -1px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.ubicacion-mapa iframe {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.formulario-email {
    width: 50%;
    padding: 0 40px;
    max-width: 100%;
}

.formulario-email h2 {
    font-size: 3.5rem;
    color: #2F2776;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: -1px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 500px;
}

.campo-formulario {
    position: relative;
}

.campo-formulario input,
.campo-formulario textarea {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    background: #ffffff;
    font-size: 1.1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #495057;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.campo-formulario input:focus,
.campo-formulario textarea:focus {
    border-color: #2F2776;
    box-shadow: 0 0 0 3px rgba(47, 39, 118, 0.1);
    background: #ffffff;
}

.campo-formulario input::placeholder,
.campo-formulario textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.campo-formulario textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-enviar {
    background: linear-gradient(135deg, #ff6b35 0%, #f85a2a 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    align-self: flex-start;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-enviar:hover {
    background: linear-gradient(135deg, #f85a2a 0%, #e54d1f 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.btn-enviar:active {
    transform: translateY(0px);
}

.btn-enviar:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.contacto-contenedor{
    width: 100%;
    max-width: 1200px;      /* o el ancho que prefieras */
    margin: 0 auto;         /* centra el contenedor */
    padding: 0 20px;        /* espacio lateral en desktop */
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
}

/* Responsive para contacto */
@media (max-width: 768px) {
    
    .ubicacion-mapa,
    .formulario-email {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .ubicacion-mapa iframe {
        height: 300px;
    }
    
    .ubicacion-mapa h2,
    .formulario-email h2 {
        font-size: 2.5rem;
    }
    
    .formulario-contacto {
        max-width: 100%;
    }
    
    .campo-formulario input,
    .campo-formulario textarea {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .btn-enviar {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
    }
    .contacto-contenedor{
        margin-right: 30px;
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;  
    }
    .clientes h2{
        font-size: 2rem;
    }
}
.footer {
    background: #2F2776;
    color: rgba(255, 255, 255, 0);
    padding: 60px 0 30px 0;
    margin-top: 80px;
    max-width: 100%;
    margin-bottom: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-seccion h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 30px;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 1px;
}

.certificados {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.certificado-logo {
    width: 120px;
    margin-bottom: 30px;
    padding: 10px;
    border-radius: 8px;
}

.redes-sociales {
    display: flex;
    gap: 15px;
}

.red-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.red-social:hover {
    background: white;
    color: #2F2776;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: #e9ecef;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
}

.footer-links li a:hover {
    color: white;
}

.logo-mas {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-logo-principal {
    width: 200px;
    margin-bottom: 20px;
}

.footer-slogan {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 400;
    color: #e9ecef;
    font-family: 'Montserrat', Arial, sans-serif;
}

.footer-marca {
    font-size: 0.9rem;
    margin: 0;
    color: #adb5bd;
    font-family: 'Montserrat', Arial, sans-serif;
}
    @media (max-width: 1400px) and (min-width: 769px) {
    .footer {
        padding: 40px 0 40px 0; /* Asegura padding adecuado */
        max-height: none; /* Elimina cualquier restricción de altura */
        overflow: visible; /* Asegura que el contenido no se corte */
    }
    
    .footer-container {
        padding: 0 200px;
        max-width: 100%;
    }
    }

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .logo-mas {
        grid-column: span 2;
        align-items: center;
        text-align: center;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .footer {
        padding: 40px 0 20px 0;
        max-height: 900px;
        justify-content: flex-start;
        display: flex;
        max-width: 100%;
    }
    
    .logo-mas {
        grid-column: span 1;
        align-items: center;
        text-align: center;
    }
    
    .certificados {
        align-items: center;
        text-align: center;
    }
}
/* Estilos para centrar el botón "Contactanos" sobre la imagen de la galería */
.galeria_principal {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.btn-contactanos {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, 50%);
    background: #ff881a;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 20px 60px;
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 1.3rem;
    letter-spacing: px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-contactanos:hover {
    background: #f85a2a; /* Cambiar color al pasar el mouse */
}


/* Responsive para el segundo footer */
@media (max-width: 768px) {
    .footer-secundario {
        padding: 0;
        margin: 0;
    }
    
    .footer-secundario img {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}
.footer-secundario {
    background: #ffffff;
    width: 100%;
    padding: 0;
    margin: 0; /* ← SIN margin-top */
    display: block;
    line-height: 0;
    overflow: hidden;
}

.footer-secundario img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    line-height: 0;
}

/* Responsive para el segundo footer */
@media (max-width: 768px) {
    .footer-secundario {
        padding: 0;
        margin: 0;
    }
    
    .footer-secundario img {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}