@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #e0e5ec;
}


/* Encabezado */

.header_ai {
     width: calc(100% - 50px);
    height: 120px;
    margin: 30px auto 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 50px;
    box-shadow:
        10px 10px 25px rgba(0, 0, 0, 0.10),
        -10px -10px 25px rgba(255, 255, 255, 1);
}

.header_ai h1 {
    font-size: 35px;
    font-weight: Outfit;
    color: #333;
}


/* logo */
.logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
}

.logo img {
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    box-shadow:
        6px 6px 12px #bec3c9,
        -6px -6px 12px #ffffff;
}

/* Marca o nombre de la empresa */
.marca {
    width: 400px;
    height: 400px;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;

}

.marca img {
    padding: 12px 20px;

    border-radius: 15px;

    font-size: 24px;
    font-weight: bold;

    color: #333;

    box-shadow:
        6px 6px 12px #bec3c9,
        -6px -6px 12px #ffffff;
}


/*Menú*/

.menu {
    display: flex;
    gap: 15px;
}

.menu a {
    padding: 12px 20px;
    font-size: 12px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 570;
    text-decoration: none;
    color: #231584;
    box-shadow:
        5px 5px 10px #bec3c9,
        -5px -5px 10px #ffffff;

    transition: all 0.3s ease;
}


/* Efecto de color al pasar el cursor */

.menu a:hover {
    color: #222;
    box-shadow:
        inset 5px 5px 10px #a2b0cc,
        inset -5px -5px 10px #a2b0cc;
}




/* =========================================
   RESPONSIVE
========================================= */

/* Tablet */

@media (max-width: 1100px) {

    .ai-container {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* Tablet pequeña */

@media (max-width: 800px) {

    .ai-container {
        grid-template-columns: repeat(2, 1fr);

        gap: 30px;
    }

}


/* Celular */

@media (max-width: 550px) {

    .ai-container {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 10px;
    }

    .ai-galeria {
        min-height: 400px;
    }

}

.pie_ai {
     width: calc(100% - 50px);
    height: 200px;

    margin: 30px auto 30px;

    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border-radius: 50px;

    box-shadow:
        10px 10px 25px rgba(0, 0, 0, 0.10),
        -10px -10px 25px rgba(255, 255, 255, 1);

         position: relative;
}

.pie_ai h1 {
    margin-left: 150px;
    font-size: 17px;
    font-weight: 700;
 font-family: 'Montserrat', sans-serif;
    color: #231584;
}

.pie_ai h2 {
      font-size: 17px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #231584;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.pie_ai h3 {
    margin-right: 150px;
    font-size: 17px;
    font-weight: 700;
 font-family: 'Montserrat', sans-serif;
    color: #231584;
}

.pie_ai p, a {
    font-size: 12px;
    font-weight: 400;
 font-family: 'Montserrat', sans-serif;
    color: #0e0437;
}

.pie_ai a:hover {
    color: #0f6a30;
}

/* Menú desplegable */

.dropdown {
    position: relative;
    display: inline-block;
}

/* Botón Productos */
.dropdown .dropbtn {
    display: block;
    text-decoration: none;
}

/* Contenedor de las opciones */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #ffffff;
    border-radius: 15px;
    padding: 10px 0;
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.15),
        -5px -5px 15px rgba(255, 255, 255, 0.9);
    z-index: 1000;
}

/* Opciones Alimentos y Papel */
.dropdown-content a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #231584;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Efecto al pasar el cursor */
.dropdown-content a:hover {
    background: #e8edf4;

    color: #0e0437;
}

/* Mostrar menú al pasar el cursor */
.dropdown:hover .dropdown-content {
    display: block;
}



/* =========================================
   CONTENEDOR INDIVIDUAL DEL PRODUCTO
========================================= */

.producto-detalle {
    width: 100%;
    max-width: 1100px;
    min-height: 450px;

    margin: 60px auto;
    padding: 40px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

    background: #ffffff;
    border-radius: 35px;

    box-shadow:
        15px 15px 30px rgba(0, 0, 0, 0.12),
        -15px -15px 30px rgba(255, 255, 255, 1);

    transition: all 0.3s ease;
}


/* =========================================
   IMAGEN DEL PRODUCTO
========================================= */


.producto-imagen {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: 25px;
    box-shadow:
        inset 8px 8px 18px rgba(0, 0, 0, 0.08),
        inset -8px -8px 18px rgba(255, 255, 255, 1);
    overflow: hidden;
    padding: 15px;
    box-sizing: border-box;
    gap: 8px;
}

/* Imagen del mole */
.producto-imagen img:first-child {
    width: 90%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(
        8px 10px 8px rgba(0, 0, 0, 0.15)
    );
    transition: transform 0.4s ease;
}

