/* =========================================================
   ZARIA · Commercial Strategy & Sales · simulador adaptado (12 nov.)
   Tarjeta de papel con la paleta de ZARIA (marrón oscuro, terracota
   #8C331F, crema), Montserrat y Gelasio cursiva. La altura se ajusta
   al contenido de cada vista. Comportamiento: commercial-experience.js.
   ========================================================= */
/* La sección usa también .sp-desk-wrap (rellenos de service-page.css),
   los mismos que tenía con el panel móvil aprobado */
.cx {
  --cx-ink: var(--c-ink);              /* #3A1E12 */
  --cx-copper: #8c331f;
  --cx-line: rgba(67, 21, 6, .13);
  --cx-soft: #f3e9df;
  width: var(--sp-box);
  margin-left: var(--nav-clear);
  border: 1px solid var(--cx-line);
  border-radius: calc(6 * var(--u));
  background: var(--c-ivory);
  box-shadow: 0 1px 2px rgba(67, 21, 6, .05), 0 30px 60px -42px rgba(67, 21, 6, .32);
  color: var(--cx-ink);
}

/* ---------- Cabecera ---------- */
.cx__head {
  padding: calc(48 * var(--u)) calc(56 * var(--u)) calc(36 * var(--u));
  border-bottom: 1px solid var(--cx-line);
}
.cx__badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(140, 51, 31, .35);
  border-radius: 999px;
  font-size: max(10px, calc(11 * var(--u)));
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cx-copper);
}
.cx__title { margin-top: calc(18 * var(--u)); font-size: calc(44 * var(--u)); line-height: 1.08; }
.cx__title-sans { display: block; font-weight: 600; letter-spacing: -.015em; }
.cx__title-serif {
  display: block; margin-top: .06em;
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 1.06em; color: var(--cx-copper);
}
.cx__intro {
  max-width: calc(760 * var(--u));
  margin-top: calc(20 * var(--u));
  font-size: max(15px, calc(18 * var(--u)));
  line-height: 1.6;
}

