/* ================================================================
   MejorHosting.cl — Design System v1.0
   "The Authoritative Comparison"

   Filosofía: Trust + Clarity + Action
   - Datos como protagonistas (precios y specs son los héroes)
   - Editorial + comercial sin tensión
   - Un solo cambio de variable actualiza todo el sitio

   Cómo usarlo:
   - PHP templates: usar clases .mh-* directamente
   - Elementor: las variables CSS se heredan en todos los widgets
   - Override: class modifier (--modifier) sobre el componente base
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ================================================================
   1. TOKENS — La única fuente de verdad
   ================================================================ */

:root {

  /* ── Colores de marca ── */
  --mh-blue:          #1d4ed8;
  --mh-blue-dark:     #1e3a8a;
  --mh-blue-mid:      #2563eb;
  --mh-blue-light:    #dbeafe;
  --mh-blue-xlight:   #eff6ff;

  /* ── Colores semánticos ── */
  --mh-green:         #059669;
  --mh-green-light:   #d1fae5;

  /* Verde "Contratar" */
  --mh-forest:        #00A550;
  --mh-forest-dark:   #007a3d;
  --mh-forest-light:  #e6f7ef;
  --mh-amber:         #d97706;
  --mh-amber-light:   #fef3c7;
  --mh-red:           #dc2626;
  --mh-red-light:     #fee2e2;
  --mh-purple:        #7c3aed;
  --mh-purple-light:  #ede9fe;
  --mh-teal:          #0d9488;
  --mh-teal-light:    #ccfbf1;

  /* ── Ranking medals ── */
  --mh-gold:          #f59e0b;
  --mh-gold-bg:       rgba(245,158,11,.10);
  --mh-gold-border:   rgba(245,158,11,.35);
  --mh-silver:        #94a3b8;
  --mh-silver-bg:     rgba(148,163,184,.10);
  --mh-bronze:        #b47c3c;
  --mh-bronze-bg:     rgba(180,120,60,.10);

  /* ── Grises / Superficies ── */
  --mh-white:         #ffffff;
  --mh-bg:            #f0f4f8;
  --mh-surface:       #ffffff;
  --mh-surface-2:     #f8fafc;
  --mh-surface-3:     #f1f5f9;
  --mh-border:        #e2e8f0;
  --mh-border-2:      #cbd5e1;

  /* ── Tipografía ── */
  --mh-text-900:      #0f172a;
  --mh-text-800:      #1e293b;
  --mh-text-700:      #334155;
  --mh-text-500:      #64748b;
  --mh-text-400:      #94a3b8;
  --mh-text-300:      #cbd5e1;

  /* ── Fuentes ── */
  --mh-font:          'Inter', 'Segoe UI', system-ui, sans-serif;
  --mh-font-mono:     'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;

  /* ── Escala tipográfica ── */
  --mh-text-xs:       11px;
  --mh-text-sm:       13px;
  --mh-text-base:     15px;
  --mh-text-md:       16px;
  --mh-text-lg:       18px;
  --mh-text-xl:       22px;
  --mh-text-2xl:      26px;
  --mh-text-3xl:      32px;

  /* ── Espaciado ── */
  --mh-space-1:       4px;
  --mh-space-2:       8px;
  --mh-space-3:       12px;
  --mh-space-4:       16px;
  --mh-space-5:       20px;
  --mh-space-6:       24px;
  --mh-space-8:       32px;
  --mh-space-10:      40px;
  --mh-space-12:      48px;

  /* ── Border radius ── */
  --mh-r-xs:          4px;
  --mh-r-sm:          6px;
  --mh-r-md:          10px;
  --mh-r-lg:          14px;
  --mh-r-xl:          20px;
  --mh-r-pill:        999px;

  /* ── Sombras ── */
  --mh-shadow-xs:     0 1px 3px rgba(15,23,42,.06);
  --mh-shadow-sm:     0 2px 8px rgba(15,23,42,.08);
  --mh-shadow-md:     0 4px 16px rgba(15,23,42,.10);
  --mh-shadow-lg:     0 8px 32px rgba(15,23,42,.12);
  --mh-shadow-hover:  0 12px 40px rgba(29,78,216,.16);

  /* ── Transiciones ── */
  --mh-transition:    all 0.18s ease;
  --mh-transition-md: all 0.24s ease;

  /* ── Contenedor — alineado con .wgl-container del tema (1170px) ── */
  --mh-container:     1170px;
  --mh-container-pad: 24px;

  /* ── Verde oscuro (usar en lugar de #065f46 hardcodeado) ── */
  --mh-green-dark:    #065f46;
}


