/* qma-mssp-global-local.css
 * Extraído de WPCode qma-global — page source qma.mx 2026-04-18
 * Contiene: .qma-chip .qma-mssp-wrap .qma-sec .qma-card .qma-btn
 *           .qma-benchmark-card .qma-grid .qma-minimenu .qma-proof
 * FUENTE DE VERDAD: WPCode snippet activo en qma.mx
 */

/* ===============================================================
   QMA — CSS Global (Cards + Botones + MiniMenu + FAQ + Grids)
   WPCode > CSS Snippet > Site Wide
   =============================================================== */

/* ===== Base wrap ===== */
.qma-mssp-wrap,
.qma-mdr-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  font-family: inherit;
  color: inherit;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.qma-mssp-wrap > :first-child,
.qma-mdr-wrap > :first-child {
  margin-top: 0 !important;
}
.qma-mssp-wrap > :first-child > :first-child,
.qma-mdr-wrap > :first-child > :first-child {
  margin-top: 0 !important;
}

.qma-sec h2      { margin: 0 0 18px; padding-top: 8px; }
.qma-sec         { padding: 36px 0 24px; }  /* opcional, más generoso */

/* ===== Hero ===== */
.qma-mssp-hero,
.qma-mdr-hero {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.qma-mssp-hero h1,
.qma-mdr-hero h1 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.15;
}
.qma-mssp-hero p,
.qma-mdr-hero p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.55;
  max-width: 78ch;
}

/* ===== CTA containers ===== */
.qma-mssp-cta,
.qma-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ===== Botones ===== */
.qma-btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.qma-btn-primary   { background: #0b5cff; color: #fff; }
.qma-btn-secondary { background: transparent; border: 1px solid rgba(0,0,0,.22); color: inherit; }
.qma-btn-outline  { background: transparent; border: 1.5px solid rgba(8,68,128,0.40); color: #084480; }
.qma-btn-outline:hover { border-color: #084480; text-decoration: none; }

/* ===== Mini-menu ===== */
.qma-minimenu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.qma-minimenu a {
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  opacity: .95;
  text-decoration: none;
  color: inherit;
}
.qma-minimenu a:hover { border-color: rgba(0,0,0,.26); opacity: 1; }
.qma-minimenu .qma-minimenu-primary { border-color: rgba(11,92,255,.35); }

/* ===== Proof chips ===== */
.qma-proof {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.qma-proof::-webkit-scrollbar { height: 6px; }
.qma-proof .qma-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
.qma-chip {
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  opacity: .92;
}

/* ===== Secciones ===== */
.qma-sec {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  overflow: visible;
}
.qma-sec h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}
.qma-sec p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 90ch;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.qma-sec span {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.qma-list { margin: 0; padding-left: 18px; }
.qma-list li {
  margin: 8px 0;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* ===== Grid utilitarios (clases) ===== */
.qma-grid {
  display: grid;
  gap: 16px;
  overflow: visible;
}
.qma-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qma-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== Grids fijos por ID (bloques HTML en Elementor) ===== */

/* 2x2 — Cómo operamos (/mssp/) */
#qma-operamos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

/* 3x2 — Qué incluye (/mssp/) */
#qma-incluye-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

/* ===== Cards ===== */
.qma-card {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
  overflow: visible;
}
.qma-card:hover {
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.qma-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.qma-card p  { margin: 0; font-size: 15px; line-height: 1.55; max-width: none; }

.qma-card a.qma-card-link { display: block; height: 100%; text-decoration: none; }

.qma-card h3 a,
.qma-grid .qma-card h3 a {
  color: var(--ast-global-color-0) !important;
  text-decoration: none;
}
.qma-card h3 a:hover,
.qma-card h3 a:focus,
.qma-grid .qma-card h3 a:hover,
.qma-grid .qma-card h3 a:focus {
  color: var(--ast-global-color-1) !important;
}

/* ===== Steps ===== */
.qma-steps { counter-reset: qmastep; }
.qma-step {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 16px;
  overflow: visible;
}
.qma-step h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.qma-step h3:before {
  counter-increment: qmastep;
  content: counter(qmastep) ". ";
  font-weight: 700;
}

/* ===== FAQ ===== */
.qma-faq details {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 12px 14px;
  overflow: visible;
}
.qma-faq details + details { margin-top: 10px; }
.qma-faq summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
}
.qma-faq summary::-webkit-details-marker { display: none; }
.qma-faq p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; max-width: 90ch; }

/* ===== Tablas ===== */
.qma-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 6px;
  font-size: 14px;
  line-height: 1.55;
}
.qma-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid rgba(0,0,0,.16);
  font-weight: 700;
}
.qma-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  vertical-align: top;
}
.qma-table tbody tr:hover td { background: rgba(0,0,0,.02); }

/* ===== Crosslink Block ===== */
.qma-crosslink-block {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
  overflow: visible;
}
.qma-crosslink-inner   { max-width: 90ch; }
.qma-crosslink-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  opacity: .75;
}
.qma-crosslink-heading {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
}
.qma-crosslink-body {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  opacity: .95;
}
.qma-crosslink-cta {
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid rgba(11,92,255,.35);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  opacity: .95;
}
.qma-crosslink-cta:hover,
.qma-crosslink-cta:focus {
  border-color: rgba(11,92,255,.6);
  opacity: 1;
}

