.mlmed{--accent:#0783c6;color:#10243e}.mlmed h2{font-size:30px;margin:0 0 16px}.mlmed-search{width:100%;padding:15px!important;border:1px solid #dce6ed!important;border-radius:12px!important;margin-bottom:14px}.mlmed-tabs{display:flex;gap:10px;overflow:auto;padding-bottom:16px}.mlmed-tabs button{background:#eef6fa;color:#214766;border:0;border-radius:28px;padding:11px 20px;white-space:nowrap;cursor:pointer}.mlmed-tabs button.on{background:var(--accent);color:white}.mlmed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mlmed-card{display:flex;gap:16px;padding:18px;border:1px solid #e1e8ef;border-radius:14px;background:white;min-width:0}.mlmed-photo{width:38%;display:flex;align-items:center;justify-content:center;background:#f3f9fc;border-radius:9px;overflow:hidden;font-size:48px}.mlmed-photo img{max-width:100%;max-height:180px;object-fit:contain}.mlmed-info{flex:1;min-width:0}.mlmed-info h3{font-size:20px;margin:0 0 10px}.mlmed-info p{color:#61748a;font-size:14px}.mlmed-link{display:inline-block;background:var(--accent);color:#fff!important;border-radius:9px;padding:11px 15px;text-decoration:none!important}.mlmed-card[hidden]{display:none!important}@media(max-width:767px){.mlmed-grid{grid-template-columns:1fr}.mlmed-card{padding:12px}}

/* Imagen destacada del producto: encuadre completo, sin recortar */
.mlmed-photo{flex:0 0 38%;min-height:170px;box-sizing:border-box;padding:10px}
.mlmed-photo img{display:block;width:100%;height:100%;max-width:100%;max-height:220px;object-fit:contain;object-position:center}
.mlmed-placeholder{font-size:42px}
@media(max-width:767px){.mlmed-photo{min-height:130px}}

/* v1.3: navegación sin barra horizontal */
.mlmed-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 20px}.mlmed-filters label{font-size:14px;font-weight:600;color:#23445e}.mlmed-filters select{display:block;width:100%;max-width:100%;margin-top:7px;padding:12px 35px 12px 12px;background:#fff;color:#18344d;border:1px solid #dce6ed;border-radius:10px;min-height:46px}.mlmed-nav-buttons .mlmed-tabs,.mlmed-nav-tabs .mlmed-tabs{flex-wrap:wrap;overflow:visible;white-space:normal}.mlmed-nav-tabs .mlmed-tabs button{border-radius:8px 8px 0 0}@media(max-width:767px){.mlmed-filters{grid-template-columns:1fr;gap:10px}}

/* v1.4: cada dispositivo puede utilizar una navegación distinta. */
.mlmed .mlmed-tabs,.mlmed .mlmed-filters{display:none}
.mlmed.mlmed-nav-dropdown .mlmed-filters{display:grid}
.mlmed.mlmed-nav-buttons .mlmed-tabs,.mlmed.mlmed-nav-tabs .mlmed-tabs{display:flex}
.mlmed .mlmed-tabs button{transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.mlmed .mlmed-tabs button:focus-visible,.mlmed .mlmed-filters select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* v1.5: filtro opcional y artículos */
.mlmed-filters:has(>label:only-child){grid-template-columns:minmax(0,1fr)}
.mlmed-article-details{margin-top:12px}.mlmed-article-details summary{cursor:pointer;color:var(--accent);font-weight:600}.mlmed-article-body{padding:14px 0;line-height:1.65;overflow-wrap:anywhere}.mlmed-article-body img{max-width:100%;height:auto}
/* v1.8 - diseño editorial con destacados y paginación */
.mlmed-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.mlmed-featured-grid:empty{display:none}
.mlmed-grid{grid-template-columns:repeat(var(--mlmed-cols,3),minmax(0,1fr))}
.mlmed-grid .mlmed-card{flex-direction:column;gap:0;padding:0;overflow:hidden}
.mlmed-grid .mlmed-photo{width:100%!important;flex:0 0 auto!important;min-height:0!important;height:195px;max-height:none;padding:0;border-radius:0}
.mlmed-grid .mlmed-photo img{width:100%;height:100%;max-height:none;max-width:none;object-fit:cover}
.mlmed-grid .mlmed-info{padding:17px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.mlmed-grid .mlmed-info .mlmed-link{margin-top:auto}
.mlmed-featured-grid .mlmed-card{min-width:0}
.mlmed-featured-grid .mlmed-photo{min-width:0}
.mlmed-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin:22px 0}
.mlmed-pagination:empty{display:none}
.mlmed-pagination button{border:1px solid var(--accent);border-radius:9px;background:var(--accent);color:#fff;cursor:pointer;padding:11px 18px}
.mlmed-pagination button:disabled{opacity:.45;cursor:default}
.mlmed-pagination span{color:#42556b;font-size:14px}
@media(max-width:1024px){.mlmed-grid{grid-template-columns:repeat(var(--mlmed-cols-tablet,2),minmax(0,1fr))}}
@media(max-width:767px){.mlmed-featured-grid{grid-template-columns:1fr}.mlmed-grid{grid-template-columns:repeat(var(--mlmed-cols-mobile,1),minmax(0,1fr))}.mlmed-grid .mlmed-photo{height:205px}}

/* v1.9: mostrar imágenes completas en destacados horizontales y tarjetas verticales. */
.mlmed .mlmed-featured-grid .mlmed-photo,
.mlmed .mlmed-grid .mlmed-photo{box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px;min-width:0}
.mlmed .mlmed-featured-grid .mlmed-photo{height:190px;min-height:0}
.mlmed .mlmed-grid .mlmed-photo{height:195px;min-height:0!important}
.mlmed .mlmed-featured-grid .mlmed-photo img,
.mlmed .mlmed-grid .mlmed-photo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain!important;object-position:center;margin:auto}
@media(max-width:767px){.mlmed .mlmed-grid .mlmed-photo{height:205px}}

/* v2.0: En móviles TODAS las tarjetas, incluidos los destacados, son verticales. */
@media (max-width:767px) {
  .mlmed .mlmed-featured-grid,
  .mlmed .mlmed-grid { grid-template-columns: 1fr !important; }
  .mlmed .mlmed-featured-grid .mlmed-card,
  .mlmed .mlmed-featured-grid .mlmed-card.mlmed-featured,
  .mlmed .mlmed-grid .mlmed-card {
    display: flex;
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
  }
  .mlmed .mlmed-featured-grid .mlmed-card[hidden],
  .mlmed .mlmed-grid .mlmed-card[hidden] { display:none !important; }
  .mlmed .mlmed-featured-grid .mlmed-photo,
  .mlmed .mlmed-grid .mlmed-photo {
    width: 100% !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mlmed .mlmed-featured-grid .mlmed-photo img,
  .mlmed .mlmed-grid .mlmed-photo img { object-fit:contain !important; max-width:100%; max-height:100%; }
  .mlmed .mlmed-featured-grid .mlmed-info,
  .mlmed .mlmed-grid .mlmed-info { width:100%; box-sizing:border-box; padding:17px; }
}

/* v2.1: destacados móviles siempre con el mismo formato vertical que las tarjetas normales. */
@media screen and (max-width: 767px) {
  body .elementor .mlmed .mlmed-featured-grid,
  body .mlmed .mlmed-featured-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;}
  body .elementor .mlmed .mlmed-featured-grid > article.mlmed-card,
  body .mlmed .mlmed-featured-grid > article.mlmed-card {
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    width:100%!important;min-width:0!important;height:auto!important;
    padding:0!important;gap:0!important;overflow:hidden!important;
  }
  body .mlmed .mlmed-featured-grid > article.mlmed-card[hidden] {display:none!important;}
  body .elementor .mlmed .mlmed-featured-grid > article.mlmed-card > .mlmed-photo,
  body .mlmed .mlmed-featured-grid > article.mlmed-card > .mlmed-photo {
    display:flex!important;position:relative!important;order:0!important;
    width:100%!important;height:205px!important;min-height:0!important;
    flex:none!important;margin:0!important;border-radius:0!important;
    align-items:center!important;justify-content:center!important;
  }
  body .mlmed .mlmed-featured-grid > article.mlmed-card > .mlmed-photo img {
    display:block!important;width:100%!important;height:100%!important;
    max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  }
  body .elementor .mlmed .mlmed-featured-grid > article.mlmed-card > .mlmed-info,
  body .mlmed .mlmed-featured-grid > article.mlmed-card > .mlmed-info {
    display:flex!important;flex-direction:column!important;order:1!important;
    width:100%!important;min-width:0!important;flex:1 1 auto!important;
    padding:17px!important;margin:0!important;
  }
}

.mlmed .mlmed-link{border:0 solid transparent;transition:background-color .2s,color .2s,border-color .2s;box-sizing:border-box}