/* ================================================================
   2. RESET LOCAL — Solo dentro de componentes .mh-*
   ================================================================ */

.mh-reset, .mh-reset * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ================================================================
   3. LAYOUT — Contenedor y wrapper
   ================================================================ */

.mh-wrap {
  width: 100%;
  max-width: var(--mh-container);
  margin-inline: auto;
  padding-inline: var(--mh-container-pad);
  padding-bottom: var(--mh-space-12);
}

.mh-section {
  background: var(--mh-surface);
  border-radius: var(--mh-r-lg);
  box-shadow: var(--mh-shadow-sm);
  padding: var(--mh-space-6) var(--mh-space-6);
  margin-bottom: var(--mh-space-6);
  border: 1px solid var(--mh-border);
}

.mh-section__title {
  font-family: var(--mh-font);
  font-size: var(--mh-text-base);
  font-weight: 700;
  color: var(--mh-text-800);
  margin: 0 0 var(--mh-space-4);
  padding-bottom: var(--mh-space-3);
  border-bottom: 2px solid var(--mh-border);
  display: flex;
  align-items: center;
  gap: var(--mh-space-2);
}

.mh-section__title i,
.mh-section__title svg {
  color: var(--mh-blue);
  font-size: var(--mh-text-sm);
}


/* ================================================================
   4. BOTONES — Sistema unificado
   ================================================================ */

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mh-space-2);
  padding: 10px 22px;
  border-radius: var(--mh-r-md);
  font-family: var(--mh-font);
  font-size: var(--mh-text-sm);
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--mh-transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Primario */
.mh-btn--primary {
  background: linear-gradient(135deg, var(--mh-blue-mid), var(--mh-blue));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(29,78,216,.25);
}
.mh-btn--primary:hover {
  background: linear-gradient(135deg, var(--mh-blue), var(--mh-blue-dark));
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--mh-shadow-hover);
}

/* Outline */
.mh-btn--outline {
  background: transparent;
  color: var(--mh-blue) !important;
  border-color: var(--mh-blue);
}
.mh-btn--outline:hover {
  background: var(--mh-blue-xlight);
  color: var(--mh-blue) !important;
  transform: translateY(-1px);
}

/* Ghost */
.mh-btn--ghost {
  background: var(--mh-surface-3);
  color: var(--mh-text-700) !important;
  border-color: var(--mh-border);
}
.mh-btn--ghost:hover {
  background: var(--mh-border);
  color: var(--mh-text-800) !important;
}