/* ===== Cierre ===== */
.qma-final { padding: 26px 0 6px; }
.qma-final h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.25; }
.qma-final p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 90ch;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* ===== Override márgenes WP/Astra ===== */
.qma-mssp-wrap .qma-sec p,
.qma-mssp-wrap .qma-sec li,
.qma-mssp-wrap .qma-sec details,
.qma-mssp-wrap .qma-sec summary {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

/* ===== Partners grid ===== */
#partners .qma-grid {
  width: 100%;
  display: grid;
  justify-content: center;
  justify-items: stretch;
}

/* ===== Fix grid Elementor (columna con formulario) ===== */
.elementor-element-30465c1 > .e-con {
  min-width: 0;
  overflow: hidden;
}
.elementor-element-a99be92 img {
  max-width: 100%;
  height: auto;
}
.elementor-element-4a9882d .g-recaptcha {
  transform-origin: left top;
  transform: scale(0.9);
}

/* ===== reCAPTCHA ===== */
.recaptcha-wrapper {
  overflow: hidden;
  max-width: 100%;
}
.recaptcha-wrapper .g-recaptcha {
  transform-origin: left top;
}
.g-recaptcha {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
}
.g-recaptcha > div,
.g-recaptcha iframe {
  width: 100% !important;
  max-width: 304px;
}

/* ===== Responsive ===== */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .qma-mssp-hero h1,
  .qma-mdr-hero h1       { font-size: 30px; }
  .qma-grid-2            { grid-template-columns: 1fr; }
  .qma-grid-3            { grid-template-columns: repeat(2, 1fr); }
  #qma-incluye-grid      { grid-template-columns: repeat(2, 1fr); }
  .qma-crosslink-heading { font-size: 22px; }
  .qma-sec p,
  .qma-final p           { max-width: 100%; }
  .qma-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .qma-grid-3       { grid-template-columns: 1fr; }
  #qma-operamos-grid,
  #qma-incluye-grid { grid-template-columns: 1fr; }
}

/* Mobile pequeño (≤ 400px) — reCAPTCHA */
@media (max-width: 400px) {
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.88);
    margin-bottom: -14px;
  }
}

@media (max-width: 640px) {
  .qma-crosslink-block [style*="grid-template-columns"] {
    grid-template-columns: 1fr;
  }
  .qma-crosslink-block img { width: 100% !important; }
}

/* ===== Fix: single post — breadcrumb + header gap (Astra) ===== */
/* Checkpoint: ZDU_CHECKPOINT_BREADCRUMB_Y_SINGLE_POST_FIX_2026-03-15       */
/* Política: posts editoriales = sin breadcrumb / páginas estáticas = sí     */
/* Selector .single aplica a todos los single posts, no a pages ni archives  */