/* ---------- Zona interactiva ---------- */
.cx__app {
  padding: calc(36 * var(--u)) calc(56 * var(--u)) calc(44 * var(--u));
  transition: opacity .16s ease;
}
.cx__app.is-leaving { opacity: 0; }
.cx-view { max-width: calc(960 * var(--u)); }
.cx-kicker { font-size: max(10.5px, calc(11.5 * var(--u))); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(58, 30, 18, .62); }
.cx-h { margin-top: 8px; font-size: max(22px, calc(30 * var(--u))); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; outline: none; }
.cx-h em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--cx-copper); }
.cx-lead { margin-top: 12px; max-width: 62ch; font-size: max(15px, calc(17 * var(--u))); line-height: 1.6; }
.cx-small { margin-top: 18px; font-size: 14px; line-height: 1.5; }
.cx-link, .cx-link-btn { color: var(--cx-copper); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cx-link-btn { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cx-hint { margin-top: 10px; font-size: 13px; color: rgba(58, 30, 18, .7); }
.cx-hint:empty { display: none; }

/* Botones */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--cx-copper); border-radius: 4px;
  font: 600 15px/1.2 var(--font-sans);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.cx-btn--main { background: var(--cx-copper); color: #f6ece3; }
.cx-btn--main:hover:not(:disabled) { background: #74291a; }
.cx-btn--ghost { background: transparent; color: var(--cx-copper); }
.cx-btn--ghost:hover { background: rgba(140, 51, 31, .07); }
.cx-btn:disabled { opacity: .45; cursor: not-allowed; }
.cx-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.cx-btn:focus-visible, .cx-chip input:focus-visible + span, .cx-example:focus-visible, .cx-option:focus-visible, .cx-back:focus-visible, .cx-link-btn:focus-visible { outline: 2px solid var(--cx-copper); outline-offset: 3px; }
.cx-back { margin-top: 18px; padding: 8px 0; border: 0; background: none; font: 600 14px var(--font-sans); color: rgba(58, 30, 18, .75); cursor: pointer; }
.cx-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Inicio */
.cx-start { display: grid; gap: 26px; }
.cx-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.cx-q { display: block; padding: 0; margin-bottom: 12px; font-size: max(16px, calc(18 * var(--u))); font-weight: 600; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-chip { position: relative; cursor: pointer; }
.cx-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cx-chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border: 1px solid rgba(58, 30, 18, .28); border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cx-chip:hover span { border-color: var(--cx-copper); }
.cx-chip input:checked + span { background: var(--cx-copper); border-color: var(--cx-copper); color: #f6ece3; }
.cx-input {
  width: 100%; max-width: 720px; height: 52px; padding: 0 16px;
  border: 0; border-bottom: 1.5px solid #8f7466; border-radius: 0;
  background: var(--cx-soft);
  font: 16px var(--font-sans); color: var(--cx-ink);
}
.cx-input:focus { outline: none; border-bottom-color: var(--cx-copper); box-shadow: 0 1px 0 var(--cx-copper); }
.cx-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.cx-examples__label { width: 100%; font-size: 13px; color: rgba(58, 30, 18, .7); }
.cx-example {
  min-height: 40px; padding: 0 14px;
  border: 1px dashed rgba(140, 51, 31, .45); border-radius: 999px;
  background: transparent; font: 500 14px var(--font-sans); color: var(--cx-ink); cursor: pointer;
}
.cx-example:hover { background: rgba(140, 51, 31, .07); }
.cx-start .cx-btn--main { justify-self: start; }

/* Aclaración y elección */
.cx-options { display: grid; gap: 10px; margin-top: 20px; max-width: 560px; }
.cx-option {
  min-height: 52px; padding: 12px 18px; text-align: left;
  border: 1px solid rgba(58, 30, 18, .25); border-radius: 6px;
  background: #fff8f2; font: 600 15px var(--font-sans); color: var(--cx-ink); cursor: pointer;
}
.cx-option:hover { border-color: var(--cx-copper); color: var(--cx-copper); }
.cx-quote { margin-top: 12px; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: rgba(58, 30, 18, .75); }

/* Etapas */
.cx-situation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 18px; font-size: 13px; color: rgba(58, 30, 18, .75); }
.cx-situation__text { font-weight: 600; }
.cx-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: none; }
.cx-progress__step { padding-top: 10px; border-top: 3px solid rgba(58, 30, 18, .14); color: rgba(58, 30, 18, .5); }
.cx-progress__step.is-done { border-top-color: rgba(140, 51, 31, .45); color: rgba(58, 30, 18, .75); }
.cx-progress__step.is-current { border-top-color: var(--cx-copper); color: var(--cx-ink); }
.cx-progress__num { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--cx-copper); }
.cx-progress__name { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.cx-why { margin-top: 12px; max-width: 62ch; padding: 10px 14px; border-left: 2px solid var(--cx-copper); background: var(--cx-soft); font-size: 15px; line-height: 1.5; }
.cx-why b { color: var(--cx-copper); }
.cx-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.cx-role { padding: 18px 18px 16px; border-radius: 6px; border: 1px solid var(--cx-line); background: #fff8f2; }
.cx-role--zaria { background: #3a1e12; border-color: #3a1e12; color: #f3e6da; }
.cx-role__title { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-copper); }
.cx-role--zaria .cx-role__title { color: #e6b496; }
.cx-role ul { margin: 10px 0 0; padding: 0 0 0 18px; }
.cx-role li { font-size: 15px; line-height: 1.45; }
.cx-role li + li { margin-top: 6px; }
.cx-decision { margin: 26px 0 0; padding: 18px; border: 1.5px solid var(--cx-copper); border-radius: 8px; background: #fff8f2; min-width: 0; }
.cx-decision__q { padding: 0 6px; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: max(18px, calc(21 * var(--u))); color: var(--cx-copper); }
.cx-decision__opt { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(58, 30, 18, .2); border-radius: 6px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.cx-decision__opt:hover { border-color: var(--cx-copper); }
.cx-decision__opt.is-chosen { border-color: var(--cx-copper); background: rgba(140, 51, 31, .08); }
.cx-decision__opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #8c331f; }
.cx-decision__txt b { display: block; font-size: 15.5px; font-weight: 600; }
.cx-decision__txt span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: rgba(58, 30, 18, .8); }
.cx-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.cx-nav .cx-hint { width: 100%; margin-top: 0; }

/* Resumen */
.cx-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; }
.cx-summary > div { padding: 18px; border: 1px solid var(--cx-line); border-radius: 6px; background: #fff8f2; }
.cx-summary dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-copper); }
.cx-summary dd { margin: 10px 0 0; }
.cx-summary ul { margin: 0; padding-left: 18px; }
.cx-summary li { font-size: 15px; line-height: 1.45; }
.cx-summary li + li { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .cx__app { transition: none; }
}

/* =========================================================
   MÓVIL (≤ 820 px): el simulador adaptado es solo de escritorio. En
   móvil se ve el panel aprobado «What’s on your desk?»
   (commercial-desk.css / .js), con su jerarquía y sus márgenes.
   ========================================================= */
@media (max-width: 1023px) {
  .cx { display: none; }
}