/* Success / Contratar — #00A550 */
.mh-btn--success {
  background: linear-gradient(135deg, var(--mh-forest, #00A550), var(--mh-forest-dark, #007a3d));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,165,80,.28);
}
.mh-btn--success:hover {
  background: linear-gradient(135deg, var(--mh-forest-dark, #007a3d), #005c2e);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,165,80,.38);
}
/* Legacy alias */
.mh-btn--success-emerald {
  background: linear-gradient(135deg, #10b981, var(--mh-green));
  color: #fff !important;
  border-color: transparent;
}

/* Tamaños */
.mh-btn--sm { padding: 7px 14px; font-size: var(--mh-text-xs); }
.mh-btn--lg { padding: 13px 28px; font-size: var(--mh-text-base); }
.mh-btn--block { width: 100%; }


/* ================================================================
   5. BADGES / TAGS — Sistema semántico
   ================================================================ */

.mh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--mh-r-pill);
  font-family: var(--mh-font);
  font-size: var(--mh-text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid;
}

/* Variantes semánticas */
.mh-badge--blue   { background: var(--mh-blue-xlight);   color: var(--mh-blue);     border-color: var(--mh-blue-light); }
.mh-badge--green  { background: var(--mh-green-light);   color: var(--mh-green);    border-color: rgba(5,150,105,.25); }
.mh-badge--amber  { background: var(--mh-amber-light);   color: var(--mh-amber);    border-color: rgba(217,119,6,.25); }
.mh-badge--red    { background: var(--mh-red-light);     color: var(--mh-red);      border-color: rgba(220,38,38,.2); }
.mh-badge--purple { background: var(--mh-purple-light);  color: var(--mh-purple);   border-color: rgba(124,58,237,.2); }
.mh-badge--teal   { background: var(--mh-teal-light);    color: var(--mh-teal);     border-color: rgba(13,148,136,.2); }
.mh-badge--gray   { background: var(--mh-surface-3);     color: var(--mh-text-500); border-color: var(--mh-border); }

/* Variantes de ranking (posición) */
.mh-badge--gold   { background: var(--mh-gold-bg);   color: var(--mh-gold);   border-color: var(--mh-gold-border); }
.mh-badge--silver { background: var(--mh-silver-bg); color: var(--mh-silver); border-color: rgba(148,163,184,.35); }
.mh-badge--bronze { background: var(--mh-bronze-bg); color: var(--mh-bronze); border-color: rgba(180,120,60,.3); }

/* Tag (más compacto, sin borde visible) */
.mh-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--mh-r-pill);
  font-size: var(--mh-text-xs);
  font-weight: 600;
  background: var(--mh-blue-xlight);
  color: var(--mh-blue);
  border: 1px solid var(--mh-blue-light);
  white-space: nowrap;
}


/* ================================================================
   6. RATING — Estrellas y puntuación
   ================================================================ */

.mh-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--mh-space-2);
  flex-wrap: wrap;
}

.mh-stars {
  display: inline-flex;
  gap: 2px;
}

.mh-star {
  font-size: 15px;
  line-height: 1;
}
.mh-star--full  { color: var(--mh-gold); }
.mh-star--half  { color: var(--mh-gold); opacity: .6; }
.mh-star--empty { color: var(--mh-text-300); }

.mh-rating-num {
  font-family: var(--mh-font-mono);
  font-size: var(--mh-text-xl);
  font-weight: 700;
  color: var(--mh-text-800);
  line-height: 1;
}

.mh-rating-cnt {
  font-size: var(--mh-text-xs);
  color: var(--mh-text-400);
}

.mh-rating--none .mh-rating-na {
  font-size: var(--mh-text-sm);
  color: var(--mh-text-400);
  font-style: italic;
}


/* ================================================================
   7. PRECIO — Visualización monetaria
   ================================================================ */