/* 6.1 — Ocultar breadcrumb wrapper residual en single posts */
.single .ast-breadcrumbs-wrapper,
.single .yoast-breadcrumb {
  display:    none    !important;
  height:     0       !important;
  min-height: 0       !important;
  margin:     0       !important;
  padding:    0       !important;
  overflow:   hidden  !important;
}
.single .ast-breadcrumbs-wrapper + * {
  margin-top: 0 !important;
}

/* 6.2a — Quitar borde inferior del header en single posts (línea gris #1)   */
/* Fuente: .site-header / .main-header-bar / .ast-primary-header-bar          */
.single .site-header,
.single .main-header-bar,
.single .ast-primary-header-bar {
  border-bottom: none !important;
  box-shadow:    none !important;
}

/* 6.2b — Quitar borde superior del área de contenido (línea gris #2)         */
/* Fuente: .site-content / #content / .ast-container / .site-main / #primary  */
.single .site-content,
.single #content,
.single .ast-container,
.single .site-main,
.single #primary {
  border-top: none !important;
  box-shadow: none !important;
}

/* 6.2c — Limpiar gap residual del layout single                               */
/* Culpables: #primary margin-top:64px + article padding-top                   */
.single #primary {
  margin-top: 0 !important;
}
.single.ast-separate-container .ast-article-single,
.single.ast-separate-container .ast-article-post {
  padding-top: 0 !important;
}

/* 6.3 — Fix typo: valor sin unidad (15 → 0px). Ref checkpoint §7 */
.single .entry-title {
  margin-top: 0 !important;
}

/* ============================================================
   QMA — Component: Benchmark Card
   Agregar en: Apariencia > Personalizar > CSS Adicional
   O en: Elementor > Configuración del Sitio > CSS Personalizado
   O en: child-theme/style.css
   ============================================================ */

/* ── Variables de diseño QMA ─────────────────────────────── */
:root {
  --qma-navy-900: #0D1321;
  --qma-navy-800: #111927;
  --qma-navy-700: #1A2438;
  --qma-green-500: #D1DF48;
  --qma-green-600: #AEBC21;
  --qma-green-300: #DAE66E;
  --qma-teal-500:  #2DD4BF;
  --qma-slate-400: #94A3B8;
  --qma-slate-200: #E2E8F0;
  --qma-white:     #F8FAFC;
}

/* ── Card base ───────────────────────────────────────────── */
.qma-benchmark-card {
  position: relative;
  background: var(--qma-navy-800);
  border: 1px solid rgba(209, 223, 72, 0.18);
  border-radius: 12px;
  padding: 36px 40px 32px;
  margin: 40px 0;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Línea lateral izquierda verde → teal */
.qma-benchmark-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--qma-green-500) 0%, var(--qma-teal-500) 100%);
  border-radius: 12px 0 0 12px;
}

/* Glow sutil esquina superior derecha */
.qma-benchmark-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Badge / etiqueta ────────────────────────────────────── */
.qma-benchmark-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(209, 223, 72, 0.10);
  border: 1px solid rgba(209, 223, 72, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qma-green-300);
  margin-bottom: 18px;
}

.qma-benchmark-card__badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qma-green-500);
  box-shadow: 0 0 6px var(--qma-green-500);
}

/* ── Título ──────────────────────────────────────────────── */
.qma-benchmark-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--qma-white);
  margin: 0 0 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ── Cuerpo de texto ─────────────────────────────────────── */
.qma-benchmark-card__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--qma-slate-200);
  margin: 0 0 20px;
}

