/* =========================================================
   Matmap UX Accordion — <details> con estilo Matmap (refinado)
   ========================================================= */
.mmuxa-accordion{
  margin:20px 0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#222;
}

/* ---------- Item / tarjeta ---------- */
.mmuxa-item{
  border:1.5px solid var(--mmuxp-primary,#3a3972);
  border-radius:12px;
  background:#fff;
  margin-bottom:14px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.03);
}

/* ---------- Summary (cabecera) ---------- */
.mmuxa-item > summary{
  list-style:none;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:#fff;
  color:var(--mmuxp-primary,#3a3972);
  font-weight:600;                    /* Solo aquí semibold */
  font-size:16px; line-height:1.25;
  cursor:pointer; user-select:none;
}
.mmuxa-item > summary::-webkit-details-marker{ display:none; }

/* Chevron */
.mmuxa-item > summary::after{
  content:"";
  width:10px; height:10px; flex:0 0 10px;
  border:2px solid var(--mmuxp-primary,#3a3972);
  border-top-color:transparent; border-left-color:transparent;
  transform:rotate(45deg);
  transition:transform .2s ease;
}
.mmuxa-item[open] > summary{ background:var(--mmuxp-muted,#f3f4f6); }
.mmuxa-item[open] > summary::after{ transform:rotate(-135deg); }

/* ---------- Body (contenido) ---------- */
.mmuxa-body{
  padding:16px;
  border-top:1.5px solid var(--mmuxp-primary,#3a3972);
  background:#fff;
  color:#444;
  font-size:15px; line-height:1.6;
}

/* Normalizamos pesos para que NO se vea todo en negrita */
.mmuxa-body,
.mmuxa-body p,
.mmuxa-body li,
.mmuxa-body td,
.mmuxa-body th,
.mmuxa-body span{
  font-weight:400 !important;
}
.mmuxa-body strong, .mmuxa-body b{ font-weight:600 !important; }

/* Tipografía y espacios del texto */
.mmuxa-body p{ margin:0 0 10px; }
.mmuxa-body ul, .mmuxa-body ol{
  margin:8px 0 10px 18px;
}
.mmuxa-body ul{ list-style:disc; }
.mmuxa-body ol{ list-style:decimal; }

/* ---------- Tabla de atributos ---------- */
.mmuxa-body table{ width:100%; border-collapse:collapse; }
.mmuxa-body .shop_attributes th,
.mmuxa-body .shop_attributes td{
  padding:10px 12px;
  border-bottom:1px solid var(--mmuxp-border,#e5e7eb);
  text-align:left;
  vertical-align:top;
}
.mmuxa-body .shop_attributes th{
  width:32%;
  color:var(--mmuxp-primary,#3a3972);
  background:#fafafa;
  font-weight:600 !important;       /* cabecera semibold */
}
.mmuxa-body .shop_attributes td{
  color:#2a2a2a;
  font-weight:400 !important;
}

/* ---------- Ocultar duplicados fuera del acordeón ---------- */
.single-product .woocommerce-tabs,
.single-product table.shop_attributes,
.single-product .woocommerce-product-attributes{
  display:none !important;
}
.mmuxa-accordion table.shop_attributes,
.mmuxa-accordion .woocommerce-product-attributes{
  display:table !important;
}

/* ---------- Responsive ---------- */
@media (max-width:768px){
  .mmuxa-item > summary{ padding:12px 14px; font-size:15px; }
  .mmuxa-body{ padding:14px; font-size:14.5px; }
  .mmuxa-body .shop_attributes th{ width:40%; }
}
