/*
 * ecommingredients — sección «ingredientes» de la ficha de producto (rediseño PDP 2026).
 * Los estilos comunes (.mq-section, .mq-section__title) viven en el tema miriamquevedo.
 * Rejilla fija de tres columnas según el Figma (imagen 417x357, textos a 354px, separación 56px).
 */
.mq-ingredients__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
    padding: 0 70px;
}

.mq-ingredient {
    text-align: center;
    min-width: 0;
}

.mq-ingredient__name {
    font-family: var(--mq-text-font, "FiraSans", sans-serif) !important;
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    line-height: 102%;
    text-transform: none;
    color: #000000;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 26px;
}

.mq-ingredient__media {
    aspect-ratio: 417 / 357;
    background: #E9E6E3;
    overflow: hidden;
}

.mq-ingredient__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mq-ingredient__desc,
.mq-ingredient__desc p {
    font-family: var(--mq-text-font, "FiraSans", sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #000000;
    max-width: 354px;
    margin: 40px auto 0;
}

.mq-ingredient__desc p {
    margin: 0;
}

@media (max-width: 1199px) {
    .mq-ingredients__grid {
        gap: 32px;
        padding: 0 24px;
    }

    .mq-ingredient__name {
        font-size: 15px;
    }
}

/* Móvil (Figma 428px): bloques apilados, nombre 13px y descripción 10px */
@media (max-width: 991px) {
    .mq-ingredients__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding: 0;
    }

    .mq-ingredient__name {
        font-size: 13px;
        line-height: 140%;
        height: auto;
        min-height: 0;
        margin: 0 0 12px;
    }

    .mq-ingredient__media {
        aspect-ratio: 428 / 375;
    }

    .mq-ingredient__desc,
    .mq-ingredient__desc p {
        font-size: 10px;
        max-width: none;
        padding: 0 12px;
        margin-top: 18px;
    }
}