/* ── Fila de métricas ────────────────────────────────────── */
.qma-benchmark-card__metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 20px;
  background: rgba(13, 19, 33, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.qma-benchmark-card__metric {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.qma-benchmark-card__metric + .qma-benchmark-card__metric {
  border-left: 1px solid rgba(148, 163, 184, 0.15);
}

.qma-benchmark-card__metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--qma-green-500);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.qma-benchmark-card__metric-label {
  display: block;
  font-size: 0.73rem;
  color: var(--qma-slate-400);
  line-height: 1.4;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Bloque de alerta (borde teal) ───────────────────────── */
.qma-benchmark-card__alert {
  background: rgba(45, 212, 191, 0.06);
  border-left: 3px solid var(--qma-teal-500);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--qma-slate-200);
  line-height: 1.6;
}

.qma-benchmark-card__alert strong {
  color: var(--qma-teal-500);
}

/* ── Footer / fuente ─────────────────────────────────────── */
.qma-benchmark-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.qma-benchmark-card__source {
  font-size: 0.75rem;
  color: var(--qma-slate-400);
}

.qma-benchmark-card__source a {
  color: var(--qma-teal-500);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.qma-benchmark-card__source a:hover {
  color: var(--qma-green-300);
  text-decoration: underline;
}

.qma-benchmark-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qma-slate-400);
}

/* ── Variante: sin métricas (solo texto + alerta) ─────────
   Uso: class="qma-benchmark-card qma-benchmark-card--slim"   */
.qma-benchmark-card--slim {
  padding: 28px 36px 24px;
}

/* ── Variante: borde acento teal en lugar de verde ─────────
   Uso: class="qma-benchmark-card qma-benchmark-card--teal"  */
.qma-benchmark-card--teal {
  border-color: rgba(45, 212, 191, 0.20);
}

.qma-benchmark-card--teal::before {
  background: linear-gradient(180deg, var(--qma-teal-500) 0%, var(--qma-green-500) 100%);
}

.qma-benchmark-card--teal .qma-benchmark-card__badge {
  background: rgba(45, 212, 191, 0.10);
  border-color: rgba(45, 212, 191, 0.25);
  color: var(--qma-teal-500);
}

.qma-benchmark-card--teal .qma-benchmark-card__badge::before {
  background: var(--qma-teal-500);
  box-shadow: 0 0 6px var(--qma-teal-500);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .qma-benchmark-card {
    padding: 28px 22px 24px;
  }

  .qma-benchmark-card__metrics {
    flex-direction: column;
    gap: 18px;
    padding: 16px;
  }

  .qma-benchmark-card__metric + .qma-benchmark-card__metric {
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: 16px;
  }

  .qma-benchmark-card__metric-value {
    font-size: 1.6rem;
  }

  .qma-benchmark-card__title {
    font-size: 1.05rem;
  }

  .qma-benchmark-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Steps ===== */
.qma-steps {
  counter-reset: qmastep;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;                   /* allows horizontal scroll if very tight */
  -webkit-overflow-scrolling: touch;
}

.qma-step {
  flex: 1 1 0;                        /* all steps share space equally */
  min-width: 160px;                   /* prevents cards from getting too narrow */
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
}

/* Tablet (≤ 900px) — wrap into 2–3 per row */
@media (max-width: 900px) {
  .qma-steps {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .qma-step {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 180px;
  }
}

/* Mobile (≤ 640px) — stack vertically */
@media (max-width: 640px) {
  .qma-step {
    flex: 1 1 100%;
  }
}

/* ===== Partners row ===== */
.qma-partners-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  align-items: stretch;
  justify-content: space-between;
}

.qma-partner-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
}

.qma-partner-logo {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qma-partner-logo img {
  max-width: 120px;
  max-height: 52px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qma-partner-label {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* Tablet (≤ 900px) — 3 per row */
@media (max-width: 900px) {
  .qma-partners-row {
    flex-wrap: wrap;
  }
  .qma-partner-card {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 130px;
  }
}

/* Mobile (≤ 640px) — 2 per row */
@media (max-width: 640px) {
  .qma-partner-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
  }
}

/* Very small (≤ 360px) — 1 per row */
@media (max-width: 360px) {
  .qma-partner-card {
    flex: 1 1 100%;
  }
}

/* === zdu-chapter-title-cinematic === */

/* ZDU chapter-title cinematic — 2026-04-13 */
h2.zdu-chapter-title,
.zdu-chapter-title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: #D1DF48 !important;
  margin: 1.5rem 0 0.75rem !important;
  text-transform: none !important;
  font-style: italic !important;
}