/* Imagen de la leyenda */
.producto-imagen img:last-child {
    width: 100%;
    height: 50px;
    object-fit: contain;
    filter: none;
    flex-shrink: 0;
}


.producto-detalle:hover .producto-imagen img {
    transform: scale(1.05);
}


/* =========================================
   INFORMACIÓN
========================================= */

.producto-info {
    padding: 20px;
    text-align: left;
}


/* Nombre */

.producto-info h2 {
    margin-bottom: 25px;

  font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;

    color: #231584;
}


/* Descripción */

.descripcion-producto {
    margin-bottom: 30px;
 font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;

    line-height: 1.8;

    color: #0e0437;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .producto-detalle {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }

    .producto-imagen {
        height: 280px;
    }

    .producto-info {
        text-align: center;
    }

}

/* Botón flotante de whatsapp */
.whatsapp-flotante {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 34px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Efecto al pasar el cursor en el botón de whatsapp */
.whatsapp-flotante:hover {
    transform: scale(1.10);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   RESPONSIVE COMPLETO
   ========================================================= */

/* Evitar desplazamiento horizontal */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}


/* =========================================================
   TABLET - 1100px
   ========================================================= */

@media (max-width: 1100px) {

    /* ENCABEZADO */
    .header_ai {
        width: 92%;
        height: auto;
        min-height: 110px;
        padding: 15px 25px;
        gap: 20px;
    }

    .logo {
        width: 110px;
        height: 110px;
    }

    .marca {
        width: 220px;
        height: 120px;
    }

    .header_ai h1 {
        font-size: 28px;
    }

    /* MENÚ */
    .menu {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu a {
        padding: 10px 15px;
        font-size: 11px;
    }

    /* PRODUCTO */
    .producto-detalle {
        width: 90%;
        gap: 35px;
        padding: 30px;
    }

    .producto-imagen {
        height: 380px;
    }

    .producto-info h2 {
        font-size: 25px;
    }

    /* FOOTER */
    .pie_ai {
        width: 92%;
        padding: 25px;
    }

    .pie_ai h1 {
        margin-left: 30px;
    }

    .pie_ai h3 {
        margin-right: 30px;
    }
}


/* =========================================================
   TABLET PEQUEÑA - 800px
   ========================================================= */

@media (max-width: 800px) {

    /* ENCABEZADO */
    .header_ai {
        width: 92%;
        min-height: auto;
        padding: 20px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        border-radius: 30px;
    }

    .logo {
        width: 90px;
        height: 90px;
    }

    .marca {
        width: 180px;
        height: 100px;
    }

    .header_ai h1 {
        width: 100%;
        font-size: 25px;
    }

    /* MENÚ */
    .menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu a {
        padding: 10px 14px;
        font-size: 11px;
    }

    /* MENÚ DESPLEGABLE */
    .dropdown-content {
        left: 50%;
        min-width: 160px;
    }

    /* PRODUCTO */
    .producto-detalle {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
        margin: 40px auto;
    }

    .producto-imagen {
        height: 350px;
    }

    .producto-info {
        padding: 10px;
        text-align: center;
    }

    .producto-info h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .descripcion-producto {
        font-size: 13px;
        line-height: 1.7;
    }

    /* FOOTER */
    .pie_ai {
        width: 92%;
        height: auto;
        min-height: 180px;
        padding: 25px;

        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;

        text-align: center;
        border-radius: 30px;
    }

    .pie_ai h1,
    .pie_ai h2,
    .pie_ai h3 {
        position: static;
        margin: 0;
        transform: none;
    }

    .pie_ai h1,
    .pie_ai h2,
    .pie_ai h3 {
        font-size: 15px;
    }

    .pie_ai p,
    .pie_ai a {
        font-size: 11px;
    }

    /* WHATSAPP */
    .whatsapp-flotante {
        right: 20px;
        bottom: 20px;
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}


/* =========================================================
   CELULAR - 550px
   ========================================================= */

@media (max-width: 550px) {

    /* ENCABEZADO */
    .header_ai {
        width: calc(100% - 20px);
        margin-top: 10px;
        padding: 15px;
        gap: 15px;
        border-radius: 25px;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .marca {
        width: 140px;
        height: 70px;
    }

    .header_ai h1 {
        font-size: 21px;
    }


    /* =====================================================
       MENÚ
       ===================================================== */

    .menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .menu a {
        width: 100%;
        padding: 10px 5px;
        font-size: 10px;
        text-align: center;
    }

    /* Dropdown */
    .dropdown {
        width: 100%;
    }

    .dropdown .dropbtn {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        width: 100%;
        min-width: 0;
        left: 0;
        transform: none;
    }

    .dropdown-content a {
        font-size: 12px;
        padding: 10px;
    }


    /* =====================================================
       PRODUCTO
       ===================================================== */

    .producto-detalle {
        width: calc(100% - 20px);
        min-height: auto;

        margin: 30px auto;
        padding: 18px;

        grid-template-columns: 1fr;
        gap: 20px;

        border-radius: 25px;
    }

    .producto-imagen {
        width: 100%;
        height: 280px;
        padding: 10px;
        border-radius: 20px;
    }

    /* Imagen principal */
    .producto-imagen img:first-child {
        width: 90%;
        height: 75%;
    }

    /* Imagen de leyenda */
    .producto-imagen img:last-child {
        width: 95%;
        height: 45px;
    }

    .producto-info {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

    .producto-info h2 {
        font-size: 21px;
        margin-bottom: 15px;
    }

    .descripcion-producto {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 20px;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .pie_ai {
        width: calc(100% - 20px);
        min-height: 200px;

        margin: 25px auto;
        padding: 20px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 15px;

        border-radius: 25px;
        text-align: center;
    }

    .pie_ai h1,
    .pie_ai h2,
    .pie_ai h3 {
        position: static;
        margin: 0;
        transform: none;
        font-size: 15px;
    }

    .pie_ai p,
    .pie_ai a {
        font-size: 11px;
        text-align: center;
    }


    /* =====================================================
       WHATSAPP
       ===================================================== */

    .whatsapp-flotante {
        width: 55px;
        height: 55px;

        right: 15px;
        bottom: 15px;

        font-size: 27px;
    }
}


/* =========================================================
   CELULARES MUY PEQUEÑOS - 380px
   ========================================================= */

@media (max-width: 380px) {

    .header_ai {
        padding: 12px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .marca {
        width: 120px;
        height: 60px;
    }

    .header_ai h1 {
        font-size: 18px;
    }

    .menu {
        grid-template-columns: 1fr;
    }

    .menu a {
        font-size: 11px;
    }

    .producto-detalle {
        padding: 15px;
    }

    .producto-imagen {
        height: 240px;
    }

    .producto-info h2 {
        font-size: 19px;
    }

    .descripcion-producto {
        font-size: 11px;
    }

    .pie_ai {
        padding: 15px;
    }

    .pie_ai h1,
    .pie_ai h2,
    .pie_ai h3 {
        font-size: 14px;
    }
}

/* =========================================================
   VALORES - RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    /* Contenedor principal */
    .contenedor-valores {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        padding: 10px 15px 30px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;

        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* TODOS los valores */
    .contenedor-valores .info-empresa1 {
        width: 100% !important;
        max-width: 380px !important;
        min-width: 0 !important;

        margin: 0 auto !important;
        padding: 25px 20px !important;

        box-sizing: border-box !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        text-align: center !important;
    }

    /* Imágenes */
    .contenedor-valores .info-empresa1 img {
        width: 85px !important;
        height: 85px !important;
        max-width: 85px !important;

        object-fit: contain !important;

        margin: 0 auto 15px !important;
    }

    /* Títulos */
    .contenedor-valores .info-empresa1 .descripcion {
        width: 100% !important;

        margin: 5px 0 15px !important;

        font-size: 21px !important;
        line-height: 1.2 !important;

        text-align: center !important;
    }

    /* Texto */
    .contenedor-valores .info-empresa1 > p:last-child {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;

        font-size: 14px !important;
        line-height: 1.6 !important;

        text-align: center !important;

        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Los últimos 3 valores */
    .contenedor-valores .ultimos-valores {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        gap: 20px !important;

        box-sizing: border-box !important;
    }

    .contenedor-valores .ultimos-valores .info-empresa1 {
        width: 100% !important;
        max-width: 380px !important;
        min-width: 0 !important;

        margin: 0 auto !important;
    }

    /* Evita que el <br> de Eficiencia provoque problemas */
    .contenedor-valores .ultimos-valores br {
        display: none !important;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .contenedor-valores {
        width: 100% !important;
        padding: 10px 12px 25px !important;
        gap: 18px !important;
    }

    .contenedor-valores .info-empresa1,
    .contenedor-valores .ultimos-valores .info-empresa1 {
        width: 100% !important;
        max-width: 360px !important;

        padding: 22px 18px !important;

        box-sizing: border-box !important;
    }

    .contenedor-valores .info-empresa1 img {
        width: 75px !important;
        height: 75px !important;
        max-width: 75px !important;
    }

    .contenedor-valores .info-empresa1 .descripcion {
        font-size: 20px !important;
    }

    .contenedor-valores .info-empresa1 > p:last-child {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
}