.mh-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.mh-price__from {
  font-size: var(--mh-text-xs);
  font-weight: 700;
  color: var(--mh-text-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mh-price__amount {
  font-family: var(--mh-font-mono);
  font-size: var(--mh-text-xl);
  font-weight: 800;
  color: var(--mh-blue);
  line-height: 1;
}

.mh-price__period {
  font-size: var(--mh-text-sm);
  color: var(--mh-text-400);
}

.mh-price__original {
  font-size: var(--mh-text-sm);
  color: var(--mh-text-400);
  text-decoration: line-through;
}


/* ================================================================
   8. SPEC ROW — Fila de especificación técnica
   ================================================================ */

.mh-spec-row {
  display: flex;
  align-items: center;
  gap: var(--mh-space-3);
  padding: 10px var(--mh-space-3);
  background: var(--mh-surface-2);
  border-radius: var(--mh-r-sm);
  border: 1px solid var(--mh-border);
}

.mh-spec-row__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--mh-blue-xlight);
  border-radius: var(--mh-r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mh-spec-row__icon i { font-size: var(--mh-text-xs); color: var(--mh-blue); }

.mh-spec-row__body { flex: 1; min-width: 0; }

.mh-spec-row__label {
  display: block;
  font-size: var(--mh-text-xs);
  color: var(--mh-text-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 2px;
  font-family: var(--mh-font-mono);
}

.mh-spec-row__value {
  display: block;
  font-size: var(--mh-text-sm);
  font-weight: 600;
  color: var(--mh-text-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Grid 2-columnas de specs */
.mh-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mh-space-2) var(--mh-space-4);
}


/* ================================================================
   9. PLAN CARD — Tarjeta de plan/servicio
   ================================================================ */

.mh-plan-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-r-lg);
  background: var(--mh-surface);
  overflow: hidden;
  transition: var(--mh-transition-md);
}

.mh-plan-card:hover {
  box-shadow: var(--mh-shadow-lg);
  transform: translateY(-3px);
  border-color: var(--mh-blue-light);
}

.mh-plan-card--featured {
  border-color: var(--mh-blue);
  box-shadow: 0 0 0 2px rgba(29,78,216,.12), var(--mh-shadow-md);
}

/* Cabecera del plan */
.mh-plan-card__head {
  padding: var(--mh-space-5) var(--mh-space-5) var(--mh-space-4);
  background: linear-gradient(135deg, var(--mh-blue-dark) 0%, var(--mh-blue) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mh-plan-card__head::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

/* Variante verde (VPS/Dedicados) */
.mh-plan-card--alt .mh-plan-card__head {
  background: linear-gradient(135deg, #065f46 0%, var(--mh-green) 100%);
}

.mh-plan-card__name {
  font-size: var(--mh-text-base);
  font-weight: 700;
  margin: 0 0 var(--mh-space-3);
  line-height: 1.2;
  color: #fff;
}

.mh-plan-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.mh-plan-card__price-from {
  font-size: var(--mh-text-xs);
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mh-plan-card__price {
  font-family: var(--mh-font-mono);
  font-size: var(--mh-text-xl);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.mh-plan-card__period {
  font-size: var(--mh-text-xs);
  opacity: .75;
}

/* Cuerpo del plan: grid 2-col de specs */
.mh-plan-card__specs {
  padding: var(--mh-space-4) var(--mh-space-5);
  flex: 1;
}

.mh-plan-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mh-space-2);
}

.mh-plan-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px var(--mh-space-2);
  background: var(--mh-surface-2);
  border-radius: var(--mh-r-sm);
  font-size: var(--mh-text-xs);
  min-width: 0;
}

.mh-plan-spec i { font-size: 10px; flex-shrink: 0; width: 12px; text-align: center; }
.mh-plan-spec--check i { color: var(--mh-green); }
.mh-plan-spec:not(.mh-plan-spec--check) i { color: var(--mh-text-400); }

.mh-plan-spec__inner { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.mh-plan-spec__label {
  font-size: 10px;
  color: var(--mh-text-400);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-family: var(--mh-font-mono);
  line-height: 1;
  margin-bottom: 1px;
}

.mh-plan-spec__value {
  font-size: var(--mh-text-xs);
  font-weight: 600;
  color: var(--mh-text-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.mh-plan-spec--check .mh-plan-spec__value { color: #065f46; }

/* Pie del plan */
.mh-plan-card__footer {
  padding: var(--mh-space-4) var(--mh-space-5);
  border-top: 1px solid var(--mh-border);
}


/* ================================================================
   10. PROVIDER CARD — Tarjeta de proveedor (ranking)
   ================================================================ */

.mh-card {
  background: var(--mh-surface);
  border-radius: var(--mh-r-lg);
  border: 1px solid var(--mh-border);
  box-shadow: var(--mh-shadow-sm);
  margin-bottom: var(--mh-space-3);
  position: relative;
  overflow: hidden;
  transition: var(--mh-transition-md);
}

.mh-card:hover {
  box-shadow: var(--mh-shadow-md);
  border-color: var(--mh-blue-light);
}

/* Acento lateral por posición */
.mh-card--pos-1 { border-left: 4px solid var(--mh-gold); }
.mh-card--pos-2 { border-left: 4px solid var(--mh-silver); }
.mh-card--pos-3 { border-left: 4px solid var(--mh-bronze); }

/* Logo panel */
.mh-card__logo {
  background: var(--mh-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--mh-space-3) var(--mh-space-4);
  gap: var(--mh-space-2);
  border-right: 1px solid var(--mh-border);
}

.mh-card__logo img {
  object-fit: contain;
  display: block;
}

.mh-card__visit {
  font-size: var(--mh-text-xs);
  font-weight: 600;
  color: var(--mh-blue) !important;
  text-align: center;
  text-decoration: none !important;
  display: block;
}
.mh-card__visit:hover { text-decoration: underline !important; }

/* Features / nombre empresa */
.mh-card__features { overflow: visible; }

.mh-card__name {
  font-family: var(--mh-font);
  font-size: var(--mh-text-base);
  font-weight: 700;
  color: var(--mh-text-800);
  line-height: 1.3;
  margin-bottom: var(--mh-space-2);
}

/* Specs inline (ranking table row) */
.mh-spec {
  display: flex;
  align-items: center;
  gap: var(--mh-space-1);
  margin-bottom: var(--mh-space-1);
}

.mh-spec__icon { font-size: var(--mh-text-xs); color: var(--mh-blue); width: 14px; flex-shrink: 0; text-align: center; }
.mh-spec__label { font-size: var(--mh-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--mh-text-700); white-space: nowrap; flex-shrink: 0; }
.mh-spec__value { font-size: var(--mh-text-xs); color: var(--mh-text-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Precio en ranking table */
.mh-price__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mh-space-2);
  padding: 10px 18px;
  border-radius: var(--mh-r-md);
  background: linear-gradient(135deg, var(--mh-blue-mid), var(--mh-blue));
  color: #fff !important;
  font-size: var(--mh-text-sm);
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--mh-transition);
  box-shadow: 0 2px 8px rgba(29,78,216,.2);
  border: none;
  cursor: pointer;
}
.mh-price__cta:hover {
  background: linear-gradient(135deg, var(--mh-blue), var(--mh-blue-dark));
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--mh-shadow-hover);
}

/* Badge de posición */
.mh-card__badges {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: row;
  gap: 3px;
}

.mh-card__badge {
  font-size: var(--mh-text-xs);
  font-weight: 700;
  padding: 4px 10px;
  line-height: 1.4;
  border-radius: 0 0 var(--mh-r-sm) 0;
}

.mh-badge--gold-solid   { background: linear-gradient(135deg, var(--mh-gold), #e08c00); color: #fff; box-shadow: 0 2px 8px rgba(224,144,0,.3); }
.mh-badge--silver-solid { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.mh-badge--bronze-solid { background: linear-gradient(135deg, #b47c3c, #92622d); color: #fff; }
.mh-badge--default      { background: var(--mh-surface-3); color: var(--mh-text-500); border: 1px solid var(--mh-border); }
.mh-badge--extra        { background: linear-gradient(135deg, var(--mh-green), #047857); color: #fff; border-radius: 0 0 var(--mh-r-sm) 0; }


/* ================================================================
   11. TABS — Navegación por pestañas
   ================================================================ */

.mh-tabs { margin-bottom: var(--mh-space-6); }

.mh-tabs__nav {
  display: flex;
  gap: 3px;
  border-bottom: 2px solid var(--mh-border);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.mh-tabs__btn {
  padding: 11px 20px;
  font-family: var(--mh-font);
  font-size: var(--mh-text-sm);
  font-weight: 600;
  color: var(--mh-text-500);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--mh-transition);
  white-space: nowrap;
  border-radius: var(--mh-r-sm) var(--mh-r-sm) 0 0;
  letter-spacing: 0.01em;
}

.mh-tabs__btn:hover {
  color: var(--mh-blue);
  background: var(--mh-blue-xlight);
}

.mh-tabs__btn.is-active {
  color: var(--mh-blue);
  border-bottom-color: var(--mh-blue);
  background: var(--mh-surface);
}

.mh-tabs__pane {
  display: none;
  background: var(--mh-surface);
  border: 1px solid var(--mh-border);
  border-top: none;
  border-radius: 0 0 var(--mh-r-lg) var(--mh-r-lg);
  padding: var(--mh-space-6);
  box-shadow: var(--mh-shadow-sm);
}

.mh-tabs__pane.is-active { display: block; }

.mh-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--mh-space-4);
}


/* ================================================================
   12. RANKING HEADER — Cabecera columnas de tabla
   ================================================================ */

.mh-ranking__header {
  display: grid;
  padding: var(--mh-space-2) var(--mh-space-5) var(--mh-space-2) 0;
  background: var(--mh-surface-3);
  border-radius: var(--mh-r-md) var(--mh-r-md) 0 0;
  border: 1px solid var(--mh-border);
  border-bottom: none;
  margin-bottom: 0;
}

.mh-ranking__header > div {
  font-family: var(--mh-font-mono);
  font-size: var(--mh-text-xs);
  font-weight: 600;
  color: var(--mh-text-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ================================================================
   13. HERO CARD — Tarjeta principal del proveedor
   ================================================================ */

.mh-hero {
  background: var(--mh-surface);
  border-radius: var(--mh-r-lg);
  border: 1px solid var(--mh-border);
  box-shadow: var(--mh-shadow-md);
  overflow: hidden;
  margin-bottom: var(--mh-space-6);
}

.mh-hero__top {
  display: grid;
  grid-template-columns: 1fr auto;
}

.mh-hero__info {
  padding: var(--mh-space-6) var(--mh-space-6) var(--mh-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--mh-space-4);
}

.mh-hero__logo {
  flex-shrink: 0;
  width: 150px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mh-surface-2);
  border-radius: var(--mh-r-md);
  padding: var(--mh-space-2) var(--mh-space-3);
  border: 1px solid var(--mh-border);
}

.mh-hero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.mh-hero__title {
  font-family: var(--mh-font);
  font-size: var(--mh-text-2xl);
  font-weight: 800;
  color: var(--mh-text-900);
  margin: 0 0 4px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mh-hero__subtitle {
  font-size: var(--mh-text-sm);
  color: var(--mh-text-500);
  margin: 0;
}

.mh-hero__screenshot {
  width: 290px;
  min-height: 240px;
  background: var(--mh-surface-3);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mh-hero__screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mh-hero__screenshot:hover img { transform: scale(1.04); }

.mh-hero__screenshot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(15,23,42,.55);
  padding: var(--mh-space-1) var(--mh-space-2);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--mh-font-mono);
  backdrop-filter: blur(4px);
}

.mh-hero__contact {
  background: var(--mh-surface-2);
  border-top: 1px solid var(--mh-border);
  padding: var(--mh-space-4) var(--mh-space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--mh-space-5);
  align-items: center;
}

.mh-contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--mh-space-2);
  font-size: var(--mh-text-sm);
  color: var(--mh-text-700);
  text-decoration: none !important;
  transition: var(--mh-transition);
}

.mh-contact-item i { font-size: var(--mh-text-xs); color: var(--mh-text-400); width: 14px; text-align: center; }
.mh-contact-item:hover { color: var(--mh-blue); }
.mh-contact-item:hover i { color: var(--mh-blue); }

.mh-social-links { margin-left: auto; display: flex; gap: var(--mh-space-2); }

.mh-social-link {
  width: 30px;
  height: 30px;
  border-radius: var(--mh-r-sm);
  background: var(--mh-surface-3);
  border: 1px solid var(--mh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mh-text-500);
  font-size: var(--mh-text-xs);
  text-decoration: none !important;
  transition: var(--mh-transition);
}

.mh-social-link:hover {
  background: var(--mh-blue);
  color: #fff;
  border-color: var(--mh-blue);
}


/* ================================================================
   14. CONTENT — Bloques de contenido editorial
   ================================================================ */

.mh-content {
  font-family: var(--mh-font);
  font-size: var(--mh-text-base);
  line-height: 1.75;
  color: var(--mh-text-700);
}

.mh-content p { margin-bottom: 14px; }
.mh-content ul { padding-left: 18px; margin-bottom: 14px; }
.mh-content li { margin-bottom: 4px; }
.mh-content a { color: var(--mh-blue); }
.mh-content a:hover { text-decoration: underline; }
.mh-content h2, .mh-content h3 { color: var(--mh-text-800); margin-bottom: 10px; }


/* ================================================================
   15. SEÑALES / MÉTRICAS — Strips de datos clave
   ================================================================ */

.mh-signals-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--mh-space-3);
}

.mh-signal-card {
  background: var(--mh-surface-2);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-r-md);
  padding: var(--mh-space-4);
}

.mh-signal-card .mh-label {
  font-family: var(--mh-font-mono);
  font-size: var(--mh-text-xs);
  color: var(--mh-text-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  display: block;
}

.mh-signal-card .mh-value {
  font-family: var(--mh-font-mono);
  font-size: var(--mh-text-xl);
  font-weight: 700;
  color: var(--mh-text-800);
  line-height: 1;
  display: block;
}

.mh-signal-card .mh-sub {
  font-size: var(--mh-text-xs);
  color: var(--mh-text-400);
  margin-top: 3px;
  display: block;
}


/* ================================================================
   16. CALLOUTS — Cajas informativas
   ================================================================ */

.mh-callout {
  border: 1px solid;
  border-radius: var(--mh-r-md);
  padding: var(--mh-space-5);
  margin: var(--mh-space-5) 0;
  font-size: var(--mh-text-base);
  line-height: 1.7;
}

.mh-callout--info   { border-color: rgba(29,78,216,.25);  background: rgba(29,78,216,.05); }
.mh-callout--warn   { border-color: rgba(217,119,6,.25);  background: rgba(217,119,6,.05); }
.mh-callout--tip    { border-color: rgba(5,150,105,.25);  background: rgba(5,150,105,.05); }
.mh-callout--alert  { border-color: rgba(220,38,38,.2);   background: rgba(220,38,38,.04); }

.mh-callout__label {
  font-family: var(--mh-font-mono);
  font-size: var(--mh-text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--mh-space-2);
  display: block;
}

.mh-callout--info  .mh-callout__label { color: var(--mh-blue); }
.mh-callout--warn  .mh-callout__label { color: var(--mh-amber); }
.mh-callout--tip   .mh-callout__label { color: var(--mh-green); }
.mh-callout--alert .mh-callout__label { color: var(--mh-red); }


/* ================================================================
   17. RESPONSIVE — Breakpoints globales
   ================================================================ */

@media (max-width: 900px) {
  :root { --mh-container-pad: 16px; }
  .mh-specs-grid { grid-template-columns: 1fr; }
  .mh-hero__top { grid-template-columns: 1fr; }
  .mh-hero__screenshot { width: 100%; height: 200px; order: -1; }
  .mh-plans-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  .mh-hero__info { padding: var(--mh-space-5) var(--mh-space-4); }
  .mh-hero__contact { padding: var(--mh-space-3) var(--mh-space-4); }
  .mh-hero__title { font-size: var(--mh-text-xl); }
  .mh-section { padding: var(--mh-space-4) var(--mh-space-4); }
  .mh-tabs__pane { padding: var(--mh-space-4) var(--mh-space-3); }
  .mh-plans-grid { grid-template-columns: 1fr; }
  .mh-plan-specs-grid { grid-template-columns: 1fr; }
  .mh-social-links { margin-left: 0; }
  .mh-hero__logo { width: 120px; height: 60px; }
  .mh-signals-strip { grid-template-columns: 1fr 1fr; }
  .mh-rating-num { font-size: var(--mh-text-lg); }
}
