.pqm-mm {
    overflow: auto;
    max-height: 55vh;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); /* shadow-2xl */
    box-sizing: border-box;
}
.pqm-mm *,
.pqm-mm *::before,
.pqm-mm *::after {
    box-sizing: border-box;
}

.pqm-mm-inner {
    max-width: 80rem;      /* max-w-7xl */
    margin: 0 auto;
    padding: 2rem 1.5rem;  /* py-8 px-6 */
}

.pqm-mm-grid {
    display: grid;
    grid-template-columns: 1fr; /* móvil: 1 columna */
    gap: 1.5rem;
}

/* md: 3 columnas de categorías (promo oculta) */
@media (min-width: 768px) {
    .pqm-mm-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* lg: 3 categorías + promo (4 columnas) o 3 si no hay promo */
@media (min-width: 1024px) {
    .pqm-mm-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
    .pqm-mm-grid.pqm-mm--promo {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- Bloque de categoría ---------- */
.pqm-mm-cat {
    margin-bottom: 1.5rem;
}
.pqm-mm-cat-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}
.pqm-mm-cat-icon {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 2px solid #f97316;
    color: #f97316;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
    overflow: hidden;
}
/* Cuando el icono es un SVG subido: sin borde de círculo, solo la imagen */
.pqm-mm-cat-icon--img {
    border: none;
    background: transparent;
}
.pqm-mm-cat-icon-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pqm-mm-cat-name {
    font-family: "AdihausDIN Bold 800", Sans-serif;
    color: #111827;
    font-size: .875rem;
    line-height: 1.25;
}
.pqm-mm-divider {
    border-top: 1px dashed #d1d5db;
    margin-bottom: .5rem;
}

/* ---------- Subcategoría ---------- */
.pqm-mm-sub {
    font-family: "AdihausDin Regular", Sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    font-size: .875rem;
    color: #4b5563;
    text-decoration: none;
    transition: color .15s ease;
}
.pqm-mm-sub:hover {
    color: #f97316;
}
.pqm-mm-arrow {
    flex: 0 0 auto;
    color: #9ca3af;
    transition: color .15s ease;
}
.pqm-mm-sub:hover .pqm-mm-arrow {
    color: #f97316;
}

/* ---------- Columna promocional ---------- */
.pqm-mm-promo-col {
    display: none; /* hidden lg:flex */
}
@media (min-width: 1024px) {
    .pqm-mm-promo-col {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tarjeta DECCA: solo imagen */
.pqm-mm-promo-card {
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
    line-height: 0;
}
.pqm-mm-promo-img {
    display: block;
    width: 100%;
    aspect-ratio: 250 / 118;
    height: auto;
    object-fit: cover;
}

/* ---------- Tarjeta de asesoría ---------- */
.pqm-mm-help {
    border: 1px solid #ffedd5;
    background: #fff7ed;
    border-radius: .75rem;
    padding: 1rem;
}
.pqm-mm-help-img {
    display: block;
    width: 100%;
    max-width: 250px;
    aspect-ratio: 250 / 118;
    height: auto;
    object-fit: cover;
    border-radius: .5rem;
    margin: 0 auto .75rem;
}
.pqm-mm-help-title {
    font-size: .75rem;
    font-weight: 600;
    color: #c2410c;
    margin: 0 0 .25rem;
}
.pqm-mm-help-text {
    font-size: .75rem;
    color: #ea580c;
    margin: 0 0 .75rem;
}
.pqm-mm-help-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    background: #f97316;
    text-decoration: none;
    padding: .375rem .75rem;
    border-radius: 9999px;
    transition: background-color .15s ease;
}
.pqm-mm-help-btn:hover {
    background: #ea580c;
}
.pqm-mm-arrow-inline {
    flex: 0 0 auto;
}

/* ---------- Sub-árbol de subcategorías (niveles anidados) ---------- */
.pqm-mm-group {
    margin: .1rem 0 .4rem;
}
.pqm-mm-group-title {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;            /* gray-700 */
    padding: .25rem 0;
    text-decoration: none;
}
a.pqm-mm-group-title {
    transition: color .15s ease;
}
a.pqm-mm-group-title:hover {
    color: #f97316;
}
/* Sangría + guía de cada nivel anidado */
.pqm-mm-group .pqm-mm-sublist {
    margin-left: .5rem;
    padding-left: .6rem;
    border-left: 1px solid #f3f4f6;   /* gray-100 */
}
