/* PCMontajes RMA - Front UI v0.6.3 */
.pcmrma-page {
  --pcmrma-navy: #061f2d;
  --pcmrma-navy-2: #0b3447;
  --pcmrma-cyan: #16a9c3;
  --pcmrma-cyan-soft: #eaf8fb;
  --pcmrma-border: #d7e3e9;
  --pcmrma-border-strong: #bfd3dc;
  --pcmrma-bg: #f5f8fa;
  --pcmrma-text: #0b2230;
  --pcmrma-muted: #617887;
  --pcmrma-ok: #137a54;
  --pcmrma-ok-bg: #edf9f4;
  --pcmrma-warn: #a96400;
  --pcmrma-warn-bg: #fff8eb;
  --pcmrma-danger: #bd3b32;
  --pcmrma-danger-bg: #fff3f1;
  --pcmrma-shadow: 0 16px 42px rgba(7, 31, 45, .08);
  width: min(1480px, calc(100% - 36px));
  margin: 28px auto 56px;
  color: var(--pcmrma-text);
  font-size: 15px;
  line-height: 1.55;
}

.pcmrma-page *, .pcmrma-page *::before, .pcmrma-page *::after { box-sizing: border-box; }
.pcmrma-page h1, .pcmrma-page h2, .pcmrma-page h3, .pcmrma-page h4 { color: var(--pcmrma-text); margin-top: 0; font-weight: 750; letter-spacing: -.025em; }
.pcmrma-page h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.08; }
.pcmrma-page h2 { font-size: clamp(24px, 2.2vw, 31px); line-height: 1.18; }
.pcmrma-page h3 { font-size: 19px; line-height: 1.25; }
.pcmrma-page p { margin: 0 0 12px; }
.pcmrma-page a { text-decoration: none; }
.pcmrma-muted { color: var(--pcmrma-muted) !important; }
.pcmrma-link { color: #087d99; font-weight: 700; }
.pcmrma-link:hover { color: #045d73; text-decoration: underline; }

.pcmrma-hero {
  position: relative;
  min-height: 154px;
  margin-bottom: 22px;
  padding: 34px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 35%, rgba(38, 181, 205, .30), transparent 30%),
    linear-gradient(125deg, var(--pcmrma-navy) 0%, #0b3549 72%, #115d72 100%);
  box-shadow: var(--pcmrma-shadow);
}
.pcmrma-hero::after {
  content: '';
  position: absolute;
  width: 310px;
  height: 310px;
  right: -80px;
  top: -130px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.025);
}
.pcmrma-hero > * { position: relative; z-index: 1; }
.pcmrma-hero h1, .pcmrma-hero p { color: #fff; }
.pcmrma-hero h1 { margin-bottom: 10px; }
.pcmrma-hero p:last-child { margin-bottom: 0; color: rgba(255,255,255,.78); font-size: 16px; }
.pcmrma-kicker {
  margin: 0 0 7px !important;
  color: #0a8ea8 !important;
  font-size: 11px !important;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pcmrma-hero .pcmrma-kicker { color: #70e3f2 !important; }

.pcmrma-card {
  margin-bottom: 22px;
  padding: 26px 28px;
  border: 1px solid var(--pcmrma-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 31, 45, .055);
}
.pcmrma-card > h2:first-child { margin-bottom: 6px; }
.pcmrma-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--pcmrma-border);
  background: linear-gradient(120deg, #fff 0%, #f0fafc 100%);
}
.pcmrma-card__head h2 { margin: 0 0 7px; font-size: 31px; }
.pcmrma-card__head p { margin-bottom: 4px; }

.pcmrma-alert, .pcmrma-warning-box {
  position: relative;
  margin: 0 0 16px;
  padding: 15px 18px 15px 48px;
  border: 1px solid #bfdde4;
  border-radius: 12px;
  background: #f2fbfd;
  color: #234654;
}
.pcmrma-alert::before, .pcmrma-warning-box::before {
  content: 'i';
  position: absolute;
  left: 17px;
  top: 16px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #159bb5;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.pcmrma-alert > :last-child, .pcmrma-warning-box > :last-child { margin-bottom: 0; }
.pcmrma-alert--ok, .pcmrma-alert--success { border-color: #b9e3d2; background: var(--pcmrma-ok-bg); color: #175d45; }
.pcmrma-alert--ok::before, .pcmrma-alert--success::before { content: '✓'; background: var(--pcmrma-ok); }
.pcmrma-alert--warn, .pcmrma-alert--warning, .pcmrma-warning-box { border-color: #efcf91; background: var(--pcmrma-warn-bg); color: #744a08; }
.pcmrma-alert--warn::before, .pcmrma-alert--warning::before, .pcmrma-warning-box::before { content: '!'; background: #d7941b; }
.pcmrma-alert--danger { border-color: #efc3bf; background: var(--pcmrma-danger-bg); color: #842d27; }
.pcmrma-alert--danger::before { content: '!'; background: var(--pcmrma-danger); }

.pcmrma-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #c8dfe7;
  border-radius: 999px;
  background: #edf7fa;
  color: #236276;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
.pcmrma-badge--ok { border-color: #b8dfce; background: #edf9f4; color: #176344; }
.pcmrma-badge--warn { border-color: #efd39d; background: #fff8e9; color: #8a5700; }
.pcmrma-badge--danger { border-color: #f0c2bd; background: #fff2f0; color: #a22e26; }
.pcmrma-badge--pc { border-color: #b8d9e4; background: #eaf6fa; color: #075e77; }
.pcmrma-badge--service { border-color: #d9c7ef; background: #f7f2fc; color: #70429a; }
.pcmrma-hero .pcmrma-badge { background: rgba(255,255,255,.95); border-color: rgba(255,255,255,.8); }

.pcmrma-btn {
  min-height: 46px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pcmrma-navy);
  border-radius: 10px;
  background: var(--pcmrma-navy);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(6,31,45,.13);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.pcmrma-btn:hover { transform: translateY(-1px); background: #0a3447; box-shadow: 0 11px 22px rgba(6,31,45,.17); }
.pcmrma-btn--small { min-height: 38px; padding: 9px 14px; font-size: 13px; }
.pcmrma-btn--secondary, .pcmrma-btn--ghost { border-color: var(--pcmrma-border-strong); background: #fff; color: var(--pcmrma-navy) !important; box-shadow: none; }
.pcmrma-btn--secondary:hover, .pcmrma-btn--ghost:hover { background: #f2f8fa; }

/* Search and order inbox */
.pcmrma-search-card { padding: 24px 28px; }
.pcmrma-search {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.pcmrma-search input { min-height: 46px; }
.pcmrma-orders-card { padding: 28px; }
.pcmrma-order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.pcmrma-order {
  position: relative;
  min-height: 290px;
  padding: 22px 22px 18px 25px;
  display: grid;
  grid-template-columns: minmax(185px, .72fr) minmax(0, 1.45fr);
  grid-template-rows: auto auto auto 1fr auto;
  gap: 13px 22px;
  overflow: hidden;
  border: 1px solid var(--pcmrma-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(7,31,45,.045);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.pcmrma-order::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(#16abc4, #1477e8); }
.pcmrma-order:hover { transform: translateY(-2px); border-color: #b6d7e1; box-shadow: 0 14px 28px rgba(7,31,45,.08); }
.pcmrma-order__main { grid-column: 1; grid-row: 1 / span 4; display: flex; flex-direction: column; gap: 4px; padding-right: 18px; border-right: 1px solid #e8eff2; }
.pcmrma-order__label { color: #0b91aa; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.pcmrma-order__main strong { font-size: 19px; color: var(--pcmrma-navy); word-break: break-word; }
.pcmrma-order__state { color: #335866; font-weight: 700; }
.pcmrma-order__tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.pcmrma-order > .pcmrma-order__tags { grid-column: 2; grid-row: 1; }
.pcmrma-order__meta { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.pcmrma-order__meta > div, .pcmrma-order__deadlines > div { min-width: 0; padding: 10px 11px; border: 1px solid #e1eaed; border-radius: 9px; background: #f8fbfc; }
.pcmrma-order__meta span, .pcmrma-order__deadlines span { display: block; margin-bottom: 2px; color: #728894; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.pcmrma-order__meta strong, .pcmrma-order__deadlines strong { display: block; color: #1a3b48; font-size: 12px; line-height: 1.4; }
.pcmrma-order__deadlines { grid-column: 2; grid-row: 3; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.pcmrma-order__deadlines > div:first-child { border-color: #ead7ae; background: #fffaf0; }
.pcmrma-order__deadlines > div:last-child { border-color: #bfe0d0; background: #f1faf6; }
.pcmrma-order__condition { grid-column: 2; grid-row: 4; align-self: stretch; padding: 12px 13px; display: flex; flex-direction: column; gap: 3px; border-left: 3px solid #21a1ba; border-radius: 7px; background: #f2fafc; color: #3b5e6c; font-size: 12px; }
.pcmrma-order__condition strong { color: #173946; }
.pcmrma-order__condition--warning { border-left-color: #d6941d; background: #fff9ed; color: #765721; }
.pcmrma-order__actions { grid-column: 1 / -1; grid-row: 5; display: flex; justify-content: flex-end; align-items: center; padding-top: 3px; border-top: 1px solid #edf2f4; }

/* Case detail */
.pcmrma-card--case { padding: 0; overflow: visible; }
.pcmrma-case-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-auto-rows: min-content;
  grid-auto-flow: row dense;
  column-gap: 24px;
  row-gap: 18px;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.pcmrma-case-workspace > .pcmrma-card__head,
.pcmrma-case-workspace > .pcmrma-progress,
.pcmrma-case-workspace > .pcmrma-alert:first-of-type { grid-column: 1 / -1; }
.pcmrma-case-workspace > .pcmrma-card__head { border: 1px solid var(--pcmrma-border); border-radius: 18px 18px 0 0; box-shadow: 0 10px 30px rgba(7,31,45,.055); }
.pcmrma-case-workspace > .pcmrma-progress { margin-top: -18px; }
.pcmrma-case-workspace > .pcmrma-line-rules {
  grid-column: 2;
  align-self: start;
  position: sticky;
  top: 18px;
  z-index: 2;
}
.pcmrma-case-workspace > .pcmrma-thread,
.pcmrma-case-workspace > .pcmrma-reply-box,
.pcmrma-case-workspace > .pcmrma-card--logistics,
.pcmrma-case-workspace > .pcmrma-card--technical,
.pcmrma-case-workspace > .pcmrma-card--quote,
.pcmrma-case-workspace > .pcmrma-alert:not(:first-of-type) { grid-column: 1; }

.pcmrma-progress {
  counter-reset: pcmrma-progress;
  position: relative;
  padding: 24px 24px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--pcmrma-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7,31,45,.055);
}
.pcmrma-progress::before { content: ''; position: absolute; left: 6%; right: 6%; top: 42px; height: 2px; background: #dbe7eb; }
.pcmrma-progress__step { counter-increment: pcmrma-progress; position: relative; min-width: 0; padding: 0 7px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pcmrma-progress__icon { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border: 2px solid #cedde3; border-radius: 50%; background: #fff; color: transparent; font-size: 0; }
.pcmrma-progress__icon::after { content: counter(pcmrma-progress, decimal-leading-zero); color: #718893; font-size: 10px; font-weight: 850; }
.pcmrma-progress__title { max-width: 126px; color: #69808c; font-size: 11px; font-weight: 700; line-height: 1.35; }
.pcmrma-progress__step--done .pcmrma-progress__icon { border-color: #1a9ab1; background: #1a9ab1; }
.pcmrma-progress__step--done .pcmrma-progress__icon::after { content: '✓'; color: #fff; font-size: 14px; }
.pcmrma-progress__step--current .pcmrma-progress__icon { border-color: #0b87a0; background: #e9f9fc; box-shadow: 0 0 0 6px rgba(24,164,190,.10); }
.pcmrma-progress__step--current .pcmrma-progress__icon::after { color: #087b94; }
.pcmrma-progress__step--current .pcmrma-progress__title { color: var(--pcmrma-navy); font-weight: 850; }

.pcmrma-line-rules {
  padding: 22px;
  border: 1px solid var(--pcmrma-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7,31,45,.07);
}
.pcmrma-line-rules > h3 { margin-bottom: 5px; }
.pcmrma-line-rule { margin-top: 15px; padding: 17px; border: 1px solid #dce7eb; border-radius: 13px; background: #fbfdfe; }
.pcmrma-line-rule > strong { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.4; color: var(--pcmrma-navy); }
.pcmrma-line-rule > small { display: block; margin-bottom: 12px; color: #778d98; }
.pcmrma-line-rule .pcmrma-order__tags { margin: 0 0 12px; }
.pcmrma-line-rule .pcmrma-order__note { margin: 0; padding: 11px 0; border-top: 1px solid #e5edf0; border-bottom: 1px solid #e5edf0; }
.pcmrma-line-rule ul { margin: 12px 0 0; padding-left: 18px; font-size: 12px; }

.pcmrma-thread {
  padding: 24px;
  border: 1px solid var(--pcmrma-border);
  border-radius: 16px;
  background: #f7fafb;
  box-shadow: 0 10px 26px rgba(7,31,45,.05);
}
.pcmrma-thread::before {
  content: 'Conversación del caso';
  display: block;
  margin: 0 0 19px;
  color: var(--pcmrma-navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pcmrma-thread__divider {
  margin: 0 0 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #b8dfe7;
  border-radius: 11px;
  background: #eefafd;
  color: #173f4d;
}
.pcmrma-thread__divider > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  border-radius: 50%;
  background: #159bb3;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  font-family: Georgia, serif;
}
.pcmrma-thread__divider > strong { font-size: 13px; }

.pcmrma-thread__message {
  width: min(76%, 760px);
  margin: 0 0 16px;
  padding: 15px 17px 16px;
  border: 1px solid #d5e2e7;
  border-radius: 15px 15px 15px 5px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(7,31,45,.04);
}
.pcmrma-thread__message--customer {
  margin-left: auto;
  border-color: #93d5e2;
  border-radius: 15px 15px 5px 15px;
  background: #effafd;
}
.pcmrma-thread__message-head {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pcmrma-thread__avatar {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #eef5f7 center / 17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.pcmrma-thread__message--staff .pcmrma-thread__avatar {
  background-color: #eaf5f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23077990' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7V4h16v3'/%3E%3Cpath d='M4 11h16v9H4z'/%3E%3Cpath d='M9 11V7h6v4'/%3E%3C/svg%3E");
}
.pcmrma-thread__message-head > div { min-width: 0; }
.pcmrma-thread__message-head strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--pcmrma-navy);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}
.pcmrma-thread__message-head small {
  display: block;
  margin-top: 2px;
  color: #7a909a;
  font-size: 10px;
}
.pcmrma-thread__message-body p {
  margin: 0;
  color: #183b48;
  font-size: 14px;
  line-height: 1.55;
}

.pcmrma-thread__event {
  width: min(88%, 900px);
  margin: 4px auto 16px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: start;
  gap: 11px;
  border: 1px solid #c8dce3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(7,31,45,.035);
}
.pcmrma-thread__event-icon {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 10px;
  background: #eaf6f8 center / 17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309839a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E");
}
.pcmrma-thread__event-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pcmrma-thread__event-head strong { color: #173a46; font-size: 12px; }
.pcmrma-thread__event-head small { flex: 0 0 auto; color: #81949c; font-size: 10px; }
.pcmrma-thread__event p { margin: 5px 0 0; color: #536d77; font-size: 12px; line-height: 1.5; }
.pcmrma-thread__event--quote { border-color: #cdd8ef; background: #f8f9fe; }
.pcmrma-thread__event--quote .pcmrma-thread__event-icon {
  background-color: #edf0fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556da8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l3 3v17H6z'/%3E%3Cpath d='M14 2v4h4'/%3E%3Cpath d='M9 11h6M9 15h6'/%3E%3C/svg%3E");
}
.pcmrma-thread__event--success { border-color: #b7dfcf; background: #f1faf6; }
.pcmrma-thread__event--success .pcmrma-thread__event-icon {
  background-color: #dff4e9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147855' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
}
.pcmrma-thread__event--warning { border-color: #ebcf97; background: #fff8ea; }
.pcmrma-thread__event--warning .pcmrma-thread__event-icon {
  background-color: #f8e9c7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23966000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2.5 20h19z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
.pcmrma-thread__event--neutral { border-color: #d4dde1; background: #f7f9fa; }

.pcmrma-attachments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #c9dbe1;
}
.pcmrma-attachments > strong {
  display: block;
  margin-bottom: 8px;
  color: #5b7480;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pcmrma-attachments__list { display: grid; gap: 7px; }
.pcmrma-attachment {
  min-width: 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 20px;
  align-items: center;
  gap: 9px;
  border: 1px solid #d7e4e9;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: #173b48;
  text-decoration: none;
}
.pcmrma-attachment:hover { border-color: #89ccd9; background: #fff; text-decoration: none; }
.pcmrma-attachment__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eaf6f8 center / 15px 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23078199' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.6 12 21a6 6 0 0 1-8.5-8.5l9-9a4 4 0 0 1 5.7 5.7l-9 9a2 2 0 0 1-2.8-2.8l8.4-8.4'/%3E%3C/svg%3E");
}
.pcmrma-attachment__copy { min-width: 0; }
.pcmrma-attachment__copy b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #153744;
  font-size: 11px;
}
.pcmrma-attachment__copy small { color: #7b909a; font-size: 9px; }
.pcmrma-attachment__download { color: #0b849d; font-size: 16px; font-weight: 800; text-align: center; }

.pcmrma-reply-box, .pcmrma-card--logistics, .pcmrma-card--technical, .pcmrma-card--quote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--pcmrma-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7,31,45,.05);
}
.pcmrma-reply-box { border-top: 4px solid var(--pcmrma-cyan); }
.pcmrma-reply-box > h3 { margin-bottom: 4px; }

/* Open case */
.pcmrma-open-case-card { padding: 0; overflow: hidden; }

.pcmrma-open-workspace {
  margin: 24px 32px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: start;
  gap: 22px;
}
.pcmrma-open-workspace > .pcmrma-order-products {
  grid-column: 2;
  position: sticky;
  top: 18px;
  margin: 0;
}
.pcmrma-open-workspace > .pcmrma-form,
.pcmrma-open-workspace > .pcmrma-alert {
  grid-column: 1;
  margin: 0;
}
.pcmrma-open-workspace > .pcmrma-form {
  grid-row: 1;
  padding: 26px;
  border: 1px solid var(--pcmrma-border);
  border-radius: 16px;
  background: #fbfdfe;
}
.pcmrma-open-workspace > .pcmrma-order-products { grid-row: 1; }
.pcmrma-open-head { padding: 30px 34px 26px; border-bottom: 1px solid var(--pcmrma-border); background: linear-gradient(115deg, #fff 0%, #edf9fb 100%); }
.pcmrma-open-head h2 { margin-bottom: 7px; font-size: clamp(27px, 2.7vw, 36px); }
.pcmrma-open-case-card > .pcmrma-order__note,
.pcmrma-open-case-card > .pcmrma-alert,
.pcmrma-open-case-card > .pcmrma-line-rules,
.pcmrma-open-case-card > .pcmrma-form { margin-left: 32px; margin-right: 32px; }
.pcmrma-open-case-card > .pcmrma-order__note { margin-top: 20px; padding: 13px 16px; border-radius: 10px; background: #f3f8fa; }
.pcmrma-available-options { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; box-shadow: none; background: #f7fafb; }
.pcmrma-available-options > h3, .pcmrma-available-options > p { grid-column: 1 / -1; }
.pcmrma-available-options .pcmrma-line-rule { position: relative; margin: 0; padding: 18px 18px 18px 50px; background: #fff; }
.pcmrma-available-options .pcmrma-line-rule::before { content: ''; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; border: 5px solid #d8f1f6; border-radius: 50%; background: #1498b1; }
.pcmrma-available-options .pcmrma-line-rule strong { font-size: 14px; }
.pcmrma-available-options .pcmrma-order__note { padding: 0; border: 0; font-size: 12px; }
.pcmrma-order-products { box-shadow: none; }
.pcmrma-order-products .pcmrma-line-rule { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; }
.pcmrma-order-products .pcmrma-line-rule > strong, .pcmrma-order-products .pcmrma-line-rule > small, .pcmrma-order-products .pcmrma-line-rule > p, .pcmrma-order-products .pcmrma-line-rule > ul, .pcmrma-order-products .pcmrma-line-rule > .pcmrma-alert { grid-column: 1; }
.pcmrma-order-products .pcmrma-line-rule > .pcmrma-order__tags { grid-column: 2; grid-row: 1 / span 3; justify-content: flex-end; }

.pcmrma-form { margin-top: 22px; }
.pcmrma-open-case-card > .pcmrma-form { margin-bottom: 32px; padding: 26px; border: 1px solid var(--pcmrma-border); border-radius: 16px; background: #fbfdfe; }
.pcmrma-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pcmrma-form label, .pcmrma-form__full { display: block; margin-bottom: 17px; }
.pcmrma-form label > span, .pcmrma-form__full > span { display: block; margin-bottom: 7px; color: var(--pcmrma-navy); font-size: 13px; font-weight: 800; }
.pcmrma-form input[type='text'], .pcmrma-form input[type='email'], .pcmrma-form input[type='url'], .pcmrma-form input[type='number'], .pcmrma-form input[type='date'], .pcmrma-form input[type='datetime-local'], .pcmrma-form select, .pcmrma-form textarea, .pcmrma-search input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #c8d9e1;
  border-radius: 9px;
  background: #fff;
  color: var(--pcmrma-text);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(7,31,45,.025);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pcmrma-form textarea { min-height: 132px; resize: vertical; }
.pcmrma-form input:focus, .pcmrma-form select:focus, .pcmrma-form textarea:focus, .pcmrma-search input:focus { outline: 0; border-color: #24a8bf; box-shadow: 0 0 0 4px rgba(36,168,191,.11); }
.pcmrma-form input[type='file'] { width: 100%; padding: 13px; border: 1px dashed #b9d2dc; border-radius: 9px; background: #fff; }
.pcmrma-form small { display: block; margin-top: 6px; color: #728792; font-size: 11px; }
.pcmrma-form__full { grid-column: 1 / -1; }

.pcmrma-table-wrap { overflow: auto; border: 1px solid var(--pcmrma-border); border-radius: 12px; }
.pcmrma-table { width: 100%; border-collapse: collapse; }
.pcmrma-table th, .pcmrma-table td { padding: 11px 13px; border-bottom: 1px solid #e5edef; text-align: left; }
.pcmrma-table th { background: #f2f7f9; color: #43616e; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 1180px) {
  .pcmrma-page { width: min(100% - 24px, 1180px); }
  .pcmrma-order-list { grid-template-columns: 1fr; }
  .pcmrma-case-workspace { grid-template-columns: minmax(0, 1fr) 360px; }
  .pcmrma-available-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .pcmrma-hero { padding: 28px; }
  .pcmrma-case-workspace { display: block; }
  .pcmrma-case-workspace > * { margin-bottom: 18px !important; }
  .pcmrma-case-workspace > .pcmrma-line-rules { position: static; }
  .pcmrma-progress { grid-template-columns: repeat(4, minmax(90px, 1fr)); overflow-x: auto; }
  .pcmrma-progress::before { display: none; }
  .pcmrma-available-options { grid-template-columns: 1fr; }
  .pcmrma-open-workspace { grid-template-columns: 1fr; margin-left: 20px; margin-right: 20px; }
  .pcmrma-open-workspace > .pcmrma-form, .pcmrma-open-workspace > .pcmrma-order-products, .pcmrma-open-workspace > .pcmrma-alert { grid-column: 1; grid-row: auto; position: static; }
  .pcmrma-open-case-card > .pcmrma-order__note, .pcmrma-open-case-card > .pcmrma-alert, .pcmrma-open-case-card > .pcmrma-line-rules, .pcmrma-open-case-card > .pcmrma-form { margin-left: 20px; margin-right: 20px; }
  .pcmrma-form__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pcmrma-page { width: calc(100% - 16px); margin-top: 12px; }
  .pcmrma-hero { min-height: 132px; padding: 24px 20px; border-radius: 14px; }
  .pcmrma-hero .pcmrma-badge { position: absolute; right: 0; top: 0; }
  .pcmrma-card { padding: 21px 18px; border-radius: 14px; }
  .pcmrma-card__head { padding: 22px 18px; flex-direction: column; }
  .pcmrma-search { grid-template-columns: 1fr 1fr; }
  .pcmrma-search input { grid-column: 1 / -1; }
  .pcmrma-order { display: block; min-height: 0; padding: 20px; }
  .pcmrma-order__main { margin-bottom: 14px; padding: 0 0 13px; border-right: 0; border-bottom: 1px solid #e8eff2; }
  .pcmrma-order > .pcmrma-order__tags, .pcmrma-order > .pcmrma-order__note, .pcmrma-order__actions { margin-top: 12px; }
  .pcmrma-order__actions .pcmrma-btn { width: 100%; }
  .pcmrma-progress { padding: 18px 12px; grid-template-columns: repeat(8, 104px); }
  .pcmrma-thread, .pcmrma-reply-box { padding: 18px; }
  .pcmrma-thread__message { width: 94%; }
  .pcmrma-open-head { padding: 24px 20px; }
  .pcmrma-open-workspace { margin: 18px 12px 24px; }
  .pcmrma-open-case-card > .pcmrma-order__note, .pcmrma-open-case-card > .pcmrma-alert, .pcmrma-open-case-card > .pcmrma-line-rules, .pcmrma-open-case-card > .pcmrma-form { margin-left: 12px; margin-right: 12px; }
  .pcmrma-order-products .pcmrma-line-rule { display: block; }
  .pcmrma-order-products .pcmrma-line-rule > .pcmrma-order__tags { margin-top: 12px; justify-content: flex-start; }
}

.pcmrma-product-policy {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.pcmrma-product-policy > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e9ed;
  border-radius: 9px;
  background: #fff;
}
.pcmrma-product-policy span {
  display: block;
  margin-bottom: 3px;
  color: #758a95;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pcmrma-product-policy strong {
  display: block;
  color: #244653;
  font-size: 11px;
  line-height: 1.35;
}
.pcmrma-order-products .pcmrma-line-rule > .pcmrma-product-policy { grid-column: 1; }

@media (max-width: 640px) {
  .pcmrma-product-policy { grid-template-columns: 1fr; }
  .pcmrma-order__meta, .pcmrma-order__deadlines { grid-template-columns: 1fr; }
  .pcmrma-order__meta, .pcmrma-order__deadlines, .pcmrma-order__condition { margin-top: 12px; }
}

/* ========================================================================== 
   PCMontajes RMA v0.6.4 - isolated professional layouts
   ========================================================================== */

/* Orders: one clear header, structured data and a fixed action zone. */
.pcmrma-page--orders .pcmrma-search-card {
  display: grid;
  grid-template-columns: minmax(240px, .48fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 25px 28px;
}
.pcmrma-page--orders .pcmrma-search-card > h2,
.pcmrma-page--orders .pcmrma-search-card > p { grid-column: 1; }
.pcmrma-page--orders .pcmrma-search-card > h2 { align-self: end; margin: 0; }
.pcmrma-page--orders .pcmrma-search-card > p { align-self: start; margin: -18px 0 0; }
.pcmrma-page--orders .pcmrma-search { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.pcmrma-page--orders .pcmrma-orders-card { padding: 28px 30px 30px; }
.pcmrma-page--orders .pcmrma-order-list { gap: 18px; }
.pcmrma-page--orders .pcmrma-order {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto;
  gap: 0;
  border-radius: 15px;
}
.pcmrma-page--orders .pcmrma-order::before { width: 4px; }
.pcmrma-page--orders .pcmrma-order__main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 19px 20px 15px 22px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
  border: 0;
  border-bottom: 1px solid #e8eff2;
}
.pcmrma-page--orders .pcmrma-order__label { grid-column: 1; grid-row: 1 / span 2; width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: #eaf8fb; color: transparent; font-size: 0; }
.pcmrma-page--orders .pcmrma-order__label::before { content: ''; width: 22px; height: 22px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8fa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4-9 4z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E"); }
.pcmrma-page--orders .pcmrma-order__main strong { grid-column: 2; grid-row: 1; font-size: 18px; }
.pcmrma-page--orders .pcmrma-order__state { grid-column: 2; grid-row: 2; font-size: 12px; }
.pcmrma-page--orders .pcmrma-order > .pcmrma-order__tags { grid-column: 2; grid-row: 1; max-width: 360px; padding: 18px 18px 15px 8px; justify-content: flex-end; align-items: center; border-bottom: 1px solid #e8eff2; }
.pcmrma-page--orders .pcmrma-order__meta { grid-column: 1 / -1; grid-row: 2; padding: 15px 20px 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.pcmrma-page--orders .pcmrma-order__deadlines { grid-column: 1 / -1; grid-row: 3; padding: 10px 20px 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.pcmrma-page--orders .pcmrma-order__meta > div,
.pcmrma-page--orders .pcmrma-order__deadlines > div { padding: 10px 12px; }
.pcmrma-page--orders .pcmrma-order__condition { grid-column: 1 / -1; grid-row: 4; margin: 12px 20px 0 22px; min-height: 58px; justify-content: center; }
.pcmrma-page--orders .pcmrma-order__actions { grid-column: 1 / -1; grid-row: 5; margin-top: 15px; padding: 13px 20px 14px 22px; background: #fbfcfd; }

/* Connected progress with vector icons. */
.pcmrma-progress { counter-reset: none; padding: 22px 24px 20px; }
.pcmrma-progress::before { top: 40px; }
.pcmrma-progress__step { counter-increment: none; gap: 8px; }
.pcmrma-progress__icon {
  width: 38px;
  height: 38px;
  border-width: 2px;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}
.pcmrma-progress__icon::after { display: none; }
.pcmrma-progress__step:nth-child(1) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3C/svg%3E"); }
.pcmrma-progress__step:nth-child(2) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }
.pcmrma-progress__step:nth-child(3) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E"); }
.pcmrma-progress__step:nth-child(4) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h10M7 13h6'/%3E%3C/svg%3E"); }
.pcmrma-progress__step:nth-child(5) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4-9 4z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3C/svg%3E"); }
.pcmrma-progress__step:nth-child(6) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4-9 4z'/%3E%3Cpath d='M5 9v8l7 4 7-4V9'/%3E%3Cpath d='M9 13l2 2 4-4'/%3E%3C/svg%3E"); }
.pcmrma-progress__step:nth-child(7) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5-5l2.1 2.1-3.4 3.4-2.1-2.1a4 4 0 0 0 5 5L19 17.4 17.4 19l-7.7-7.7'/%3E%3C/svg%3E"); }
.pcmrma-progress__step:nth-child(8) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='8 12 11 15 16 9'/%3E%3C/svg%3E"); }
.pcmrma-progress__step:nth-child(9) .pcmrma-progress__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23758b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v18'/%3E%3Cpath d='M5 4h12l-2 4 2 4H5'/%3E%3C/svg%3E"); }
.pcmrma-progress__step--done .pcmrma-progress__icon { background-color: #1599b2; border-color: #1599b2; filter: brightness(0) invert(1); }
.pcmrma-progress__step--current .pcmrma-progress__icon { background-color: #eaf9fc; }

/* Product summary cards: readable rows instead of three compressed columns. */
.pcmrma-product-card { padding: 0; overflow: hidden; background: #fff; }
.pcmrma-product-card__head { padding: 15px 15px 12px; display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: start; gap: 11px; border-bottom: 1px solid #e4ecef; background: #fbfcfd; }
.pcmrma-product-card__head > div { min-width: 0; }
.pcmrma-product-card__head strong { display: block; color: var(--pcmrma-navy); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.pcmrma-product-card__head small { display: block; margin-top: 4px; color: #728893; font-size: 10px; }
.pcmrma-product-card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #eaf8fb center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a8ba4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4-9 4z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E"); }
.pcmrma-product-card > .pcmrma-order__tags { margin: 0; padding: 12px 15px 2px; justify-content: flex-start !important; }
.pcmrma-product-card > .pcmrma-product-policy { margin: 8px 15px 0; display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid #dfe9ed; border-radius: 10px; overflow: hidden; }
.pcmrma-product-card > .pcmrma-product-policy > div { padding: 10px 11px; display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: start; gap: 8px; border: 0; border-bottom: 1px solid #e5edef; border-radius: 0; background: #fff; }
.pcmrma-product-card > .pcmrma-product-policy > div:last-child { border-bottom: 0; }
.pcmrma-product-card > .pcmrma-product-policy span { margin: 1px 0 0; }
.pcmrma-product-card > .pcmrma-product-policy strong { font-size: 11px; overflow-wrap: anywhere; }
.pcmrma-product-card > ul { margin: 11px 15px 15px; padding: 11px 12px 11px 28px; border-radius: 9px; background: #f4f8fa; }
.pcmrma-product-card > .pcmrma-alert { margin: 12px 15px 15px; }

/* Case detail: preserve the approved wide conversation and a useful sticky sidebar. */
.pcmrma-page--case .pcmrma-case-workspace { grid-template-columns: minmax(0, 1fr) 430px; }
.pcmrma-page--case .pcmrma-case-workspace > .pcmrma-line-rules { top: 16px; }
.pcmrma-page--case .pcmrma-line-rules { padding: 20px; }
.pcmrma-page--case .pcmrma-line-rules > h3 { font-size: 20px; }

/* Opening a case: complete overview, visual request types and a staged form. */
.pcmrma-page--open .pcmrma-open-case-card { overflow: visible; background: transparent; border: 0; box-shadow: none; }
.pcmrma-page--open .pcmrma-open-head { border: 1px solid var(--pcmrma-border); border-radius: 18px 18px 0 0; box-shadow: 0 10px 28px rgba(7,31,45,.05); }
.pcmrma-page--open .pcmrma-open-head h2 { font-size: clamp(28px, 2.4vw, 34px); }
.pcmrma-open-summary { margin: 0; padding: 16px 22px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; border: 1px solid var(--pcmrma-border); border-top: 0; border-radius: 0 0 18px 18px; background: #fff; box-shadow: 0 10px 28px rgba(7,31,45,.05); }
.pcmrma-open-summary > div { min-width: 0; padding: 10px 12px; border-right: 1px solid #e4ecef; }
.pcmrma-open-summary > div:last-child { border-right: 0; }
.pcmrma-open-summary span { display: block; margin-bottom: 3px; color: #728894; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pcmrma-open-summary strong { display: block; color: #153744; font-size: 13px; overflow-wrap: anywhere; }
.pcmrma-page--open .pcmrma-open-case-card > .pcmrma-order__note { margin-top: 18px; }
.pcmrma-page--open .pcmrma-available-options { padding: 22px; grid-template-columns: repeat(3, minmax(220px,1fr)); gap: 13px; background: #f5f9fa; }
.pcmrma-page--open .pcmrma-available-options > h3 { margin: 0; font-size: 22px; }
.pcmrma-page--open .pcmrma-request-type-card { min-height: 112px; margin: 0; padding: 16px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: start; gap: 12px; border: 1px solid #d6e3e8; border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(7,31,45,.035); }
.pcmrma-page--open .pcmrma-request-type-card::before { display: none; }
.pcmrma-request-type-card__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--pcmrma-navy) center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E"); }
.pcmrma-page--open .pcmrma-request-type-card:nth-of-type(2) .pcmrma-request-type-card__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h10M7 13h6'/%3E%3C/svg%3E"); }
.pcmrma-page--open .pcmrma-request-type-card:nth-of-type(3) .pcmrma-request-type-card__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4-9 4z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3C/svg%3E"); }
.pcmrma-page--open .pcmrma-request-type-card strong { display: block; margin-bottom: 5px; color: #0b2d3b; font-size: 14px; }
.pcmrma-page--open .pcmrma-request-type-card .pcmrma-order__note { padding: 0; border: 0; color: #617987; font-size: 12px; line-height: 1.5; }
.pcmrma-page--open .pcmrma-open-workspace { grid-template-columns: minmax(0, 1fr) 430px; margin: 22px 0 0; gap: 22px; }
.pcmrma-page--open .pcmrma-open-workspace > .pcmrma-form { padding: 27px 28px; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(7,31,45,.055); }
.pcmrma-page--open .pcmrma-open-workspace > .pcmrma-order-products { padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(7,31,45,.055); }
.pcmrma-page--open .pcmrma-order-products > h3 { margin-bottom: 4px; font-size: 20px; }
.pcmrma-form-step { margin: 0 0 18px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid #cfe4ea; border-radius: 11px; background: linear-gradient(115deg, #fff 0%, #f0fafc 100%); }
.pcmrma-form-step--spaced { margin-top: 24px; }
.pcmrma-form-step > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 9px; background: var(--pcmrma-navy); color: #fff; font-size: 11px; font-weight: 850; box-shadow: 0 7px 15px rgba(7,31,45,.14); }
.pcmrma-form-step strong { display: block; color: #0b2b39; font-size: 15px; }
.pcmrma-form-step small { margin: 2px 0 0; color: #68808c; font-size: 11px; }
.pcmrma-page--open .pcmrma-warning-box { margin-top: 20px; }

@media (max-width: 1180px) {
  .pcmrma-page--case .pcmrma-case-workspace,
  .pcmrma-page--open .pcmrma-open-workspace { grid-template-columns: minmax(0,1fr) 370px; }
  .pcmrma-page--open .pcmrma-available-options { grid-template-columns: repeat(2, minmax(220px,1fr)); }
}
@media (max-width: 900px) {
  .pcmrma-page--orders .pcmrma-search-card { grid-template-columns: 1fr; }
  .pcmrma-page--orders .pcmrma-search-card > h2,
  .pcmrma-page--orders .pcmrma-search-card > p,
  .pcmrma-page--orders .pcmrma-search { grid-column: 1; grid-row: auto; margin: 0; }
  .pcmrma-page--orders .pcmrma-search-card > p { margin: 0; }
  .pcmrma-page--case .pcmrma-case-workspace,
  .pcmrma-page--open .pcmrma-open-workspace { display: block; }
  .pcmrma-page--open .pcmrma-open-workspace > * { margin-bottom: 18px; }
  .pcmrma-open-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pcmrma-open-summary > div { border-right: 0; border-bottom: 1px solid #e4ecef; }
  .pcmrma-open-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .pcmrma-page--orders .pcmrma-order { display: block; }
  .pcmrma-page--orders .pcmrma-order__main { border-bottom: 0; }
  .pcmrma-page--orders .pcmrma-order > .pcmrma-order__tags { max-width: none; padding: 0 20px 12px 22px; justify-content: flex-start; border-bottom: 1px solid #e8eff2; }
  .pcmrma-page--orders .pcmrma-order__meta,
  .pcmrma-page--orders .pcmrma-order__deadlines { padding-left: 20px; grid-template-columns: 1fr; }
  .pcmrma-open-summary { grid-template-columns: 1fr; }
  .pcmrma-open-summary > div { border-bottom: 1px solid #e4ecef !important; }
  .pcmrma-open-summary > div:last-child { border-bottom: 0 !important; }
  .pcmrma-page--open .pcmrma-available-options { grid-template-columns: 1fr; padding: 18px; }
  .pcmrma-page--open .pcmrma-open-workspace { margin-top: 16px; }
  .pcmrma-page--open .pcmrma-open-workspace > .pcmrma-form,
  .pcmrma-page--open .pcmrma-open-workspace > .pcmrma-order-products { padding: 18px; }
}

/* ========================================================================
   FRONT v0.6.6 - ajustes aislados para listado y apertura de incidencia.
   La vista del caso abierto (.pcmrma-page--case) queda intencionadamente
   fuera de este bloque para conservar el diseño aprobado.
   ======================================================================== */

/* Listado de pedidos: cabecera, datos, condiciones y acción en zonas claras. */
.pcmrma-page--orders .pcmrma-order-list {
  align-items: stretch;
  gap: 18px;
}

.pcmrma-page--orders .pcmrma-order {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto auto;
  gap: 0;
  overflow: hidden;
  border-radius: 16px;
}

.pcmrma-page--orders .pcmrma-order::before {
  width: 4px;
}

.pcmrma-page--orders .pcmrma-order__main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 18px 14px 16px 22px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e7eef1;
}

.pcmrma-page--orders .pcmrma-order__label {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #eaf8fb;
  color: transparent;
  font-size: 0;
}

.pcmrma-page--orders .pcmrma-order__label::before {
  content: '';
  width: 21px;
  height: 21px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8fa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4-9 4z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
}

.pcmrma-page--orders .pcmrma-order__main strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: var(--pcmrma-navy);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pcmrma-page--orders .pcmrma-order__state {
  grid-column: 2;
  grid-row: 2;
  color: #4c6773;
  font-size: 12px;
  font-weight: 700;
}

.pcmrma-page--orders .pcmrma-order > .pcmrma-order__tags {
  grid-column: 2;
  grid-row: 1;
  max-width: 370px;
  min-height: 77px;
  padding: 17px 18px 15px 8px;
  justify-content: flex-end;
  align-items: center;
  align-content: center;
  border-bottom: 1px solid #e7eef1;
}

.pcmrma-page--orders .pcmrma-order__meta,
.pcmrma-page--orders .pcmrma-order__deadlines {
  grid-column: 1 / -1;
  padding-left: 22px;
  padding-right: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 9px;
}

.pcmrma-page--orders .pcmrma-order__meta {
  grid-row: 2;
  padding-top: 15px;
}

.pcmrma-page--orders .pcmrma-order__deadlines {
  grid-row: 3;
  padding-top: 10px;
}

.pcmrma-page--orders .pcmrma-order__meta > div,
.pcmrma-page--orders .pcmrma-order__deadlines > div {
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
}

.pcmrma-page--orders .pcmrma-order__meta strong,
.pcmrma-page--orders .pcmrma-order__deadlines strong {
  overflow-wrap: anywhere;
}

.pcmrma-page--orders .pcmrma-order__condition {
  grid-column: 1 / -1;
  grid-row: 4;
  min-height: 62px;
  margin: 12px 20px 0 22px;
  padding: 12px 14px;
  justify-content: center;
}

.pcmrma-page--orders .pcmrma-order__condition strong {
  font-size: 12px;
}

.pcmrma-page--orders .pcmrma-order__condition span {
  line-height: 1.45;
}

.pcmrma-page--orders .pcmrma-order__actions {
  grid-column: 1 / -1;
  grid-row: 5;
  min-height: 61px;
  margin-top: 14px;
  padding: 12px 20px 13px 22px;
  border-top: 1px solid #e7eef1;
  background: #fbfcfd;
}

.pcmrma-page--orders .pcmrma-order__actions .pcmrma-muted {
  max-width: 100%;
  color: #738995;
  font-size: 12px;
}

/* Apertura de incidencia: panel de productos estable, ancho y flotante. */
.pcmrma-page--open .pcmrma-open-workspace {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
}

.pcmrma-page--open .pcmrma-open-workspace > .pcmrma-order-products {
  position: sticky;
  top: 18px;
  align-self: start;
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* Anula la cuadrícula antigua que comprimía los títulos largos de producto. */
.pcmrma-page--open .pcmrma-order-products .pcmrma-product-card {
  width: 100%;
  min-width: 0;
  display: block;
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-product-card__head {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-product-card__head > div,
.pcmrma-page--open .pcmrma-order-products .pcmrma-product-card__head strong,
.pcmrma-page--open .pcmrma-order-products .pcmrma-product-card__head small {
  min-width: 0;
  max-width: 100%;
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-product-card__head strong {
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-product-card > .pcmrma-order__tags {
  width: auto;
  margin: 0;
  padding: 12px 15px 2px;
  display: flex;
  justify-content: flex-start !important;
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-product-policy {
  width: auto;
  margin: 10px 15px 0;
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-product-policy > div {
  grid-template-columns: 92px minmax(0, 1fr);
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-product-policy strong {
  min-width: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-line-rule + .pcmrma-line-rule {
  margin-top: 14px;
}

/* Opciones compatibles: más legibles sin alterar la estructura aprobada. */
.pcmrma-page--open .pcmrma-available-options {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pcmrma-page--open .pcmrma-request-type-card {
  min-width: 0;
  min-height: 108px;
}

.pcmrma-page--open .pcmrma-request-type-card > div {
  min-width: 0;
}

@media (max-width: 1180px) {
  .pcmrma-page--open .pcmrma-open-workspace {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
}

@media (max-width: 900px) {
  .pcmrma-page--open .pcmrma-open-workspace > .pcmrma-order-products {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .pcmrma-page--orders .pcmrma-order {
    display: block;
  }

  .pcmrma-page--orders .pcmrma-order__main {
    padding-right: 20px;
    border-bottom: 0;
  }

  .pcmrma-page--orders .pcmrma-order > .pcmrma-order__tags {
    min-height: 0;
    max-width: none;
    padding: 0 20px 14px 22px;
    justify-content: flex-start;
    border-bottom: 1px solid #e7eef1;
  }

  .pcmrma-page--orders .pcmrma-order__meta,
  .pcmrma-page--orders .pcmrma-order__deadlines {
    padding-left: 20px;
    grid-template-columns: 1fr;
  }
}

.pcmrma-page--open .pcmrma-order-products .pcmrma-product-card {
  border-left: 3px solid var(--pcmrma-cyan);
}


/* v0.6.7 - listado de pedidos orientado al producto */
.pcmrma-page--orders .pcmrma-order__meta {
  grid-template-columns: minmax(0, 2fr) minmax(150px, .8fr);
}
.pcmrma-page--orders .pcmrma-order__meta--with-delivery {
  grid-template-columns: minmax(0, 1.7fr) minmax(135px, .75fr) minmax(135px, .75fr);
}
.pcmrma-page--orders .pcmrma-order__product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.pcmrma-page--orders .pcmrma-order__product strong {
  overflow: hidden;
  color: #102f3d;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcmrma-page--orders .pcmrma-order__product small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #68808d;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcmrma-page--orders .pcmrma-order__product em {
  display: inline-flex;
  width: max-content;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf7fa;
  color: #0a7890;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}
@media (max-width: 720px) {
  .pcmrma-page--orders .pcmrma-order__meta,
  .pcmrma-page--orders .pcmrma-order__meta--with-delivery {
    grid-template-columns: 1fr;
  }
  .pcmrma-page--orders .pcmrma-order__product strong,
  .pcmrma-page--orders .pcmrma-order__product small {
    white-space: normal;
  }
}

/* v0.6.8 - búsqueda predictiva de pedidos y productos */
.pcmrma-live-search__field {
  position: relative;
  min-width: 0;
}

.pcmrma-live-search__field input {
  width: 100%;
  padding-right: 46px;
}

.pcmrma-live-search__spinner {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid #d6e6eb;
  border-top-color: var(--pcmrma-cyan);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.pcmrma-search.is-loading .pcmrma-live-search__spinner {
  opacity: 1;
  animation: pcmrma-live-search-spin .72s linear infinite;
}

@keyframes pcmrma-live-search-spin {
  to { transform: rotate(360deg); }
}

.pcmrma-page--orders .pcmrma-live-search__status {
  grid-column: 2;
  grid-row: 3;
  min-height: 18px;
  margin: -18px 0 0;
  color: #66808d;
  font-size: 12px;
  line-height: 1.4;
}

.pcmrma-orders-card__heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.pcmrma-orders-card__heading h2,
.pcmrma-orders-card__heading p {
  margin-left: 0;
  margin-right: 0;
}

.pcmrma-orders-count {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cce4ea;
  border-radius: 999px;
  background: #edf8fa;
  color: #087d94;
  font-size: 13px;
  font-weight: 850;
}

.pcmrma-live-search__empty {
  margin: 22px 0 0;
  padding: 22px;
  border: 1px dashed #bfd9e1;
  border-radius: 13px;
  background: #f7fbfc;
  color: #58727f;
  text-align: center;
}

.pcmrma-order[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .pcmrma-page--orders .pcmrma-live-search__status {
    grid-column: 1;
    grid-row: auto;
    margin: -2px 0 0;
  }
}

@media (max-width: 640px) {
  .pcmrma-orders-card__heading {
    gap: 14px;
  }

  .pcmrma-orders-count {
    min-width: 34px;
    height: 34px;
  }
}

/* PCMontajes RMA v0.6.9 - Technical case assistant. Scoped to the open-case view. */
.pcmrma-page--open .pcmrma-pc-guide {
  margin: 22px 0 26px;
  overflow: hidden;
  border: 1px solid #c9dce4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(6, 31, 45, .08);
}
.pcmrma-page--open .pcmrma-pc-guide__head {
  position: relative;
  min-height: 128px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 93% 10%, rgba(70, 208, 226, .22), transparent 28%),
    linear-gradient(125deg, #061f2d 0%, #0b3c50 72%, #0d6577 100%);
}
.pcmrma-page--open .pcmrma-pc-guide__head::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -75px;
  top: -118px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 56px rgba(255,255,255,.025);
}
.pcmrma-page--open .pcmrma-pc-guide__head > * { position: relative; z-index: 1; }
.pcmrma-page--open .pcmrma-pc-guide__head h3 { margin: 0 0 5px; color: #fff; font-size: 22px; line-height: 1.2; }
.pcmrma-page--open .pcmrma-pc-guide__head p:last-child { margin: 0; color: rgba(255,255,255,.74); font-size: 13px; }
.pcmrma-page--open .pcmrma-pc-guide__head .pcmrma-kicker { margin-bottom: 5px !important; color: #67d8e8 !important; }
.pcmrma-page--open .pcmrma-pc-guide__emblem {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 15px;
  background: rgba(255,255,255,.09) center / 27px 27px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374e3ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L3 18v3h3l6.7-6.7a4 4 0 0 0 5-5l-2.4 2.4-3-3z'/%3E%3C/svg%3E");
}
.pcmrma-page--open .pcmrma-pc-guide__required {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
}
.pcmrma-page--open .pcmrma-pc-guide__progress {
  position: relative;
  padding: 18px 28px 17px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #dce8ec;
  background: #f7fafb;
}
.pcmrma-page--open .pcmrma-pc-guide__progress::before {
  content: '';
  position: absolute;
  left: calc(16.66% + 17px);
  right: calc(16.66% + 17px);
  top: 34px;
  height: 1px;
  background: #cbdce2;
}
.pcmrma-page--open .pcmrma-pc-guide__progress > span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #7b9099;
}
.pcmrma-page--open .pcmrma-pc-guide__progress b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cbdce2;
  border-radius: 50%;
  background: #fff;
  color: #6c828d;
  font-size: 11px;
  box-shadow: 0 3px 8px rgba(7,31,45,.04);
}
.pcmrma-page--open .pcmrma-pc-guide__progress em { font-size: 10px; font-style: normal; font-weight: 750; }
.pcmrma-page--open .pcmrma-pc-guide__progress .is-active b,
.pcmrma-page--open .pcmrma-pc-guide__progress .is-done b { border-color: #1aa9be; background: #e8f9fb; color: #087b91; }
.pcmrma-page--open .pcmrma-pc-guide__progress .is-active { color: #082b3a; }
.pcmrma-page--open .pcmrma-pc-guide__progress .is-active b { box-shadow: 0 0 0 5px rgba(22,169,195,.11); }
.pcmrma-page--open .pcmrma-pc-guide__progress .is-done b { color: transparent; }
.pcmrma-page--open .pcmrma-pc-guide__progress .is-done b::after { content: '✓'; color: #087b91; font-size: 13px; }
.pcmrma-page--open .pcmrma-pc-guide__stage { padding: 26px 28px 28px; }
.pcmrma-page--open .pcmrma-pc-guide__screen-head { margin-bottom: 19px; }
.pcmrma-page--open .pcmrma-pc-guide__screen-head span,
.pcmrma-page--open .pcmrma-pc-guide__result-head > div > span,
.pcmrma-page--open .pcmrma-pc-guide__question > span {
  display: block;
  margin-bottom: 4px;
  color: #0b8ca5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.pcmrma-page--open .pcmrma-pc-guide__screen-head h4,
.pcmrma-page--open .pcmrma-pc-guide__result-head h4,
.pcmrma-page--open .pcmrma-pc-guide__question h4 { margin: 0 0 5px; font-size: 19px; }
.pcmrma-page--open .pcmrma-pc-guide__screen-head p { margin: 0; color: #647c88; font-size: 13px; }
.pcmrma-page--open .pcmrma-pc-guide__choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.pcmrma-page--open .pcmrma-pc-guide__choice {
  min-width: 0;
  min-height: 82px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 20px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d6e4e9;
  border-radius: 13px;
  background: #fff;
  color: #0b2634;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(7,31,45,.035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.pcmrma-page--open .pcmrma-pc-guide__choice:hover { transform: translateY(-1px); border-color: #75c8d7; background: #f8fdfe; box-shadow: 0 10px 20px rgba(7,31,45,.07); }
.pcmrma-page--open .pcmrma-pc-guide__choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eaf8fb;
  color: #098aa3;
}
.pcmrma-page--open .pcmrma-pc-guide__choice-icon svg { width: 23px; height: 23px; }
.pcmrma-page--open .pcmrma-pc-guide__choice-copy { min-width: 0; }
.pcmrma-page--open .pcmrma-pc-guide__choice-copy strong { display: block; font-size: 13px; line-height: 1.3; }
.pcmrma-page--open .pcmrma-pc-guide__choice-copy small { display: block; margin-top: 3px; color: #748995; font-size: 10px; }
.pcmrma-page--open .pcmrma-pc-guide__choice-arrow { color: #0a91a9; font-size: 18px; }
.pcmrma-page--open .pcmrma-pc-guide__toolbar { margin-bottom: 16px; display: flex; justify-content: space-between; gap: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__back,
.pcmrma-page--open .pcmrma-pc-guide__restart { padding: 0; border: 0; background: transparent; color: #087d99; font-size: 11px; font-weight: 800; cursor: pointer; }
.pcmrma-page--open .pcmrma-pc-guide__restart { color: #738892; }
.pcmrma-page--open .pcmrma-pc-guide__trail { margin-bottom: 17px; padding: 9px 12px; display: flex; gap: 10px; align-items: center; border-radius: 9px; background: #f4f8fa; color: #516d79; font-size: 10px; }
.pcmrma-page--open .pcmrma-pc-guide__trail > span { color: #7b9099; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pcmrma-page--open .pcmrma-pc-guide__trail strong { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.pcmrma-page--open .pcmrma-pc-guide__trail i { padding: 0 4px; color: #0a9db6; font-style: normal; }
.pcmrma-page--open .pcmrma-pc-guide__result-head { margin-bottom: 16px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__result-head h4 { margin: 0; }
.pcmrma-page--open .pcmrma-pc-guide__instruction {
  margin: 0 0 15px;
  padding: 16px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 12px;
  border: 1px solid #c8e2e8;
  border-radius: 12px;
  background: #f1fbfc;
}
.pcmrma-page--open .pcmrma-pc-guide__instruction-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #dff5f8 center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23078ba3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M8.5 14.5A7 7 0 1 1 15.5 14.5C14.5 15.2 14 16 14 18h-4c0-2-.5-2.8-1.5-3.5Z'/%3E%3C/svg%3E");
}
.pcmrma-page--open .pcmrma-pc-guide__instruction strong { display: block; margin-bottom: 3px; font-size: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__instruction p { margin: 0; color: #365965; font-size: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__help {
  margin-bottom: 17px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #d8e5e9;
  border-radius: 11px;
  background: #fff;
  color: #0b2d3b;
}
.pcmrma-page--open .pcmrma-pc-guide__help > span { width: 36px; height: 36px; border-radius: 9px; background: #eef6f8 center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8199' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E"); }
.pcmrma-page--open .pcmrma-pc-guide__help strong { display: block; font-size: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__help small { display: block; color: #78909a; font-size: 10px; }
.pcmrma-page--open .pcmrma-pc-guide__help > b { color: #0a8ca5; font-size: 15px; }
.pcmrma-page--open .pcmrma-pc-guide__question { margin: 20px 0 11px; }
.pcmrma-page--open .pcmrma-pc-guide__answers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.pcmrma-page--open .pcmrma-pc-guide__answer {
  min-height: 48px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d7e4e9;
  border-radius: 10px;
  background: #fff;
  color: #173844;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.pcmrma-page--open .pcmrma-pc-guide__answer:hover { border-color: #71c6d6; background: #f5fcfd; }
.pcmrma-page--open .pcmrma-pc-guide__answer b { color: #0a8ca5; font-size: 16px; }
.pcmrma-page--open .pcmrma-pc-guide__ready,
.pcmrma-page--open .pcmrma-pc-guide__blocked {
  margin-top: 18px;
  padding: 15px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #b9dfd0;
  border-radius: 12px;
  background: #f0faf5;
}
.pcmrma-page--open .pcmrma-pc-guide__ready > span,
.pcmrma-page--open .pcmrma-pc-guide__blocked > span,
.pcmrma-page--open .pcmrma-pc-guide__status-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #d9f3e7; color: #12734f; font-weight: 900; }
.pcmrma-page--open .pcmrma-pc-guide__ready strong,
.pcmrma-page--open .pcmrma-pc-guide__blocked strong { display: block; font-size: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__ready p,
.pcmrma-page--open .pcmrma-pc-guide__blocked p { margin: 2px 0 0; color: #58736a; font-size: 11px; }
.pcmrma-page--open .pcmrma-pc-guide__ready .pcmrma-btn { min-height: 40px; padding: 10px 14px; font-size: 11px; }
.pcmrma-page--open .pcmrma-pc-guide__blocked { grid-template-columns: 36px minmax(0,1fr); border-color: #efd39d; background: #fff8eb; }
.pcmrma-page--open .pcmrma-pc-guide__blocked > span { background: #f9e8bd; color: #9b6200; }
.pcmrma-page--open .pcmrma-pc-guide__blocked p { color: #765b27; }
.pcmrma-page--open .pcmrma-pc-guide__status {
  margin: 0 28px 28px;
  padding: 14px 16px;
  grid-template-columns: 36px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #b9dfd0;
  border-radius: 12px;
  background: #effaf5;
}
.pcmrma-page--open .pcmrma-pc-guide__status strong { display: block; font-size: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__status p { margin: 2px 0 0; color: #56746a; font-size: 11px; }
.pcmrma-page--open .pcmrma-pc-guide__status-icon.is-warning { background: #f9e8bd; color: #9b6200; }
.pcmrma-page--open .pcmrma-pc-guide.is-complete { border-color: #a9d9c5; }

@media (max-width: 900px) {
  .pcmrma-page--open .pcmrma-pc-guide__head { grid-template-columns: 48px minmax(0,1fr); padding: 21px; }
  .pcmrma-page--open .pcmrma-pc-guide__emblem { width: 48px; height: 48px; }
  .pcmrma-page--open .pcmrma-pc-guide__required { grid-column: 2; justify-self: start; }
  .pcmrma-page--open .pcmrma-pc-guide__choices,
  .pcmrma-page--open .pcmrma-pc-guide__answers { grid-template-columns: 1fr; }
  .pcmrma-page--open .pcmrma-pc-guide__ready { grid-template-columns: 36px minmax(0,1fr); }
  .pcmrma-page--open .pcmrma-pc-guide__ready .pcmrma-btn { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .pcmrma-page--open .pcmrma-pc-guide__head { grid-template-columns: 1fr; gap: 12px; }
  .pcmrma-page--open .pcmrma-pc-guide__required { grid-column: 1; }
  .pcmrma-page--open .pcmrma-pc-guide__progress { padding-left: 12px; padding-right: 12px; }
  .pcmrma-page--open .pcmrma-pc-guide__progress em { font-size: 9px; }
  .pcmrma-page--open .pcmrma-pc-guide__stage { padding: 20px 16px 22px; }
  .pcmrma-page--open .pcmrma-pc-guide__status { margin: 0 16px 20px; }
  .pcmrma-page--open .pcmrma-pc-guide__choice { grid-template-columns: 40px minmax(0,1fr) 16px; padding: 12px; }
  .pcmrma-page--open .pcmrma-pc-guide__trail { display: block; }
  .pcmrma-page--open .pcmrma-pc-guide__trail > span { margin-bottom: 3px; }
}

/* v0.6.10 - bloqueo elegante del formulario hasta completar el diagnostico */
.pcmrma-page--open .pcmrma-pc-guide-gate {
  margin: 20px 0 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid #e7c77f;
  border-radius: 13px;
  background: linear-gradient(135deg, #fffaf0 0%, #fff7e7 100%);
  box-shadow: 0 8px 22px rgba(117, 77, 10, .055);
}
.pcmrma-page--open .pcmrma-pc-guide-gate[hidden] { display: none !important; }
.pcmrma-page--open .pcmrma-pc-guide-gate__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f8e6b8 center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23956400' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M12 14v2'/%3E%3C/svg%3E");
}
.pcmrma-page--open .pcmrma-pc-guide-gate strong {
  display: block;
  margin-bottom: 3px;
  color: #5f4308;
  font-size: 13px;
}
.pcmrma-page--open .pcmrma-pc-guide-gate p {
  margin: 0;
  color: #7b622c;
  font-size: 11px;
  line-height: 1.55;
}
.pcmrma-page--open .pcmrma-case-continuation {
  transition: opacity .22s ease, filter .22s ease, transform .22s ease;
}
.pcmrma-page--open .pcmrma-case-continuation.is-locked > .pcmrma-form-step,
.pcmrma-page--open .pcmrma-case-continuation.is-locked > label,
.pcmrma-page--open .pcmrma-case-continuation.is-locked > .pcmrma-warning-box,
.pcmrma-page--open .pcmrma-case-continuation.is-locked .pcmrma-btn {
  opacity: .42;
  filter: saturate(.55);
}
.pcmrma-page--open .pcmrma-case-continuation.is-locked textarea:disabled,
.pcmrma-page--open .pcmrma-case-continuation.is-locked input:disabled,
.pcmrma-page--open .pcmrma-case-continuation.is-locked button:disabled {
  cursor: not-allowed;
}
.pcmrma-page--open .pcmrma-case-continuation.is-locked textarea:disabled,
.pcmrma-page--open .pcmrma-case-continuation.is-locked input[type='file']:disabled {
  background-color: #f6f8f9;
}
.pcmrma-page--open .pcmrma-case-continuation__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pcmrma-page--open .pcmrma-pc-guide.is-complete + .pcmrma-form__grid {
  margin-top: 18px;
}

@media (max-width: 560px) {
  .pcmrma-page--open .pcmrma-pc-guide-gate {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }
  .pcmrma-page--open .pcmrma-pc-guide-gate__icon {
    width: 38px;
    height: 38px;
  }
}


/* v0.6.11 - conversación del caso: nombres reales, eventos y adjuntos */
@media (max-width: 760px) {
  .pcmrma-thread { padding: 18px 14px; }
  .pcmrma-thread__message,
  .pcmrma-thread__event { width: 100%; }
  .pcmrma-thread__event-head { display: block; }
  .pcmrma-thread__event-head small { display: block; margin-top: 3px; }
}

/* ========================================================================
   FRONT v0.6.12 - detalle de caso con conversación principal y lateral
   contextual flotante. Cambios aislados a la vista de caso abierto.
   ======================================================================== */
.pcmrma-page--case .pcmrma-case-workspace {
  display: grid;
  grid-template-columns: 1fr;
}

.pcmrma-page--case .pcmrma-case-body {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 24px;
  align-items: start;
}

.pcmrma-page--case .pcmrma-case-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.pcmrma-page--case .pcmrma-case-main > * {
  min-width: 0;
  margin: 0;
}

.pcmrma-page--case .pcmrma-case-sidebar {
  min-width: 0;
  max-height: calc(100vh - 36px);
  padding: 0 5px 2px 0;
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b9cbd2 transparent;
  z-index: 3;
}

.pcmrma-page--case .pcmrma-case-sidebar::-webkit-scrollbar { width: 7px; }
.pcmrma-page--case .pcmrma-case-sidebar::-webkit-scrollbar-track { background: transparent; }
.pcmrma-page--case .pcmrma-case-sidebar::-webkit-scrollbar-thumb { border-radius: 999px; background: #b9cbd2; }

.pcmrma-page--case .pcmrma-case-sidebar > * {
  min-width: 0;
  margin: 0;
  position: static;
}

.pcmrma-page--case .pcmrma-case-sidebar .pcmrma-line-rules,
.pcmrma-page--case .pcmrma-case-sidebar .pcmrma-card {
  padding: 20px;
  border: 1px solid var(--pcmrma-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7,31,45,.055);
}

.pcmrma-page--case .pcmrma-case-sidebar .pcmrma-form__grid {
  grid-template-columns: 1fr;
}

/* Presupuesto compacto para el panel lateral. */
.pcmrma-quote-card {
  overflow: hidden;
}

.pcmrma-quote-card__head {
  margin: -20px -20px 16px;
  padding: 18px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e2ebee;
  background: linear-gradient(135deg, #f9fcfd 0%, #edf8fa 100%);
}

.pcmrma-quote-card__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #118aa3;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pcmrma-quote-card__head h3 {
  margin: 0;
  color: var(--pcmrma-navy);
  font-size: 25px;
  line-height: 1.1;
}

.pcmrma-quote-card__status {
  max-width: 145px;
  padding: 6px 9px;
  border: 1px solid #d2e0e5;
  border-radius: 999px;
  background: #fff;
  color: #536e79;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.pcmrma-quote-card__status--accepted { border-color: #acd9c5; background: #edf9f3; color: #267356; }
.pcmrma-quote-card__status--rejected { border-color: #efc2b8; background: #fff3f0; color: #a34532; }
.pcmrma-quote-card__status--pending { border-color: #ead29b; background: #fff8e9; color: #875f12; }

.pcmrma-quote-card__decision {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}

.pcmrma-quote-card__decision span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2eaed;
  border-radius: 9px;
  background: #f8fbfc;
  color: #385663;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pcmrma-quote-card__decision b {
  display: block;
  margin-bottom: 2px;
  color: #758a94;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pcmrma-quote-card__lines {
  display: grid;
  gap: 8px;
}

.pcmrma-quote-line {
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe9ec;
  border-radius: 10px;
  background: #fbfdfe;
}

.pcmrma-quote-line__copy,
.pcmrma-quote-line__amount { min-width: 0; }
.pcmrma-quote-line__copy strong { display: block; color: #173946; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.pcmrma-quote-line__copy small { display: block; margin-top: 3px; color: #81939b; font-size: 10px; overflow-wrap: anywhere; }
.pcmrma-quote-line__amount { text-align: right; }
.pcmrma-quote-line__amount span { display: block; color: #72868f; font-size: 9px; white-space: nowrap; }
.pcmrma-quote-line__amount strong { display: block; margin-top: 2px; color: var(--pcmrma-navy); font-size: 13px; white-space: nowrap; }

.pcmrma-quote-card__details {
  margin-top: 12px;
  border: 1px solid #e0e9ec;
  border-radius: 10px;
  background: #f8fbfc;
}

.pcmrma-quote-card__details summary {
  padding: 11px 12px;
  cursor: pointer;
  color: #274c5a;
  font-size: 11px;
  font-weight: 800;
}

.pcmrma-quote-card__details > div {
  padding: 0 12px 12px;
  color: #536d77;
  font-size: 11px;
  line-height: 1.5;
}

.pcmrma-quote-card__details p { margin: 8px 0 0; }

.pcmrma-quote-card__actions {
  margin-top: 13px;
}

.pcmrma-quote-card__actions .pcmrma-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.pcmrma-quote-card__notice {
  margin-top: 13px;
  padding: 11px 12px;
  display: grid;
  gap: 3px;
  border: 1px solid #d6e5e9;
  border-radius: 10px;
  background: #f5fafb;
  color: #496672;
  font-size: 11px;
  line-height: 1.45;
}

.pcmrma-quote-card__notice strong { color: #173946; font-size: 12px; }
.pcmrma-quote-card__notice--accepted { border-color: #b7dfcf; background: #f1faf6; color: #39715b; }
.pcmrma-quote-card__notice--accepted strong { color: #216749; }
.pcmrma-quote-card__notice--rejected { border-color: #efc4ba; background: #fff5f2; color: #8b5043; }
.pcmrma-quote-card__notice--pending { border-color: #ead29b; background: #fff9ec; color: #765b24; }

.pcmrma-quote-card__form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
}

.pcmrma-quote-card__form .pcmrma-btn {
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 1180px) {
  .pcmrma-page--case .pcmrma-case-body { grid-template-columns: minmax(0,1fr) 380px; }
}

@media (max-width: 900px) {
  .pcmrma-page--case .pcmrma-case-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .pcmrma-page--case .pcmrma-case-main,
  .pcmrma-page--case .pcmrma-case-sidebar { width: 100%; }

  .pcmrma-page--case .pcmrma-case-sidebar {
    max-height: none;
    padding: 0;
    position: static;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .pcmrma-quote-card__head { display: grid; }
  .pcmrma-quote-card__status { max-width: none; justify-self: start; }
  .pcmrma-quote-card__decision { grid-template-columns: 1fr; }
  .pcmrma-quote-line { grid-template-columns: 1fr; }
  .pcmrma-quote-line__amount { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-align: left; }
  .pcmrma-quote-card__form { grid-template-columns: 1fr; }
}

/* ========================================================================
   FRONT v0.6.13 - correccion aislada: conversacion ancha en detalle de caso.
   Evita limites de ancho heredados por el elemento <main> del tema.
   ======================================================================== */
.pcmrma-page--case .pcmrma-case-body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  justify-self: stretch !important;
  grid-template-columns: minmax(0, 1fr) 430px;
}

.pcmrma-page--case .pcmrma-case-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  justify-self: stretch !important;
  justify-items: stretch;
}

.pcmrma-page--case .pcmrma-case-main > .pcmrma-thread,
.pcmrma-page--case .pcmrma-case-main > .pcmrma-reply-box,
.pcmrma-page--case .pcmrma-case-main > .pcmrma-card,
.pcmrma-page--case .pcmrma-case-main > .pcmrma-alert {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}

@media (max-width: 1180px) {
  .pcmrma-page--case .pcmrma-case-body {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

@media (max-width: 900px) {
  .pcmrma-page--case .pcmrma-case-body {
    display: flex;
    width: 100% !important;
  }
}

/* ========================================================================
   FRONT v0.6.15 - correccion aislada
   Conserva las tarjetas validadas de v0.6.13 y recupera los hitos
   completados de la barra de progreso. No modifica ninguna otra vista.
   ======================================================================== */

.pcmrma-page--case .pcmrma-progress__step--done .pcmrma-progress__icon {
  filter: none !important;
  border-color: #1599b2 !important;
  background-color: #1599b2 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.4 3.4 7.6-8'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 19px 19px !important;
  box-shadow: 0 0 0 4px rgba(21,153,178,.10);
}

/* FRONT v0.6.16 - resumen de apertura y textos orientados al cliente */
.pcmrma-page--open .pcmrma-open-summary {
  grid-template-columns: minmax(280px, 1.8fr) repeat(4, minmax(120px, 1fr));
}

.pcmrma-open-summary__product-list {
  display: grid;
  gap: 3px;
}

.pcmrma-open-summary__product-list strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.35;
}

.pcmrma-open-summary__product-list small {
  color: #55717d;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .pcmrma-page--open .pcmrma-open-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pcmrma-page--open .pcmrma-open-summary__products {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .pcmrma-page--open .pcmrma-open-summary {
    grid-template-columns: 1fr;
  }

  .pcmrma-page--open .pcmrma-open-summary__products {
    grid-column: auto;
  }
}

/* v0.6.17 - Jerarquia visual de decisiones del presupuesto. */
.pcmrma-quote-card__form .pcmrma-btn--quote-accept {
  border-color: #247d5a;
  background: #247d5a;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(36,125,90,.2);
}

.pcmrma-quote-card__form .pcmrma-btn--quote-accept:hover,
.pcmrma-quote-card__form .pcmrma-btn--quote-accept:focus {
  border-color: #1c684a;
  background: #1c684a;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(36,125,90,.27);
}

.pcmrma-quote-card__form .pcmrma-btn--quote-reject {
  border-color: #cb4b3d;
  background: #cb4b3d;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(203,75,61,.17);
}

.pcmrma-quote-card__form .pcmrma-btn--quote-reject:hover,
.pcmrma-quote-card__form .pcmrma-btn--quote-reject:focus {
  border-color: #ad392f;
  background: #ad392f;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(203,75,61,.24);
}

.pcmrma-quote-card__status--accepted {
  border-color: #9bd3ba;
  background: #e8f7ef;
  color: #1d6b4b;
}

.pcmrma-quote-card__status--rejected {
  border-color: #efb5ac;
  background: #fff0ed;
  color: #a43329;
}

.pcmrma-quote-card__notice--accepted {
  border-color: #a9d9c4;
  background: #edf9f3;
  color: #2c6e52;
}

.pcmrma-quote-card__notice--rejected {
  border-color: #efb5ac;
  background: #fff1ee;
  color: #944138;
}

.pcmrma-quote-card__notice--rejected strong {
  color: #a43329;
}

.pcmrma-thread__event--warning {
  border-color: #efb5ac;
  background: #fff3f0;
}

.pcmrma-thread__event--warning .pcmrma-thread__event-icon {
  background-color: #fde4df;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b53b30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2.5 20h19z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}

.pcmrma-thread__event--warning .pcmrma-thread__event-head strong {
  color: #a43329;
}

@media (max-width: 900px) {
  .pcmrma-quote-card__form .pcmrma-btn--quote-accept,
  .pcmrma-quote-card__form .pcmrma-btn--quote-reject {
    width: 100%;
  }
}


/* ========================================================================
   FRONT v0.6.18 - fase logística autorizada, preparación y condiciones.
   ======================================================================== */
.pcmrma-logistics-card { overflow: hidden; }
.pcmrma-logistics-card__head {
  margin: -20px -20px 16px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #dce8ec;
  background: linear-gradient(135deg,#f6fbfc 0%,#eaf7fa 100%);
}
.pcmrma-logistics-card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: #dff4f8 center/21px 21px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v10H3z'/%3E%3Cpath d='M14 10h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}
.pcmrma-logistics-card__icon--pause { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 8v8M15 8v8'/%3E%3C/svg%3E"); }
.pcmrma-logistics-card__eyebrow { display:block; color:#158ba3; font-size:9px; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.pcmrma-logistics-card__head h3 { margin:2px 0 0; font-size:18px; }
.pcmrma-logistics-card__head p { margin:3px 0 0; color:#58717c; font-size:11px; }
.pcmrma-logistics-card__status { max-width:135px; padding:6px 9px; border:1px solid #c8dce2; border-radius:999px; background:#fff; color:#456571; font-size:9px; font-weight:800; text-align:center; }
.pcmrma-logistics-card--waiting p { margin:0; color:#4d6873; font-size:12px; line-height:1.5; }
.pcmrma-logistics-card__document { margin-bottom:13px; padding:10px 11px; display:flex; gap:9px; align-items:center; border:1px solid #c9dfe5; border-radius:10px; background:#f4fbfc; color:#174653; text-decoration:none; font-size:11px; }
.pcmrma-logistics-card__document span { width:28px; height:28px; border-radius:8px; background:#e0f3f7 center/15px 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2'%3E%3Cpath d='M6 2h9l3 3v17H6z'/%3E%3Cpath d='M14 2v4h4'/%3E%3Cpath d='M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.pcmrma-logistics-method { margin-bottom:13px; padding:11px 12px; border:1px solid #dce8ec; border-radius:10px; background:#fbfdfe; }
.pcmrma-logistics-method span,.pcmrma-logistics-method small { display:block; color:#718791; font-size:9px; }
.pcmrma-logistics-method strong { display:block; margin:3px 0; color:#173a47; font-size:12px; }
.pcmrma-logistics-guide { padding:13px; border:1px solid #c9e2e8; border-radius:12px; background:#f3fbfd; }
.pcmrma-logistics-guide__title { display:flex; gap:9px; align-items:center; }
.pcmrma-logistics-guide__title > span { width:32px; height:32px; flex:0 0 32px; border-radius:9px; background:#dff3f7 center/17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5M12 22V12'/%3E%3C/svg%3E"); }
.pcmrma-logistics-guide__title strong,.pcmrma-logistics-guide__title small { display:block; }
.pcmrma-logistics-guide__title strong { color:#163b48; font-size:12px; }
.pcmrma-logistics-guide__title small { margin-top:2px; color:#78909a; font-size:9px; }
.pcmrma-logistics-guide ul { margin:12px 0 0; padding-left:18px; color:#45636f; font-size:11px; line-height:1.55; }
.pcmrma-logistics-guide__video { margin-top:11px; padding:9px 10px; display:flex; align-items:center; gap:8px; border:1px solid #b9dce4; border-radius:9px; background:#fff; color:#087d95; font-size:10px; font-weight:800; text-decoration:none; }
.pcmrma-logistics-guide__video span { width:24px; height:24px; border-radius:7px; background:#e7f7fa center/13px 13px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2'%3E%3Cpath d='m8 5 11 7-11 7z'/%3E%3C/svg%3E"); }
.pcmrma-logistics-note { margin-top:12px; padding:11px 12px; border-left:3px solid #16a0b8; border-radius:8px; background:#f7fbfc; color:#486570; font-size:11px; }
.pcmrma-logistics-note strong { color:#173b47; }
.pcmrma-logistics-note p { margin:5px 0 0; line-height:1.5; }
.pcmrma-logistics-acceptance { margin-top:13px; display:grid; gap:8px; }
.pcmrma-logistics-acceptance label { margin:0; padding:9px 10px; display:grid; grid-template-columns:18px minmax(0,1fr); gap:8px; align-items:start; border:1px solid #dce7eb; border-radius:9px; background:#fff; color:#3e5d69; font-size:10px; line-height:1.4; }
.pcmrma-logistics-acceptance input { margin:2px 0 0; }
.pcmrma-logistics-acceptance a { color:#087f97; font-weight:800; }
.pcmrma-btn--logistics { width:100%; margin-top:3px; justify-content:center; text-align:center; }
.pcmrma-logistics-confirmed { margin-bottom:12px; padding:12px; border:1px solid #b7dfcf; border-radius:10px; background:#f1faf6; color:#3d705c; font-size:11px; }
.pcmrma-logistics-confirmed strong,.pcmrma-logistics-confirmed span { display:block; }
.pcmrma-logistics-confirmed strong { color:#20694a; font-size:12px; }
.pcmrma-logistics-confirmed span { margin-top:2px; color:#6d8c7f; font-size:9px; }
.pcmrma-logistics-confirmed p { margin:5px 0 0; }
.pcmrma-logistics-detail { margin-top:10px; padding:11px 12px; border:1px solid #dce7eb; border-radius:10px; background:#fbfdfe; color:#486570; font-size:11px; }
.pcmrma-logistics-detail strong { color:#173b47; }
.pcmrma-logistics-detail p { margin:5px 0 0; }
.pcmrma-logistics-detail--success { border-color:#b7dfcf; background:#f3faf7; }
.pcmrma-logistics-shipping-form { margin-top:12px; display:grid; gap:9px; }
.pcmrma-logistics-shipping-form label { display:grid; gap:4px; color:#49646f; font-size:10px; font-weight:700; }
.pcmrma-logistics-shipping-form input,.pcmrma-logistics-shipping-form textarea { width:100%; min-width:0; padding:9px 10px; border:1px solid #cedde3; border-radius:9px; background:#fff; color:#173642; font:inherit; font-weight:400; }
.pcmrma-logistics-shipping-form .pcmrma-btn { width:100%; justify-content:center; }
@media (max-width:520px) {
  .pcmrma-logistics-card__head { grid-template-columns:38px minmax(0,1fr); }
  .pcmrma-logistics-card__status { grid-column:1/-1; max-width:none; justify-self:start; }
}

/* ========================================================================
   FRONT v0.6.19 - logística prioritaria antes del caso y panel contextual.
   ======================================================================== */
.pcmrma-logistics-gate {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #c9dfe6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(7,31,45,.08);
}

.pcmrma-logistics-gate__hero {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 92% -30%, rgba(88,205,226,.24) 0 145px, transparent 146px),
    linear-gradient(120deg,#071f2d 0%,#113e51 62%,#1f7287 100%);
}

.pcmrma-logistics-gate__hero-icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 15px;
  background: rgba(255,255,255,.10) center/27px 27px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377d6e7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v10H3z'/%3E%3Cpath d='M14 10h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}

.pcmrma-logistics-gate__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #67d3e6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.pcmrma-logistics-gate__hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px,2.1vw,30px);
  line-height: 1.12;
}

.pcmrma-logistics-gate__hero p {
  margin: 7px 0 0;
  max-width: 780px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.5;
}

.pcmrma-logistics-gate__status {
  max-width: 190px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.pcmrma-logistics-gate__body {
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(340px,.75fr);
  gap: 24px;
  align-items: start;
  background: linear-gradient(180deg,#f8fcfd 0%,#fff 34%);
}

.pcmrma-logistics-gate__main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.pcmrma-logistics-gate__method {
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #d5e6eb;
  border-radius: 13px;
  background: #fff;
}

.pcmrma-logistics-gate__method-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: #e6f7fa center/19px 19px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23078aa2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7 9 18l-5-5'/%3E%3C/svg%3E");
}

.pcmrma-logistics-gate__method small,
.pcmrma-logistics-gate__method strong,
.pcmrma-logistics-gate__method span { display: block; }
.pcmrma-logistics-gate__method small { color:#6d8590; font-size:9px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.pcmrma-logistics-gate__method strong { margin-top:2px; color:#0c2b38; font-size:14px; }
.pcmrma-logistics-gate__method span { margin-top:2px; color:#607983; font-size:10px; }

.pcmrma-logistics-gate__guide {
  padding: 18px;
  border: 1px solid #d5e7ec;
  border-radius: 15px;
  background: #f5fbfc;
}

.pcmrma-logistics-gate__section-title {
  display: flex;
  gap: 11px;
  align-items: center;
}

.pcmrma-logistics-gate__section-title > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: #dff4f8 center/19px 19px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5M12 22V12'/%3E%3C/svg%3E");
}

.pcmrma-logistics-gate__section-title strong,
.pcmrma-logistics-gate__section-title small { display:block; }
.pcmrma-logistics-gate__section-title strong { color:#123846; font-size:14px; }
.pcmrma-logistics-gate__section-title small { margin-top:2px; color:#6c8590; font-size:10px; }

.pcmrma-logistics-gate__steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.pcmrma-logistics-gate__steps article {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #d9e7eb;
  border-radius: 11px;
  background: #fff;
}

.pcmrma-logistics-gate__steps b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #082b3a;
  color: #fff;
  font-size: 9px;
  letter-spacing: .04em;
}

.pcmrma-logistics-gate__steps strong,
.pcmrma-logistics-gate__steps small { display:block; }
.pcmrma-logistics-gate__steps strong { color:#153744; font-size:11px; line-height:1.35; }
.pcmrma-logistics-gate__steps small { margin-top:3px; color:#607984; font-size:10px; line-height:1.45; }

.pcmrma-logistics-gate__video {
  margin-top: 12px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  gap: 1px 10px;
  align-items: center;
  border: 1px solid #afd9e2;
  border-radius: 11px;
  background: #fff;
  color: #0a7288;
  text-decoration: none;
}
.pcmrma-logistics-gate__video > span {
  width:32px;
  height:32px;
  grid-row:1/3;
  border-radius:9px;
  background:#e5f7fa center/16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2'%3E%3Cpath d='m8 5 11 7-11 7z'/%3E%3C/svg%3E");
}
.pcmrma-logistics-gate__video b { font-size:11px; }
.pcmrma-logistics-gate__video small { color:#718994; font-size:9px; }

.pcmrma-logistics-gate__case-note {
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 11px;
  border: 1px solid #bddfe6;
  border-radius: 12px;
  background: #eef9fb;
}
.pcmrma-logistics-gate__case-note > span {
  width:30px;
  height:30px;
  border-radius:9px;
  background:#d8f1f6 center/15px 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
}
.pcmrma-logistics-gate__case-note strong { color:#143946; font-size:11px; }
.pcmrma-logistics-gate__case-note p { margin:4px 0 0; color:#456572; font-size:10px; line-height:1.5; }

.pcmrma-logistics-gate__confirm {
  padding: 18px;
  border: 1px solid #cddfe5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7,31,45,.06);
}

.pcmrma-logistics-gate__confirm-head {
  padding-bottom: 14px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  gap: 11px;
  border-bottom: 1px solid #e3ecef;
}
.pcmrma-logistics-gate__confirm-head > span {
  width:40px;
  height:40px;
  border-radius:11px;
  background:#e9f8f4 center/20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a8b68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E");
}
.pcmrma-logistics-gate__confirm-head small { color:#13849b; font-size:9px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.pcmrma-logistics-gate__confirm-head h3 { margin:2px 0 0; color:#102f3b; font-size:17px; }
.pcmrma-logistics-gate__confirm-head p { margin:5px 0 0; color:#627b86; font-size:10px; line-height:1.45; }

.pcmrma-logistics-gate__form {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.pcmrma-logistics-gate__form label {
  margin: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid #dce7eb;
  border-radius: 10px;
  background: #fbfdfe;
  cursor: pointer;
}
.pcmrma-logistics-gate__form label:hover { border-color:#aed8e1; background:#f5fbfc; }
.pcmrma-logistics-gate__form input { margin: 3px 0 0; accent-color:#07849b; }
.pcmrma-logistics-gate__form b,
.pcmrma-logistics-gate__form small { display:block; }
.pcmrma-logistics-gate__form b { color:#173946; font-size:10px; }
.pcmrma-logistics-gate__form small { margin-top:2px; color:#607984; font-size:9px; line-height:1.42; }
.pcmrma-logistics-gate__form a { color:#087d95; font-weight:800; }
.pcmrma-logistics-gate__form .pcmrma-btn { min-height:44px; margin-top:3px; justify-content:center; background:#087d95; }
.pcmrma-logistics-gate__form .pcmrma-btn:hover { background:#066b80; }

.pcmrma-logistics-summary {
  margin: 0 0 16px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #b9dfd0;
  border-radius: 14px;
  background: linear-gradient(135deg,#f2fbf7 0%,#e8f7f1 100%);
  box-shadow: 0 8px 22px rgba(19,91,65,.05);
}
.pcmrma-logistics-summary__icon {
  width:36px;
  height:36px;
  border-radius:10px;
  background:#d9f2e7 center/18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257d5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E");
}
.pcmrma-logistics-summary strong { color:#1f694d; font-size:12px; }
.pcmrma-logistics-summary p { margin:3px 0 0; color:#4d7464; font-size:10px; line-height:1.4; }
.pcmrma-logistics-summary__status { padding:6px 9px; border:1px solid #b5d8ca; border-radius:999px; background:#fff; color:#39705b; font-size:9px; font-weight:850; text-align:center; }
.pcmrma-logistics-summary--received { border-color:#b9d9e4; background:linear-gradient(135deg,#f3fafc 0%,#eaf6fa 100%); }
.pcmrma-logistics-summary--received .pcmrma-logistics-summary__icon { background-color:#deeff5; }

.pcmrma-logistics-shipping-form__head {
  padding-bottom: 9px;
  border-bottom: 1px solid #e2eaed;
}
.pcmrma-logistics-shipping-form__head strong,
.pcmrma-logistics-shipping-form__head small { display:block; }
.pcmrma-logistics-shipping-form__head strong { color:#163946; font-size:12px; }
.pcmrma-logistics-shipping-form__head small { margin-top:3px; color:#718791; font-size:9px; line-height:1.4; }
.pcmrma-logistics-shipping-form label { margin:0; }
.pcmrma-logistics-shipping-form label > span { color:#49646f; font-size:9px; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.pcmrma-logistics-shipping-form input,
.pcmrma-logistics-shipping-form textarea {
  min-height: 40px;
  border-color:#cbdde3;
  border-radius:10px;
  background:#fff;
  font-size:11px;
  line-height:1.4;
}
.pcmrma-logistics-shipping-form textarea { min-height:78px; resize:vertical; }
.pcmrma-logistics-shipping-form input:focus,
.pcmrma-logistics-shipping-form textarea:focus { outline:0; border-color:#1599b2; box-shadow:0 0 0 3px rgba(21,153,178,.10); }
.pcmrma-logistics-shipping-form .pcmrma-btn { min-height:42px; background:#082b3a; }

.pcmrma-logistics-confirmed--received { border-color:#b9d9e4; background:#f2f9fb; color:#446b79; }
.pcmrma-logistics-confirmed--received strong { color:#185b70; }

@media (max-width: 1080px) {
  .pcmrma-logistics-gate__body { grid-template-columns: minmax(0,1fr) 330px; }
}

@media (max-width: 900px) {
  .pcmrma-logistics-gate__body { grid-template-columns: 1fr; }
  .pcmrma-logistics-gate__confirm { box-shadow:none; }
}

@media (max-width: 640px) {
  .pcmrma-logistics-gate { border-radius:16px; }
  .pcmrma-logistics-gate__hero {
    padding:18px;
    grid-template-columns:44px minmax(0,1fr);
  }
  .pcmrma-logistics-gate__hero-icon { width:44px; height:44px; border-radius:12px; background-size:22px 22px; }
  .pcmrma-logistics-gate__status { grid-column:1/-1; max-width:none; justify-self:start; }
  .pcmrma-logistics-gate__body { padding:16px; gap:16px; }
  .pcmrma-logistics-gate__steps { grid-template-columns:1fr; }
  .pcmrma-logistics-summary { grid-template-columns:34px minmax(0,1fr); }
  .pcmrma-logistics-summary__status { grid-column:1/-1; justify-self:start; }
}


/* ========================================================================
   FRONT v0.6.20 - acceso visible al seguimiento y foco guiado.
   ======================================================================== */
.pcmrma-logistics-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.pcmrma-logistics-summary__action {
  min-height: 34px;
  padding: 7px 12px;
  border-color: #087d95;
  background: #087d95;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(8,125,149,.16);
}

.pcmrma-logistics-summary__action:hover,
.pcmrma-logistics-summary__action:focus {
  border-color: #066b80;
  background: #066b80;
  color: #fff;
}

#pcmrma-logistics-sidebar {
  scroll-margin-top: 24px;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#pcmrma-logistics-sidebar.is-attention {
  animation: pcmrma-logistics-attention 3s ease-out;
}

@keyframes pcmrma-logistics-attention {
  0% {
    border-color: #18a8c0;
    box-shadow: 0 0 0 0 rgba(24,168,192,.36), 0 18px 42px rgba(7,31,45,.10);
    transform: translateY(0);
  }
  18% {
    border-color: #18a8c0;
    box-shadow: 0 0 0 7px rgba(24,168,192,.17), 0 18px 42px rgba(7,31,45,.12);
    transform: translateY(-2px);
  }
  42% {
    border-color: #18a8c0;
    box-shadow: 0 0 0 3px rgba(24,168,192,.12), 0 18px 42px rgba(7,31,45,.10);
    transform: translateY(0);
  }
  68% {
    border-color: #18a8c0;
    box-shadow: 0 0 0 6px rgba(24,168,192,.10), 0 18px 42px rgba(7,31,45,.10);
  }
  100% {
    border-color: #d5e2e7;
    box-shadow: 0 12px 30px rgba(7,31,45,.06);
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .pcmrma-logistics-summary__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .pcmrma-logistics-summary__action {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pcmrma-logistics-sidebar.is-attention {
    animation: none;
    border-color: #18a8c0;
    box-shadow: 0 0 0 4px rgba(24,168,192,.14);
  }
}


/* ========================================================================
   FRONT v0.6.21 - consulta permanente de preparación y condiciones.
   ======================================================================== */
.pcmrma-logistics-summary__action--secondary {
  border-color: #b7dbe3;
  background: #fff;
  color: #087d95;
  box-shadow: none;
}

.pcmrma-logistics-summary__action--secondary:hover,
.pcmrma-logistics-summary__action--secondary:focus {
  border-color: #087d95;
  background: #eff9fb;
  color: #066b80;
}

.pcmrma-logistics-summary__link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 2px;
  color: #087d95;
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.pcmrma-logistics-summary__link:hover,
.pcmrma-logistics-summary__link:focus {
  color: #055f72;
  text-decoration: underline;
}

.pcmrma-logistics-preparation-review {
  margin: 0 0 12px;
  border: 1px solid #cfe1e6;
  border-radius: 12px;
  background: #fbfdfe;
  overflow: hidden;
}

.pcmrma-logistics-preparation-review > summary {
  padding: 12px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) 16px;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  background: #f4fafc;
}

.pcmrma-logistics-preparation-review > summary::-webkit-details-marker { display: none; }

.pcmrma-logistics-preparation-review__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #dff2f6 center/16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

.pcmrma-logistics-preparation-review summary strong,
.pcmrma-logistics-preparation-review summary small { display:block; }
.pcmrma-logistics-preparation-review summary strong { color:#173b47; font-size:11px; }
.pcmrma-logistics-preparation-review summary small { margin-top:2px; color:#6e858e; font-size:9px; line-height:1.35; }

.pcmrma-logistics-preparation-review__chevron {
  width: 16px;
  height: 16px;
  background: center/14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c7781' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .2s ease;
}

.pcmrma-logistics-preparation-review[open] .pcmrma-logistics-preparation-review__chevron { transform: rotate(180deg); }

.pcmrma-logistics-preparation-review__body {
  padding: 12px;
  display: grid;
  gap: 12px;
  border-top: 1px solid #dce8ec;
}

.pcmrma-logistics-preparation-review__meta {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.pcmrma-logistics-preparation-review__meta span {
  padding: 9px 10px;
  border: 1px solid #dbe7eb;
  border-radius: 9px;
  background: #fff;
}
.pcmrma-logistics-preparation-review__meta small,
.pcmrma-logistics-preparation-review__meta strong { display:block; }
.pcmrma-logistics-preparation-review__meta small { color:#7a8f98; font-size:8px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.pcmrma-logistics-preparation-review__meta strong { margin-top:3px; color:#173b47; font-size:10px; }

.pcmrma-logistics-preparation-review__checks {
  display: grid;
  gap: 7px;
}
.pcmrma-logistics-preparation-review__checks span {
  position: relative;
  padding-left: 23px;
  color:#486570;
  font-size:10px;
  line-height:1.4;
}
.pcmrma-logistics-preparation-review__checks span::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#daf3e8 center/10px 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23277f5d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
}

.pcmrma-logistics-preparation-review__guide {
  padding: 10px 11px;
  border-left: 3px solid #18a0b8;
  border-radius: 8px;
  background: #f5fafc;
}
.pcmrma-logistics-preparation-review__guide > strong { color:#173b47; font-size:10px; }
.pcmrma-logistics-preparation-review__guide ul { margin:7px 0 0; padding-left:17px; }
.pcmrma-logistics-preparation-review__guide li { margin:4px 0; color:#4d6873; font-size:9px; line-height:1.4; }

.pcmrma-logistics-preparation-review__links {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pcmrma-logistics-preparation-review__links a {
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:7px 10px;
  border:1px solid #b9dce4;
  border-radius:8px;
  background:#fff;
  color:#087d95;
  font-size:9px;
  font-weight:850;
  text-decoration:none;
}
.pcmrma-logistics-preparation-review__links a:hover,
.pcmrma-logistics-preparation-review__links a:focus { border-color:#087d95; background:#eff9fb; }

@media (max-width: 640px) {
  .pcmrma-logistics-summary__link {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid #b7dbe3;
    border-radius: 8px;
    background: #fff;
  }
  .pcmrma-logistics-preparation-review__meta { grid-template-columns:1fr; }
  .pcmrma-logistics-preparation-review__links { display:grid; }
  .pcmrma-logistics-preparation-review__links a { justify-content:center; }
}


/* ========================================================================
   FRONT v0.6.22 - logística legible y acciones superiores visibles.
   ======================================================================== */
.pcmrma-logistics-summary {
  padding: 16px 18px;
  gap: 14px;
}

.pcmrma-logistics-summary strong {
  font-size: 14px;
  line-height: 1.3;
}

.pcmrma-logistics-summary p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.pcmrma-logistics-summary__actions {
  gap: 9px;
}

.pcmrma-logistics-summary__status {
  min-height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.pcmrma-logistics-summary__action,
.pcmrma-logistics-summary__action--secondary,
.pcmrma-logistics-summary__link {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #a9d4de;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.pcmrma-logistics-summary__action--secondary {
  background: #fff;
  color: #087d95 !important;
}

.pcmrma-logistics-summary__action--secondary::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 7px;
  flex: 0 0 16px;
  background: center/16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v16H3z'/%3E%3Cpath d='M7 8h10M7 12h10M7 16h6'/%3E%3C/svg%3E");
}

.pcmrma-logistics-summary__link {
  background: #fff;
  color: #087d95;
}

.pcmrma-logistics-summary__link::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 7px;
  flex: 0 0 15px;
  background: center/15px 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l3 3v17H6z'/%3E%3Cpath d='M14 2v4h4'/%3E%3Cpath d='M9 12h6M9 16h6'/%3E%3C/svg%3E");
}

.pcmrma-logistics-summary__link[href*="garantia.mp4"]::before,
.pcmrma-logistics-summary__link[href*="video"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8 6 4-6 4z'/%3E%3C/svg%3E");
}

.pcmrma-logistics-summary__link:hover,
.pcmrma-logistics-summary__link:focus {
  border-color: #087d95;
  background: #eff9fb;
  color: #055f72;
  text-decoration: none;
}

.pcmrma-logistics-card__eyebrow {
  font-size: 10px;
}

.pcmrma-logistics-card__head h3 {
  font-size: 20px;
  line-height: 1.25;
}

.pcmrma-logistics-card__head p {
  font-size: 12px;
}

.pcmrma-logistics-confirmed {
  padding: 15px;
  font-size: 13px;
  line-height: 1.5;
}

.pcmrma-logistics-confirmed strong {
  font-size: 14px;
}

.pcmrma-logistics-confirmed span {
  font-size: 11px;
}

.pcmrma-logistics-preparation-review {
  margin-bottom: 16px;
  border-radius: 14px;
}

.pcmrma-logistics-preparation-review > summary {
  padding: 15px;
  grid-template-columns: 38px minmax(0,1fr) 18px;
  gap: 12px;
}

.pcmrma-logistics-preparation-review__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-size: 19px 19px;
}

.pcmrma-logistics-preparation-review summary strong {
  font-size: 14px;
  line-height: 1.3;
}

.pcmrma-logistics-preparation-review summary small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
}

.pcmrma-logistics-preparation-review__body {
  padding: 15px;
  gap: 15px;
}

.pcmrma-logistics-preparation-review__meta {
  gap: 10px;
}

.pcmrma-logistics-preparation-review__meta span {
  padding: 11px 12px;
  border-radius: 10px;
}

.pcmrma-logistics-preparation-review__meta small {
  font-size: 9px;
}

.pcmrma-logistics-preparation-review__meta strong {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.pcmrma-logistics-preparation-review__checks {
  gap: 9px;
}

.pcmrma-logistics-preparation-review__checks span {
  min-height: 20px;
  padding-left: 27px;
  font-size: 12px;
  line-height: 1.5;
}

.pcmrma-logistics-preparation-review__checks span::before {
  width: 19px;
  height: 19px;
  background-size: 11px 11px;
}

.pcmrma-logistics-preparation-review__guide {
  padding: 14px 15px;
  border-left-width: 4px;
  border-radius: 10px;
}

.pcmrma-logistics-preparation-review__guide > strong {
  font-size: 14px;
}

.pcmrma-logistics-preparation-review__guide ul {
  margin-top: 10px;
  padding-left: 20px;
}

.pcmrma-logistics-preparation-review__guide li {
  margin: 7px 0;
  font-size: 12px;
  line-height: 1.55;
}

.pcmrma-logistics-preparation-review__links {
  gap: 10px;
}

.pcmrma-logistics-preparation-review__links a {
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.25;
}

.pcmrma-logistics-shipping-form__head strong {
  font-size: 14px;
}

.pcmrma-logistics-shipping-form__head small {
  font-size: 11px;
  line-height: 1.45;
}

.pcmrma-logistics-shipping-form {
  gap: 12px;
}

.pcmrma-logistics-shipping-form label > span {
  font-size: 10px;
}

.pcmrma-logistics-shipping-form input,
.pcmrma-logistics-shipping-form textarea {
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.pcmrma-logistics-shipping-form textarea {
  min-height: 92px;
}

@media (max-width: 900px) {
  .pcmrma-logistics-summary {
    grid-template-columns: 40px minmax(0,1fr);
  }

  .pcmrma-logistics-summary__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .pcmrma-logistics-summary__status,
  .pcmrma-logistics-summary__action,
  .pcmrma-logistics-summary__link {
    width: 100%;
    justify-content: center;
  }

  .pcmrma-logistics-preparation-review__body {
    padding: 13px;
  }
}

/* ========================================================================
   FRONT v0.6.23 - legibilidad prioritaria en preparación logística.
   ======================================================================== */
.pcmrma-logistics-gate__hero p {
  font-size: 15px;
  line-height: 1.55;
}

.pcmrma-logistics-gate__status {
  padding: 9px 13px;
  font-size: 11px;
  line-height: 1.35;
}

.pcmrma-logistics-gate__method {
  padding: 16px 18px;
}

.pcmrma-logistics-gate__method small {
  font-size: 10px;
}

.pcmrma-logistics-gate__method strong {
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.35;
}

.pcmrma-logistics-gate__method span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.pcmrma-logistics-gate__guide {
  padding: 20px;
}

.pcmrma-logistics-gate__section-title strong {
  font-size: 16px;
  line-height: 1.35;
}

.pcmrma-logistics-gate__section-title small {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
}

.pcmrma-logistics-gate__steps {
  gap: 12px;
}

.pcmrma-logistics-gate__steps article {
  padding: 14px;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 12px;
}

.pcmrma-logistics-gate__steps b {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.pcmrma-logistics-gate__steps strong {
  font-size: 14px;
  line-height: 1.4;
}

.pcmrma-logistics-gate__steps small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
}

.pcmrma-logistics-gate__video {
  padding: 13px 14px;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 2px 12px;
}

.pcmrma-logistics-gate__video > span {
  width: 36px;
  height: 36px;
  background-size: 18px 18px;
}

.pcmrma-logistics-gate__video b {
  font-size: 14px;
  line-height: 1.35;
}

.pcmrma-logistics-gate__video small {
  font-size: 11px;
  line-height: 1.4;
}

.pcmrma-logistics-gate__case-note {
  padding: 15px 17px;
}

.pcmrma-logistics-gate__case-note strong {
  font-size: 13px;
}

.pcmrma-logistics-gate__case-note p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.55;
}

.pcmrma-logistics-gate__confirm {
  padding: 20px;
}

.pcmrma-logistics-gate__confirm-head small {
  font-size: 10px;
}

.pcmrma-logistics-gate__confirm-head h3 {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.3;
}

.pcmrma-logistics-gate__confirm-head p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.pcmrma-logistics-gate__form {
  gap: 11px;
}

.pcmrma-logistics-gate__form label {
  padding: 13px 14px;
  grid-template-columns: 20px minmax(0,1fr);
  gap: 11px;
}

.pcmrma-logistics-gate__form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.pcmrma-logistics-gate__form b {
  font-size: 13px;
  line-height: 1.4;
}

.pcmrma-logistics-gate__form small {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
}

.pcmrma-logistics-gate__form .pcmrma-btn {
  min-height: 48px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .pcmrma-logistics-gate__hero p {
    font-size: 14px;
  }

  .pcmrma-logistics-gate__guide,
  .pcmrma-logistics-gate__confirm {
    padding: 16px;
  }

  .pcmrma-logistics-gate__steps strong {
    font-size: 13px;
  }

  .pcmrma-logistics-gate__steps small,
  .pcmrma-logistics-gate__form small {
    font-size: 11.5px;
  }
}

/* ========================================================================
   FRONT v0.6.29 - informe tecnico profesional en el lateral del caso.
   Bloque aislado para no alterar conversacion, logistica ni presupuesto.
   ======================================================================== */
.pcmrma-page--case .pcmrma-technical-report {
  padding: 0;
  overflow: hidden;
  border-color: #cbdde4;
  background: #fff;
}

.pcmrma-technical-report__head {
  padding: 18px 20px 17px;
  border-bottom: 1px solid #dfe9ed;
  background: linear-gradient(135deg, #fafdfe 0%, #edf8fa 100%);
}

.pcmrma-technical-report__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #0b8299;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pcmrma-technical-report__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pcmrma-technical-report__title-row h3 {
  margin: 0;
  color: #0b2d3b;
  font-size: 21px;
  line-height: 1.25;
}

.pcmrma-technical-report__status {
  max-width: 190px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9dfcd;
  border-radius: 999px;
  background: #eef8f3;
  color: #246348;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.pcmrma-technical-report__status--no_fault_found,
.pcmrma-technical-report__status--other {
  border-color: #cbdbe2;
  background: #f3f7f9;
  color: #486571;
}

.pcmrma-technical-report__status--replacement_needed,
.pcmrma-technical-report__status--manufacturer_or_supplier,
.pcmrma-technical-report__status--quote_needed,
.pcmrma-technical-report__status--pending_parts {
  border-color: #ead29b;
  background: #fff9ec;
  color: #765b24;
}

.pcmrma-technical-report__status--rejected_no_warranty {
  border-color: #efc4ba;
  background: #fff5f2;
  color: #8b5043;
}

.pcmrma-technical-report__reference {
  margin-top: 9px;
  display: block;
  color: #334f5b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pcmrma-technical-report__meta {
  padding: 14px 20px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.pcmrma-technical-report__meta-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e0e9ed;
  border-radius: 10px;
  background: #f8fbfc;
}

.pcmrma-technical-report__meta-item span {
  display: block;
  margin-bottom: 3px;
  color: #738995;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pcmrma-technical-report__meta-item strong {
  display: block;
  color: #183b48;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pcmrma-technical-report__download {
  width: calc(100% - 40px);
  min-height: 42px;
  margin: 12px 20px 0;
  justify-content: center;
  border-color: #a9ccd6;
  background: #fff;
  color: #0b6274 !important;
  font-size: 12px;
}

.pcmrma-technical-report__download:hover,
.pcmrma-technical-report__download:focus {
  border-color: #68b5c5;
  background: #f1fafc;
}

.pcmrma-technical-report__sections {
  padding: 14px 20px 20px;
  display: grid;
  gap: 9px;
}

.pcmrma-technical-report__section {
  position: relative;
  padding: 11px 12px 11px 14px;
  overflow: hidden;
  border: 1px solid #e0e8ec;
  border-radius: 10px;
  background: #fff;
}

.pcmrma-technical-report__section::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #9abac4;
}

.pcmrma-technical-report__section--highlight {
  border-color: #c9e1e7;
  background: #f5fbfc;
}

.pcmrma-technical-report__section--highlight::before {
  background: #1698b0;
}

.pcmrma-technical-report__section--success {
  border-color: #c8e4d7;
  background: #f4faf7;
}

.pcmrma-technical-report__section--success::before {
  background: #33936d;
}

.pcmrma-technical-report__section--recommendation {
  border-color: #eadfbd;
  background: #fffaf0;
}

.pcmrma-technical-report__section--recommendation::before {
  background: #c7952c;
}

.pcmrma-technical-report__section-label {
  display: block;
  margin-bottom: 4px;
  color: #173946;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.pcmrma-technical-report__section-text {
  color: #3c5965;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .pcmrma-technical-report__head,
  .pcmrma-technical-report__sections {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pcmrma-technical-report__title-row {
    display: grid;
  }

  .pcmrma-technical-report__status {
    max-width: none;
    justify-self: start;
  }

  .pcmrma-technical-report__meta {
    padding-left: 16px;
    padding-right: 16px;
    grid-template-columns: 1fr;
  }

  .pcmrma-technical-report__download {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }
}


/* ========================================================================
   FRONT v0.6.30 - lectura coherente de casos cerrados e historial logistico.
   ======================================================================== */
.pcmrma-case-context {
  margin: 5px 0 0;
  color: #526f7b;
  font-size: 12px;
  line-height: 1.35;
}
.pcmrma-case-context strong { color: #173744; }
.pcmrma-case-context--secondary {
  margin-top: 2px;
  color: #78909a;
  font-size: 11px;
}
.pcmrma-logistics-card--history .pcmrma-logistics-card__head {
  border-bottom-color: #dce5e8;
  background: linear-gradient(135deg,#f8fafb 0%,#eef3f5 100%);
}
.pcmrma-logistics-card--history .pcmrma-logistics-card__icon {
  background-color: #e6eef1;
  filter: saturate(.55);
}
.pcmrma-logistics-card--history .pcmrma-logistics-card__eyebrow { color: #607983; }
.pcmrma-logistics-history-note {
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #d8e3e7;
  border-radius: 10px;
  background: #f7fafb;
  color: #58717b;
  font-size: 11px;
  line-height: 1.5;
}
.pcmrma-logistics-history-note strong {
  display: block;
  color: #173a47;
  font-size: 12px;
}
.pcmrma-logistics-history-note p { margin: 4px 0 0; }
.pcmrma-logistics-confirmed--history {
  border-color: #cbdde3;
  background: #f4f8f9;
  color: #526d77;
}
.pcmrma-logistics-confirmed--history strong { color: #244d5b; }
.pcmrma-logistics-detail--history {
  border-color: #d8e3e7;
  background: #fbfcfd;
}
.pcmrma-logistics-detail--history p b { color: #284b58; }
.pcmrma-logistics-note--history {
  border-left-color: #91acb6;
  background: #f8fafb;
}

/* ========================================================================
   FRONT v0.6.31 - historial logístico compacto y legible.
   ======================================================================== */
.pcmrma-logistics-card--history .pcmrma-logistics-card__head {
  margin-bottom: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.pcmrma-logistics-history-overview {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.pcmrma-logistics-history-overview .pcmrma-logistics-history-note,
.pcmrma-logistics-history-overview .pcmrma-logistics-confirmed--history {
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
}

.pcmrma-logistics-history-note > span,
.pcmrma-logistics-confirmed--history > span {
  display: block;
  margin-bottom: 3px;
  color: #78909a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pcmrma-logistics-history-note strong,
.pcmrma-logistics-confirmed--history strong {
  display: block;
  color: #244d5b;
  font-size: 12px;
  line-height: 1.35;
}

.pcmrma-logistics-history-note p,
.pcmrma-logistics-confirmed--history p {
  margin: 4px 0 0;
  color: #58717b;
  font-size: 10px;
  line-height: 1.4;
}

.pcmrma-logistics-history-data {
  overflow: hidden;
  border: 1px solid #d8e3e7;
  border-radius: 11px;
  background: #fbfcfd;
}

.pcmrma-logistics-history-data > div {
  min-width: 0;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: minmax(92px, .7fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: start;
}

.pcmrma-logistics-history-data > div + div {
  border-top: 1px solid #e4ebee;
}

.pcmrma-logistics-history-data span {
  color: #718791;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pcmrma-logistics-history-data strong {
  min-width: 0;
  color: #244653;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pcmrma-logistics-history-data__tracking {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: -.02em;
}

.pcmrma-logistics-history-actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.pcmrma-logistics-history-actions .pcmrma-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.pcmrma-logistics-history-instructions {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #d8e3e7;
  border-radius: 11px;
  background: #f8fafb;
}

.pcmrma-logistics-history-instructions summary {
  padding: 11px 12px;
  cursor: pointer;
  color: #284b58;
  font-size: 11px;
  font-weight: 800;
  list-style-position: inside;
}

.pcmrma-logistics-history-instructions[open] summary {
  border-bottom: 1px solid #dfe8eb;
}

.pcmrma-logistics-history-instructions > div {
  padding: 11px 12px 12px;
  color: #4f6974;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .pcmrma-logistics-history-overview {
    grid-template-columns: 1fr;
  }

  .pcmrma-logistics-history-data > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* ========================================================================
   FRONT v0.6.32 - flujo movil real, sin columnas fantasma ni solapes.
   El tema puede mantener un viewport logico superior a 900 px en algunos
   moviles; por eso el corte acompana al menu movil del tema y se refuerza
   en dispositivos tactiles.
   ======================================================================== */
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .pcmrma-page--case {
    width: calc(100% - 16px) !important;
    max-width: 100% !important;
    margin: 12px auto 40px !important;
    clear: both;
    overflow: visible !important;
  }

  .pcmrma-page--case .pcmrma-case-workspace,
  .pcmrma-page--case .pcmrma-case-body,
  .pcmrma-page--case .pcmrma-case-main,
  .pcmrma-page--case .pcmrma-case-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .pcmrma-page--case .pcmrma-case-workspace,
  .pcmrma-page--case .pcmrma-case-body,
  .pcmrma-page--case .pcmrma-case-main {
    display: block !important;
    overflow: visible !important;
  }

  .pcmrma-page--case .pcmrma-case-workspace > *,
  .pcmrma-page--case .pcmrma-case-main > *,
  .pcmrma-page--case .pcmrma-case-sidebar > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .pcmrma-page--case .pcmrma-case-main > * + *,
  .pcmrma-page--case .pcmrma-case-sidebar > * + * {
    margin-top: 14px !important;
  }

  .pcmrma-page--case .pcmrma-case-sidebar {
    max-height: none !important;
    padding: 0 !important;
    position: static !important;
    inset: auto !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    scrollbar-width: none !important;
    z-index: auto !important;
  }

  .pcmrma-page--case .pcmrma-case-sidebar::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .pcmrma-page--case .pcmrma-case-sidebar .pcmrma-line-rules,
  .pcmrma-page--case .pcmrma-case-sidebar .pcmrma-card,
  .pcmrma-page--case .pcmrma-thread,
  .pcmrma-page--case .pcmrma-reply-box {
    padding: 16px !important;
    border-radius: 14px;
  }

  .pcmrma-page--case .pcmrma-card__head {
    padding: 20px 16px 18px;
    display: grid;
    gap: 10px;
  }

  .pcmrma-page--case .pcmrma-card__head h2 {
    font-size: clamp(24px, 7vw, 30px);
    overflow-wrap: anywhere;
  }

  .pcmrma-page--case .pcmrma-card__head .pcmrma-link {
    justify-self: start;
  }

  .pcmrma-page--case .pcmrma-progress {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 12px;
    grid-template-columns: repeat(9, 104px) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .pcmrma-page--case .pcmrma-progress__step {
    min-width: 0;
    scroll-snap-align: start;
  }

  .pcmrma-page--case .pcmrma-thread::before {
    margin-bottom: 15px;
    font-size: 18px;
  }

  .pcmrma-page--case .pcmrma-thread__message,
  .pcmrma-page--case .pcmrma-thread__event {
    width: 100% !important;
    max-width: 100% !important;
  }

  .pcmrma-page--case .pcmrma-thread__message {
    padding: 14px;
  }

  .pcmrma-page--case .pcmrma-thread__message--customer {
    margin-left: 0;
  }

  .pcmrma-page--case .pcmrma-thread__event {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .pcmrma-page--case .pcmrma-thread__event-icon {
    width: 30px;
    height: 30px;
  }

  .pcmrma-page--case .pcmrma-thread__event-head {
    display: block;
  }

  .pcmrma-page--case .pcmrma-thread__event-head small {
    display: block;
    margin-top: 3px;
  }

  .pcmrma-page--case .pcmrma-reply-box .pcmrma-form {
    margin-top: 14px;
  }

  .pcmrma-page--case .pcmrma-reply-box textarea {
    min-height: 112px;
  }

  .pcmrma-page--case .pcmrma-form input[type='file'] {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
  }

  .pcmrma-page--case .pcmrma-reply-box .pcmrma-btn {
    width: 100%;
  }

  .pcmrma-page--case .pcmrma-product-policy,
  .pcmrma-page--case .pcmrma-quote-card__decision,
  .pcmrma-page--case .pcmrma-technical-report__meta {
    grid-template-columns: 1fr !important;
  }

  .pcmrma-page--case .pcmrma-line-rule,
  .pcmrma-page--case .pcmrma-product-card {
    padding: 14px;
  }

  .pcmrma-page--case .pcmrma-product-card__head,
  .pcmrma-page--case .pcmrma-product-card__head > div {
    min-width: 0;
  }

  .pcmrma-page--case .pcmrma-product-card__head strong,
  .pcmrma-page--case .pcmrma-logistics-history-data strong,
  .pcmrma-page--case .pcmrma-logistics-card__head h3 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .pcmrma-page--case .pcmrma-logistics-card__head {
    margin: -16px -16px 14px;
    padding: 16px;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 10px;
  }

  .pcmrma-page--case .pcmrma-logistics-card__status {
    grid-column: 1 / -1;
    max-width: 100%;
    justify-self: start;
  }

  .pcmrma-page--case .pcmrma-logistics-history-overview,
  .pcmrma-page--case .pcmrma-logistics-history-data > div {
    grid-template-columns: 1fr !important;
  }

  .pcmrma-page--case .pcmrma-logistics-history-data > div {
    gap: 3px;
  }

  .pcmrma-page--case .pcmrma-logistics-history-actions .pcmrma-btn,
  .pcmrma-page--case .pcmrma-logistics-summary__action,
  .pcmrma-page--case .pcmrma-logistics-summary__link {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .pcmrma-page--case .pcmrma-logistics-preparation-review__meta {
    grid-template-columns: 1fr;
  }

  .pcmrma-page--case .pcmrma-technical-report__head,
  .pcmrma-page--case .pcmrma-technical-report__sections,
  .pcmrma-page--case .pcmrma-technical-report__meta {
    padding-left: 0;
    padding-right: 0;
  }

  .pcmrma-page--case .pcmrma-technical-report__download {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 520px), (hover: none) and (pointer: coarse) {
  .pcmrma-page--case .pcmrma-case-sidebar .pcmrma-line-rules,
  .pcmrma-page--case .pcmrma-case-sidebar .pcmrma-card,
  .pcmrma-page--case .pcmrma-thread,
  .pcmrma-page--case .pcmrma-reply-box {
    padding: 14px !important;
  }

  .pcmrma-page--case .pcmrma-card__head {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pcmrma-page--case .pcmrma-logistics-card__head {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .pcmrma-page--case .pcmrma-alert {
    padding: 14px 14px 14px 43px;
  }

  .pcmrma-page--case .pcmrma-alert::before {
    left: 13px;
    top: 14px;
  }
}

/* 0.6.36 - seleccion independiente de producto/equipo */
.pcmrma-target-selector {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #d9e5eb;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdfe 0%, #f5fafc 100%);
  box-shadow: 0 12px 28px rgba(8, 40, 57, .06);
}
.pcmrma-target-selector__head { max-width: 820px; margin-bottom: 18px; }
.pcmrma-target-selector__head h3 { margin: 4px 0 6px; font-size: 24px; line-height: 1.2; color: #082839; }
.pcmrma-target-selector__head p { margin: 0; color: #5f7380; }
.pcmrma-target-selector__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pcmrma-target-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #d8e4ea;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pcmrma-target-card:hover { border-color: #73bdd2; box-shadow: 0 10px 24px rgba(22, 105, 132, .1); transform: translateY(-1px); }
.pcmrma-target-card.is-selected { border-color: #1698bd; box-shadow: 0 0 0 3px rgba(22, 152, 189, .12), 0 12px 28px rgba(8, 40, 57, .09); }
.pcmrma-target-card.is-linked-case { cursor: default; background: #f7f9fa; opacity: .9; }
.pcmrma-target-card > input { position: absolute; opacity: 0; pointer-events: none; }
.pcmrma-target-card__check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border: 2px solid #bfd0d8; border-radius: 50%; background: #fff; }
.pcmrma-target-card.is-selected .pcmrma-target-card__check { border-color: #1698bd; background: #1698bd; box-shadow: inset 0 0 0 5px #fff; }
.pcmrma-target-card__icon { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; background: #edf6f9; position: relative; }
.pcmrma-target-card__icon::before { content: ""; position: absolute; inset: 11px; border: 2px solid #2f91ad; border-radius: 4px; }
.pcmrma-target-card__icon.is-computer::before { inset: 10px 8px 13px; border-radius: 3px; }
.pcmrma-target-card__icon.is-computer::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 9px; height: 2px; background: #2f91ad; box-shadow: 0 3px 0 -1px #2f91ad; }
.pcmrma-target-card__content { display: flex; min-width: 0; padding-right: 28px; flex-direction: column; gap: 3px; }
.pcmrma-target-card__content strong { color: #102d3c; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.pcmrma-target-card__content small { color: #71838d; }
.pcmrma-target-card__type { color: #1d7e9a; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pcmrma-target-card__components { margin-top: 5px; color: #526d7b; font-size: 12px; }
.pcmrma-target-card__policies { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pcmrma-target-card__policies > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; padding: 10px 11px; border: 1px solid #dfe8ec; border-radius: 10px; background: #f8fafb; color: #526976; font-size: 12px; line-height: 1.35; }
.pcmrma-target-card__policies b { color: #244554; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.pcmrma-target-card__policies .is-ok { border-color: #b9dfcf; background: #f1faf6; }
.pcmrma-target-card__policies .is-blocked { border-color: #efd1c9; background: #fff6f3; }
.pcmrma-target-card__policies .is-pending { border-color: #eadcb7; background: #fffaf0; }
.pcmrma-target-card__manufacturer,
.pcmrma-target-card__existing { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 11px 12px; border-radius: 10px; font-size: 12px; }
.pcmrma-target-card__manufacturer { background: #eef8fb; color: #315f70; }
.pcmrma-target-card__manufacturer b { color: #173e4d; }
.pcmrma-target-card__manufacturer a,
.pcmrma-target-card__existing a { margin-left: auto; color: #087c9f; font-weight: 700; }
.pcmrma-target-card__existing { border: 1px solid #ead9b3; background: #fff9ec; color: #6c5524; }
.pcmrma-target-selector__error { margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; background: #fff2ef; color: #a13f2d; font-weight: 700; }

@media (max-width: 900px) {
  .pcmrma-target-selector__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pcmrma-target-selector { padding: 16px; border-radius: 16px; }
  .pcmrma-target-selector__head h3 { font-size: 20px; }
  .pcmrma-target-card { grid-template-columns: 38px minmax(0, 1fr); padding: 15px; }
  .pcmrma-target-card__policies { grid-template-columns: 1fr; }
  .pcmrma-target-card__manufacturer,
  .pcmrma-target-card__existing { align-items: flex-start; flex-direction: column; }
  .pcmrma-target-card__manufacturer a,
  .pcmrma-target-card__existing a { margin-left: 0; }
}

/* v0.6.36 - contexto del producto/equipo vinculado al caso */
.pcmrma-case-target-summary {
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid #d4e5eb;
  border-radius: 10px;
  background: #f4fafc;
}
.pcmrma-case-target-summary strong { color: #173b4d; }
.pcmrma-case-target-summary span { color: #607985; font-size: 12px; line-height: 1.45; }
.pcmrma-case-context .pcmrma-badge { margin-left: 6px; vertical-align: middle; }
@media (max-width: 575px) {
  .pcmrma-case-context .pcmrma-badge { display: table; margin: 6px 0 0; }
}


/* v0.6.44 - apertura: selector de producto ancho, legible y preparado para varios articulos */
.pcmrma-page--open .pcmrma-open-workspace {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 22px 0 0;
  gap: 20px;
}

.pcmrma-page--open .pcmrma-open-workspace > .pcmrma-target-selector,
.pcmrma-page--open .pcmrma-open-workspace > .pcmrma-form,
.pcmrma-page--open .pcmrma-open-workspace > .pcmrma-alert {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.pcmrma-page--open .pcmrma-target-selector {
  padding: 22px;
  border-radius: 16px;
}

.pcmrma-page--open .pcmrma-target-selector__head {
  max-width: none;
  margin-bottom: 16px;
}

.pcmrma-page--open .pcmrma-target-selector__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pcmrma-page--open .pcmrma-target-selector__grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.pcmrma-page--open .pcmrma-target-card {
  width: 100%;
  min-width: 0;
  padding: 18px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.pcmrma-page--open .pcmrma-target-card__content strong {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.pcmrma-page--open .pcmrma-target-card__restriction {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid #efd1c9;
  border-radius: 11px;
  background: #fff6f3;
  color: #6d4a41;
  font-size: 13px;
  line-height: 1.45;
}

.pcmrma-page--open .pcmrma-target-card__restriction b {
  color: #8b3f2f;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pcmrma-page--open .pcmrma-target-card__restriction strong {
  color: #173c4b;
}

@media (max-width: 900px) {
  .pcmrma-page--open .pcmrma-target-selector__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pcmrma-page--open .pcmrma-target-selector {
    padding: 16px;
  }
}


/* v0.6.47 - cantidades y unidades afectadas */
.pcmrma-target-card__quantity {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf6fa;
  color: #176f89;
  font-size: 12px;
  font-weight: 800;
}
.pcmrma-target-quantity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 6px 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #cfe2ea;
  border-radius: 14px;
  background: #f4fafc;
}
.pcmrma-target-quantity[hidden] { display: none !important; }
.pcmrma-target-quantity label {
  margin: 0;
  color: #102d3c;
  font-size: 15px;
  font-weight: 800;
}
.pcmrma-target-quantity select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfd4dd;
  border-radius: 10px;
  background: #fff;
}
.pcmrma-target-quantity small {
  grid-column: 1 / -1;
  color: #607783;
  line-height: 1.45;
}
@media (max-width: 600px) {
  .pcmrma-target-quantity { grid-template-columns: 1fr; }
  .pcmrma-target-quantity small { grid-column: auto; }
}

/* v0.6.53 - soporte oficial de fabricante */
.pcmrma-target-card__manufacturer.is-prioritized {
  border: 1px solid #9fd4e2;
  background: #e8f7fb;
  box-shadow: 0 8px 18px rgba(20, 105, 132, .08);
}
.pcmrma-alert--manufacturer-priority {
  border-color: #9fd4e2;
  background: #eef9fc;
}

/* v0.6.58 - cantidades disponibles tras reembolsos parciales */
.pcmrma-target-card__quantity.is-refund {
  border: 1px solid #ead69e;
  background: #fff8e8;
  color: #765a1f;
}

.pcmrma-page--open .pcmrma-target-card__restriction.is-partial {
  border-color: #ead69e;
  background: #fffaf0;
  color: #69562d;
}

.pcmrma-page--open .pcmrma-target-card__restriction.is-partial b {
  color: #7c5b18;
}

/* v0.6.60 - devolución del producto al cliente */
.pcmrma-logistics-summary--outbound {
  border-color: #a9d8e5;
  background: linear-gradient(135deg, #f1fafc 0%, #eaf7fa 100%);
}
.pcmrma-logistics-summary--outbound .pcmrma-logistics-summary__icon {
  display: grid;
  place-items: center;
  background-color: #dff3f7;
  background-image: none;
}
.pcmrma-logistics-summary--outbound strong { color: #155d70; }
.pcmrma-logistics-summary--outbound p { color: #4f7380; }
.pcmrma-logistics-summary--outbound .pcmrma-logistics-summary__status {
  border-color: #afd7e1;
  color: #236b7d;
}
.pcmrma-logistics-summary--outbound .pcmrma-logistics-summary__icon::before {
  content: "\2192";
  color: #168aa6;
  font-size: 22px;
  font-weight: 900;
}
.pcmrma-logistics-summary--shipped .pcmrma-logistics-summary__icon::before { content: "\2708"; }
.pcmrma-logistics-summary--delivered {
  border-color: #abd7c2;
  background: linear-gradient(135deg, #f0faf5 0%, #e8f7ef 100%);
}
.pcmrma-logistics-summary--delivered .pcmrma-logistics-summary__icon { background-color: #dff2e7; }
.pcmrma-logistics-summary--delivered strong { color: #236746; }
.pcmrma-logistics-summary--delivered p { color: #527565; }
.pcmrma-logistics-summary--delivered .pcmrma-logistics-summary__status { border-color: #afd7c1; color: #2c7150; }
.pcmrma-logistics-summary--delivered .pcmrma-logistics-summary__icon::before { content: "\2713"; color: #2c815b; }

.pcmrma-outbound-card {
  overflow: hidden;
  border: 1px solid #c9dfe6;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 68, 84, .06);
}
.pcmrma-outbound-card__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 17px;
  border-bottom: 1px solid #dce9ee;
  background: linear-gradient(135deg, #f5fafc 0%, #eef7f9 100%);
}
.pcmrma-outbound-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #def2f7;
}
.pcmrma-outbound-card__icon::before {
  content: "\2192";
  color: #168aa6;
  font-size: 24px;
  font-weight: 900;
}
.pcmrma-outbound-card--shipped .pcmrma-outbound-card__icon::before { content: "\2708"; }
.pcmrma-outbound-card__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #168aa6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pcmrma-outbound-card__head h3,
.pcmrma-outbound-card__head p { margin: 0; }
.pcmrma-outbound-card__head h3 { color: #102f3d; font-size: 19px; line-height: 1.2; }
.pcmrma-outbound-card__head p { margin-top: 3px; color: #607783; font-size: 13px; }

.pcmrma-outbound-card__progress {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 16px 15px 12px;
  list-style: none;
}
.pcmrma-outbound-card__progress li {
  position: relative;
  display: grid;
  flex: 1 1 0;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  color: #8799a2;
  font-size: 9px;
  text-align: center;
}
.pcmrma-outbound-card__progress li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: #dbe7eb;
}
.pcmrma-outbound-card__progress li:last-child::after { display: none; }
.pcmrma-outbound-card__progress li > span {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 2px solid #cad9df;
  border-radius: 50%;
  background: #fff;
}
.pcmrma-outbound-card__progress li.is-complete > span,
.pcmrma-outbound-card__progress li.is-current > span {
  border-color: #1791ad;
  background: #1791ad;
}
.pcmrma-outbound-card__progress li.is-complete > span::before,
.pcmrma-outbound-card__progress li.is-current > span::before {
  content: "\2713";
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.pcmrma-outbound-card__progress li.is-complete::after { background: #7ac2d2; }
.pcmrma-outbound-card__progress li.is-complete,
.pcmrma-outbound-card__progress li.is-current { color: #1a5668; }
.pcmrma-outbound-card__progress li.is-current strong { font-weight: 900; }

.pcmrma-outbound-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 6px 16px 0;
}
.pcmrma-outbound-card__facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dce8ed;
  border-radius: 10px;
  background: #f9fbfc;
}
.pcmrma-outbound-card__facts span {
  color: #6b808a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pcmrma-outbound-card__facts strong {
  display: block;
  color: #163644;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.pcmrma-outbound-card__note {
  margin: 13px 16px 0;
  padding: 12px 13px;
  border-left: 3px solid #329ab4;
  border-radius: 8px;
  background: #f3f9fb;
  color: #294653;
  font-size: 12px;
  line-height: 1.5;
}
.pcmrma-outbound-card__tracking {
  display: flex;
  justify-content: center;
  width: calc(100% - 32px);
  margin: 13px 16px 16px;
}
.pcmrma-outbound-card--delivered .pcmrma-outbound-card__head { background: linear-gradient(135deg, #f0faf5 0%, #e9f7ef 100%); }
.pcmrma-outbound-card--delivered .pcmrma-outbound-card__icon { background: #dff2e7; }
.pcmrma-outbound-card--delivered .pcmrma-outbound-card__icon::before { content: "\2713"; color: #2c815b; }
.pcmrma-outbound-card--delivered .pcmrma-outbound-card__progress li.is-current > span { border-color: #2c815b; background: #2c815b; }
@media (max-width: 600px) {
  .pcmrma-outbound-card__facts { grid-template-columns: 1fr; }
  .pcmrma-outbound-card__progress { padding-inline: 8px; }
  .pcmrma-outbound-card__progress li { font-size: 8px; }
}

/* v0.6.61 - mantenimiento opcional e indicador de incidencia en pedidos */
.pcmrma-maintenance-offer { border-top: 3px solid #d6903a !important; }
.pcmrma-maintenance-offer.is-accepted { border-top-color: #2b9a70 !important; }
.pcmrma-maintenance-offer__head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.pcmrma-maintenance-offer__head > div > span { color: #b06d1d; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pcmrma-maintenance-offer__head h3 { margin: 2px 0 0; }
.pcmrma-maintenance-offer__head > strong { padding: 7px 10px; border-radius: 999px; background: #edf8f3; color: #277355; white-space: nowrap; }
.pcmrma-maintenance-offer__icon { width: 42px; height: 42px; border-radius: 12px; background-color: #fff4e5; background-position: center; background-repeat: no-repeat; background-size: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b06d1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5-5l2.1 2.1-3.4 3.4-2.1-2.1a4 4 0 0 0 5 5L19 17.4 17.4 19l-7.7-7.7'/%3E%3C/svg%3E"); }
.pcmrma-maintenance-offer__items { display: grid; gap: 9px; margin: 14px 0; }
.pcmrma-maintenance-option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; margin: 0; padding: 13px; border: 1px solid #e3e8eb; border-radius: 10px; background: #fff; cursor: pointer; }
.pcmrma-maintenance-option:hover { border-color: #d6a05c; background: #fffaf4; }
.pcmrma-maintenance-option > span { display: grid; gap: 3px; }
.pcmrma-maintenance-option small { color: #6d818b; font-weight: 400; line-height: 1.45; }
.pcmrma-maintenance-option b { color: #83551c; white-space: nowrap; }
.pcmrma-maintenance-offer__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.pcmrma-maintenance-offer__summary { display: grid; gap: 7px; }
.pcmrma-maintenance-offer__summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #f2f8f5; }
.pcmrma-maintenance-offer__summary strong { color: #277355; white-space: nowrap; }
.pcmrma-maintenance-offer__note { margin: 13px 0 0; padding: 10px 12px; border-radius: 8px; background: #f6f8f9; color: #617680; font-size: 12px; }

.pcmrma-order-front-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0; padding: 13px 15px; border: 1px solid #d6e4e9; border-left: 4px solid #8297a0; border-radius: 9px; background: #f8fbfc; }
.pcmrma-order-front-link.is-open { border-left-color: #d6903a; background: #fffaf3; }
.pcmrma-order-front-link.is-history-card { width: 100%; margin: 0; padding: 9px 12px; box-sizing: border-box; }
.pcmrma-order-front-link.is-history-card > div { min-width: 0; text-align: left; }
.pcmrma-order-front-link.is-history-card strong { line-height: 1.2; }
.pcmrma-order-front-link.is-history-card span { overflow-wrap: anywhere; }
.pcmrma-order-front-link.is-history-card a { padding: 7px 11px; }
.pcmrma-order-front-link > div { display: grid; gap: 2px; }
.pcmrma-order-front-link span { color: #6d818b; font-size: 11px; }
.pcmrma-order-front-link a { padding: 8px 12px; border-radius: 7px; background: #173e4d; color: #fff !important; font-weight: 750; text-decoration: none !important; white-space: nowrap; }
@media (max-width: 600px) {
  .pcmrma-maintenance-offer__head { grid-template-columns: 42px minmax(0, 1fr); }
  .pcmrma-maintenance-offer__head > strong { grid-column: 1 / -1; width: max-content; }
  .pcmrma-maintenance-option { grid-template-columns: 20px minmax(0, 1fr); }
  .pcmrma-maintenance-option > b { grid-column: 2; }
  .pcmrma-order-front-link { align-items: stretch; flex-direction: column; }
  .pcmrma-order-front-link a { text-align: center; }
}

/* v0.6.62 - ampliaciones de plazo visibles y aplicadas a reapertura */
.pcmrma-order__deadlines small {
  display: block;
  margin-top: 4px;
  color: #2d795d;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}
.pcmrma-deadline-extension {
  display: block;
  margin: 0;
  padding: 16px;
  border: 1px solid #b9ddcd;
  border-top: 3px solid #2b9a70;
  border-radius: 12px;
  background: #f3fbf7;
}
.pcmrma-deadline-extension__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.pcmrma-deadline-extension__icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background-color: #dff3e9;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 21px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232b815f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3Cpath d='M19 5v4h-4'/%3E%3C/svg%3E");
}
.pcmrma-deadline-extension__head > div > span {
  color: #28775a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.pcmrma-deadline-extension__head h3 {
  margin: 2px 0 0;
  font-size: 16px;
}
.pcmrma-deadline-extension > p {
  margin: 0 0 10px;
  color: #58736a;
  font-size: 11px;
  line-height: 1.45;
}
.pcmrma-deadline-extension__dates {
  display: grid;
  gap: 7px;
}
.pcmrma-deadline-extension__dates > div {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #c9e4d7;
  border-radius: 8px;
  background: #fff;
}
.pcmrma-deadline-extension__dates span {
  color: #28775a;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pcmrma-deadline-extension__dates strong {
  color: #173e31;
  font-size: 12px;
}
.pcmrma-deadline-extension__dates small {
  color: #6b8178;
  font-size: 9px;
}
.pcmrma-deadline-extension__dates > div.is-expired {
  border-color: #e3c9a4;
  background: #fffaf2;
}
.pcmrma-deadline-extension__dates > div.is-expired span,
.pcmrma-deadline-extension__dates > div.is-expired strong {
  color: #8a5a1d;
}

/* v0.6.66 - navegacion rapida y resaltado de secciones en el detalle del caso */
.pcmrma-page--case .pcmrma-case-nav {
  position: sticky;
  top: 10px;
  z-index: 18;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 16px 0 20px;
  padding: 10px 12px;
  border: 1px solid #d8e6eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(8, 40, 57, .085);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pcmrma-case-nav__intro {
  min-width: 0;
  padding: 1px 4px 1px 2px;
  display: grid;
  gap: 2px;
}

.pcmrma-case-nav__eyebrow {
  color: #168ba4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pcmrma-case-nav__intro > strong {
  color: #0c2d3b;
  font-size: 13px;
  line-height: 1.2;
}

.pcmrma-case-nav__intro > small {
  color: #71858e;
  font-size: 9px;
  line-height: 1.35;
}

.pcmrma-case-nav__items {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 3px;
  scrollbar-width: thin;
  scrollbar-color: #bdd0d7 transparent;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.pcmrma-case-nav__items::-webkit-scrollbar { height: 5px; }
.pcmrma-case-nav__items::-webkit-scrollbar-track { background: transparent; }
.pcmrma-case-nav__items::-webkit-scrollbar-thumb { border-radius: 999px; background: #bdd0d7; }

.pcmrma-case-nav__item {
  position: relative;
  flex: 1 0 124px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 20px 7px 7px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f6f9fa;
  color: #173b49 !important;
  text-decoration: none !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pcmrma-case-nav__item::after {
  content: "\2193";
  position: absolute;
  top: 50%;
  right: 7px;
  color: #91a5ad;
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
  transition: color .18s ease, transform .18s ease;
}

.pcmrma-case-nav__item:hover,
.pcmrma-case-nav__item:focus-visible {
  border-color: #abd6e0;
  background: #edf8fa;
  box-shadow: 0 6px 16px rgba(20, 132, 157, .1);
  transform: translateY(-1px);
}

.pcmrma-case-nav__item:hover::after,
.pcmrma-case-nav__item:focus-visible::after {
  color: #168ba4;
  transform: translateY(-35%);
}

.pcmrma-case-nav__item.is-active {
  border-color: #58b7ca;
  background: linear-gradient(135deg, #e9f8fb 0%, #f4fbfc 100%);
  box-shadow: inset 0 0 0 1px rgba(30, 151, 176, .08), 0 6px 16px rgba(20, 132, 157, .1);
}

.pcmrma-case-nav__item.is-active::after { color: #168ba4; }

.pcmrma-case-nav__item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.pcmrma-case-nav__item strong,
.pcmrma-case-nav__item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcmrma-case-nav__item strong {
  color: #153744;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.pcmrma-case-nav__item small {
  color: #71858e;
  font-size: 8.5px;
  line-height: 1.3;
}

.pcmrma-case-nav__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background-color: #e5f4f7;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.pcmrma-case-nav__icon--conversation { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231687a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E"); }
.pcmrma-case-nav__icon--product { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231687a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='m4.3 7.7 7.7 4.4 7.7-4.4M12 12v9'/%3E%3C/svg%3E"); }
.pcmrma-case-nav__icon--deadline { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231687a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2M17 3v4h4'/%3E%3C/svg%3E"); }
.pcmrma-case-nav__icon--quote { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231687a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M15 3v4h4M9 12h6M9 16h6M9 8h2'/%3E%3C/svg%3E"); }
.pcmrma-case-nav__icon--maintenance { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231687a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5-5l2.1 2.1-3.4 3.4-2.1-2.1a4 4 0 0 0 5 5L19 17.4 17.4 19l-7.7-7.7'/%3E%3C/svg%3E"); }
.pcmrma-case-nav__icon--logistics { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231687a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v11H3zM14 10h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
.pcmrma-case-nav__icon--report { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231687a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6l1 2h3v15H5V6h3z'/%3E%3Cpath d='m9 14 2 2 4-5M9 9h6'/%3E%3C/svg%3E"); }
.pcmrma-case-nav__icon--reopen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231687a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v6h6'/%3E%3Cpath d='M5.5 15a8 8 0 1 0 .5-7l-2 2'/%3E%3C/svg%3E"); }

.pcmrma-case-nav__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pcmrma-case-section-target {
  scroll-margin-top: 112px;
  outline: none;
}

.pcmrma-page--case .pcmrma-case-sidebar .pcmrma-case-section-target,
.pcmrma-page--case #pcmrma-logistics-sidebar {
  scroll-margin-top: 16px;
}

.pcmrma-case-section-target.is-pcmrma-section-focus,
#pcmrma-logistics-sidebar.is-pcmrma-section-focus {
  position: relative;
  z-index: 7;
  animation: pcmrma-section-focus-pulse 2.8s ease-out;
}

@keyframes pcmrma-section-focus-pulse {
  0% {
    outline: 2px solid rgba(20, 151, 178, .85);
    outline-offset: 2px;
    box-shadow: 0 0 0 0 rgba(20, 151, 178, .25), 0 14px 34px rgba(8, 40, 57, .08);
  }
  32% {
    outline: 2px solid rgba(20, 151, 178, .72);
    outline-offset: 4px;
    box-shadow: 0 0 0 8px rgba(20, 151, 178, .12), 0 18px 38px rgba(8, 40, 57, .12);
  }
  100% {
    outline: 2px solid rgba(20, 151, 178, 0);
    outline-offset: 7px;
    box-shadow: 0 0 0 13px rgba(20, 151, 178, 0), 0 10px 28px rgba(8, 40, 57, .055);
  }
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .pcmrma-page--case .pcmrma-case-nav {
    position: relative !important;
    top: auto !important;
    z-index: 4;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 14px 0 18px !important;
    padding: 11px !important;
  }

  .pcmrma-case-nav__intro {
    padding: 0 2px;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 8px;
  }

  .pcmrma-case-nav__intro > strong { font-size: 12px; }
  .pcmrma-case-nav__intro > small { grid-column: 1 / -1; }
  .pcmrma-case-nav__items { padding-bottom: 6px; }
  .pcmrma-case-nav__item { flex: 0 0 148px; }
  .pcmrma-case-section-target { scroll-margin-top: 18px; }
}

@media (max-width: 520px) {
  .pcmrma-page--case .pcmrma-case-nav {
    border-radius: 12px;
  }
  .pcmrma-case-nav__item {
    flex-basis: 142px;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcmrma-case-nav__item { transition: none; }
  .pcmrma-case-section-target.is-pcmrma-section-focus,
  #pcmrma-logistics-sidebar.is-pcmrma-section-focus { animation-duration: .01ms; }
}

/* Ajuste final: tipografia uniforme en accesos rapidos del caso */
.pcmrma-page--case .pcmrma-case-nav,
.pcmrma-page--case .pcmrma-case-nav * {
  font-family: inherit;
}

.pcmrma-case-nav__eyebrow,
.pcmrma-case-nav__intro > strong,
.pcmrma-case-nav__intro > small,
.pcmrma-case-nav__item strong,
.pcmrma-case-nav__item small {
  font-size: 11px;
  line-height: 1.3;
}

.pcmrma-case-nav__eyebrow {
  font-weight: 800;
  letter-spacing: .07em;
}

.pcmrma-case-nav__intro > strong,
.pcmrma-case-nav__item strong {
  font-weight: 700;
}

.pcmrma-case-nav__intro > small,
.pcmrma-case-nav__item small {
  font-weight: 500;
}

.pcmrma-case-nav__item::after {
  font-size: 11px;
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .pcmrma-case-nav__intro > strong,
  .pcmrma-case-nav__intro > small,
  .pcmrma-case-nav__item strong,
  .pcmrma-case-nav__item small {
    font-size: 11px;
  }
}

/* ========================================================================
   Pedidos recientes - refinamiento visual final.
   Mantiene toda la información y reduce el ruido de cajas interiores.
   ======================================================================== */
.pcmrma-page--orders .pcmrma-order {
  border-color: #dbe7eb;
  background: #fff;
  box-shadow: 0 9px 24px rgba(7, 31, 45, .05);
}

.pcmrma-page--orders .pcmrma-order:hover {
  border-color: #acd3dc;
  box-shadow: 0 15px 32px rgba(7, 31, 45, .085);
}

.pcmrma-page--orders .pcmrma-order__main {
  padding: 18px 16px 16px 22px;
}

.pcmrma-page--orders .pcmrma-order__main strong {
  font-size: 18px;
  letter-spacing: -.015em;
}

.pcmrma-page--orders .pcmrma-order__state {
  color: #526c77;
  font-size: 11.5px;
  font-weight: 650;
}

.pcmrma-page--orders .pcmrma-order > .pcmrma-order__tags {
  min-height: 77px;
  padding: 16px 18px 14px 8px;
  gap: 5px;
}

.pcmrma-page--orders .pcmrma-order > .pcmrma-order__tags .pcmrma-badge {
  padding: 4px 9px;
  font-size: 10px;
  line-height: 1.15;
  box-shadow: none;
}

/* Una sola superficie para producto y fechas, con separadores internos. */
.pcmrma-page--orders .pcmrma-order__meta {
  margin: 15px 20px 0 22px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e0eaee;
  border-radius: 12px;
  background: #fbfdfe;
}

.pcmrma-page--orders .pcmrma-order__meta > div {
  min-height: 74px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pcmrma-page--orders .pcmrma-order__meta > div + div {
  border-left: 1px solid #e4ecef;
}

.pcmrma-page--orders .pcmrma-order__meta span,
.pcmrma-page--orders .pcmrma-order__deadlines span {
  margin-bottom: 4px;
  color: #758a94;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .065em;
}

.pcmrma-page--orders .pcmrma-order__meta strong,
.pcmrma-page--orders .pcmrma-order__deadlines strong {
  color: #173744;
  font-size: 12px;
  line-height: 1.38;
}

.pcmrma-page--orders .pcmrma-order__product strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pcmrma-page--orders .pcmrma-order__product small {
  max-width: 100%;
  margin-top: 4px;
  color: #6d838e;
}

.pcmrma-page--orders .pcmrma-order__product em {
  margin-top: 7px;
  padding: 3px 8px;
  background: #eaf7fa;
  color: #08768d;
}

/* Plazos visibles, pero con menos peso que el contenido principal. */
.pcmrma-page--orders .pcmrma-order__deadlines {
  margin: 9px 20px 0 22px;
  padding: 0;
  gap: 8px;
}

.pcmrma-page--orders .pcmrma-order__deadlines > div {
  min-height: 58px;
  padding: 10px 13px;
  border-width: 1px;
  border-radius: 10px;
  box-shadow: none;
}

/* Aviso contextual más corto y legible. */
.pcmrma-page--orders .pcmrma-order__condition {
  min-height: 0;
  margin: 12px 20px 0 22px;
  padding: 11px 14px;
  gap: 3px;
  border-left-width: 3px;
  border-radius: 9px;
  font-size: 11.5px;
}

.pcmrma-page--orders .pcmrma-order__condition strong {
  font-size: 11.5px;
  line-height: 1.35;
}

.pcmrma-page--orders .pcmrma-order__condition span {
  color: inherit;
  line-height: 1.45;
}

.pcmrma-page--orders .pcmrma-order__actions {
  min-height: 58px;
  margin-top: 14px;
  padding: 11px 20px 12px 22px;
  background: #fcfdfe;
}

.pcmrma-page--orders .pcmrma-order__actions .pcmrma-btn {
  min-height: 38px;
  padding: 9px 15px;
}

@media (max-width: 640px) {
  .pcmrma-page--orders .pcmrma-order__meta {
    margin-left: 18px;
    margin-right: 18px;
  }

  .pcmrma-page--orders .pcmrma-order__meta > div + div {
    border-left: 0;
    border-top: 1px solid #e4ecef;
  }

  .pcmrma-page--orders .pcmrma-order__deadlines,
  .pcmrma-page--orders .pcmrma-order__condition {
    margin-left: 18px;
    margin-right: 18px;
  }

  .pcmrma-page--orders .pcmrma-order__product strong {
    -webkit-line-clamp: 3;
  }
}

/* ========================================================================
   Pedidos recientes - rediseño visual premium.
   Estructura más limpia: cabecera, producto, fechas, contexto y acción.
   ======================================================================== */
.pcmrma-page--orders .pcmrma-order--refined {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e6ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 31, 45, .055);
  transform: none;
}

.pcmrma-page--orders .pcmrma-order--refined::before {
  width: 4px;
  background: linear-gradient(180deg, #18abc3 0%, #137ce3 100%);
}

.pcmrma-page--orders .pcmrma-order--refined:hover {
  transform: translateY(-2px);
  border-color: #add3dc;
  box-shadow: 0 17px 38px rgba(7, 31, 45, .09);
}

.pcmrma-page--orders .pcmrma-order__header {
  min-height: 78px;
  padding: 17px 18px 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e6eef1;
  background: linear-gradient(180deg, #fff 0%, #fcfeff 100%);
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__main {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  border: 0;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__label {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf8fb;
  color: transparent;
  font-size: 0;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__label::before {
  content: '';
  width: 21px;
  height: 21px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8fa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4-9 4z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__main strong {
  grid-column: 2;
  grid-row: 1;
  color: #092f40;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__state {
  grid-column: 2;
  grid-row: 2;
  color: #59717b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__tags {
  max-width: 56%;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  border: 0;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__tags .pcmrma-badge {
  padding: 4px 9px;
  font-size: 9.5px;
  line-height: 1.15;
  box-shadow: none;
}

.pcmrma-page--orders .pcmrma-order__content {
  flex: 1 1 auto;
  padding: 18px 20px 0 24px;
  display: flex;
  flex-direction: column;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__product {
  min-width: 0;
  padding: 0 0 15px;
  border-bottom: 1px solid #edf2f4;
}

.pcmrma-page--orders .pcmrma-order__eyebrow,
.pcmrma-page--orders .pcmrma-order__date-item span {
  display: block;
  margin-bottom: 4px;
  color: #7a9099;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__product > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #133744;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pcmrma-page--orders .pcmrma-order__product-meta {
  min-height: 22px;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pcmrma-page--orders .pcmrma-order__product-meta small {
  color: #6d838c;
  font-size: 10px;
  line-height: 1.35;
}

.pcmrma-page--orders .pcmrma-order__product-meta em {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf7fa;
  color: #08758b;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.2;
}

.pcmrma-page--orders .pcmrma-order__dates {
  padding: 13px 0 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #edf2f4;
}

.pcmrma-page--orders .pcmrma-order__date-item {
  min-width: 0;
  padding-right: 16px;
}

.pcmrma-page--orders .pcmrma-order__date-item + .pcmrma-order__date-item {
  padding-left: 16px;
  padding-right: 0;
  border-left: 1px solid #e5edef;
}

.pcmrma-page--orders .pcmrma-order__date-item strong {
  display: block;
  color: #173b48;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines > div {
  min-width: 0;
  min-height: 0;
  padding: 9px 11px;
  border: 1px solid #dce8eb;
  border-radius: 10px;
  background: #f8fbfc;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines > div:first-child {
  border-color: #ead8b5;
  background: #fffaf1;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines > div:last-child {
  border-color: #c5e2d3;
  background: #f2faf6;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines span {
  margin-bottom: 3px;
  font-size: 8.5px;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines strong {
  font-size: 11px;
  line-height: 1.35;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines small {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.3;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition {
  min-height: 0;
  margin: 13px 0 0;
  padding: 10px 12px 10px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 1px;
  border: 0;
  border-left: 3px solid #21a1ba;
  border-radius: 8px;
  background: #f1f8fa;
  color: #486873;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition::before {
  content: 'i';
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d8f0f5;
  color: #087b92;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition--warning {
  border-left-color: #d4941f;
  background: #fff8eb;
  color: #755820;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition--warning::before {
  content: '!';
  background: #f8e5ba;
  color: #9b6600;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition strong {
  grid-column: 2;
  color: #173945;
  font-size: 11px;
  line-height: 1.35;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition span {
  grid-column: 2;
  color: inherit;
  font-size: 10.5px;
  line-height: 1.45;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__actions {
  min-height: 60px;
  margin-top: 16px;
  padding: 11px 20px 12px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #e7eef1;
  background: #fbfdfe;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__actions .pcmrma-btn {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 9px;
}

@media (max-width: 980px) {
  .pcmrma-page--orders .pcmrma-order__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__tags {
    max-width: none;
    justify-content: flex-start;
    padding-left: 56px;
  }
}

@media (max-width: 640px) {
  .pcmrma-page--orders .pcmrma-order--refined {
    min-height: 0;
  }

  .pcmrma-page--orders .pcmrma-order__header {
    padding: 16px 16px 14px 20px;
  }

  .pcmrma-page--orders .pcmrma-order__content {
    padding: 16px 17px 0 20px;
  }

  .pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__product > strong {
    -webkit-line-clamp: 3;
  }

  .pcmrma-page--orders .pcmrma-order__dates,
  .pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines {
    grid-template-columns: 1fr;
  }

  .pcmrma-page--orders .pcmrma-order__date-item + .pcmrma-order__date-item {
    margin-top: 10px;
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid #e5edef;
    border-left: 0;
  }

  .pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines > div + div {
    margin-top: 0;
  }

  .pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__actions {
    padding: 12px 17px 14px 20px;
  }

  .pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__actions .pcmrma-btn {
    width: 100%;
    text-align: center;
  }
}

/* PCM RMA - Ajuste final de tipografia en tarjetas de pedidos recientes */
.pcmrma-page--orders .pcmrma-order--refined,
.pcmrma-page--orders .pcmrma-order--refined * {
  font-family: inherit;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__main strong {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__state {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__tags .pcmrma-badge {
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.2;
}

.pcmrma-page--orders .pcmrma-order__eyebrow,
.pcmrma-page--orders .pcmrma-order__date-item span,
.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines span {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.3;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__product > strong {
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.42;
}

.pcmrma-page--orders .pcmrma-order__product-meta small,
.pcmrma-page--orders .pcmrma-order__product-meta em {
  font-size: 11px;
  line-height: 1.4;
}

.pcmrma-page--orders .pcmrma-order__date-item strong,
.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines strong {
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.4;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__deadlines small {
  font-size: 10.5px;
  line-height: 1.4;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition strong {
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.4;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition span {
  font-size: 12px;
  line-height: 1.5;
}

.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__actions,
.pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__actions .pcmrma-btn,
.pcmrma-page--orders .pcmrma-order--refined .pcmrma-muted {
  font-size: 12.5px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__main strong {
    font-size: 17px;
  }

  .pcmrma-page--orders .pcmrma-order--refined .pcmrma-order__condition span {
    font-size: 12px;
  }
}

/* ========================================================================
   FRONT - recogida programada y estados de preparacion mas claros.
   ======================================================================== */
.pcmrma-logistics-appointment {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #cfe1e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(13, 47, 61, .055);
}

.pcmrma-logistics-appointment__head {
  padding: 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #dce9ed;
  background: linear-gradient(135deg, #f5fbfc 0%, #edf8fa 100%);
}

.pcmrma-logistics-appointment__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #dff4f8 center / 19px 19px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v10H3z'/%3E%3Cpath d='M14 10h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}

.pcmrma-logistics-appointment__head small,
.pcmrma-logistics-appointment__head strong {
  display: block;
}

.pcmrma-logistics-appointment__head small {
  color: #16859b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pcmrma-logistics-appointment__head strong {
  margin-top: 2px;
  color: #123845;
  font-size: 14px;
  line-height: 1.3;
}

.pcmrma-logistics-appointment__badge {
  padding: 6px 9px;
  border: 1px solid #b9decf;
  border-radius: 999px;
  background: #eff9f4;
  color: #257052;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.pcmrma-logistics-appointment__data {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pcmrma-logistics-appointment__data > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e0eaed;
  border-radius: 10px;
  background: #fbfdfe;
}

.pcmrma-logistics-appointment__data span,
.pcmrma-logistics-appointment__data strong {
  display: block;
}

.pcmrma-logistics-appointment__data span {
  color: #6e8791;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pcmrma-logistics-appointment__data strong {
  margin-top: 4px;
  color: #173b47;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pcmrma-logistics-appointment__tracking {
  font-family: inherit;
}

.pcmrma-logistics-appointment__actions {
  padding: 0 14px 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pcmrma-logistics-appointment__action {
  min-height: 38px;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0c839a;
  border-radius: 9px;
  background: #0b8299;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.pcmrma-logistics-appointment__action:hover,
.pcmrma-logistics-appointment__action:focus {
  background: #086f84;
  color: #fff;
  text-decoration: none;
}

.pcmrma-logistics-appointment__action--secondary {
  border-color: #c4dce2;
  background: #fff;
  color: #176176;
}

.pcmrma-logistics-appointment__action--secondary:hover,
.pcmrma-logistics-appointment__action--secondary:focus {
  border-color: #18869d;
  background: #f0f9fb;
  color: #0b6579;
}

.pcmrma-logistics-appointment__note {
  margin: 0 14px 14px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border-left: 3px solid #1ba0b7;
  border-radius: 9px;
  background: #f3f9fb;
}

.pcmrma-logistics-appointment__note > span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #dff2f6 center / 15px 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307849b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
}

.pcmrma-logistics-appointment__note small {
  display: block;
  color: #1a6073;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pcmrma-logistics-appointment__note p {
  margin: 4px 0 0;
  color: #345762;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .pcmrma-logistics-appointment__head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .pcmrma-logistics-appointment__badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pcmrma-logistics-appointment__data,
  .pcmrma-logistics-appointment__actions {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   Navegacion contextual del area de cliente.
   ======================================================================== */
body#module-pcmrma-support .page-header,
body.module-pcmrma-support .page-header {
  display: none !important;
}

.pcmrma-context-nav {
  margin: 0 0 12px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pcmrma-context-nav__link {
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d6e3e8;
  border-radius: 10px;
  background: #fff;
  color: #17495a !important;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 5px 15px rgba(7, 31, 45, .045);
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.pcmrma-context-nav__link:hover,
.pcmrma-context-nav__link:focus {
  border-color: #9dcbd6;
  background: #f1fafc;
  color: #087d99 !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.pcmrma-context-nav__icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

@media (max-width: 640px) {
  .pcmrma-context-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pcmrma-context-nav__link {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 8px 9px;
    font-size: 12px;
    text-align: center;
  }
}


/* v0.6.65 - asistente tecnico: lectura, tutorial obligatorio y resultado explicito */
.pcmrma-page--open .pcmrma-pc-guide__head p:last-child { font-size: 15px; line-height: 1.55; }
.pcmrma-page--open .pcmrma-pc-guide__required { font-size: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__progress b { font-size: 13px; }
.pcmrma-page--open .pcmrma-pc-guide__progress em { font-size: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__screen-head span,
.pcmrma-page--open .pcmrma-pc-guide__result-head > div > span,
.pcmrma-page--open .pcmrma-pc-guide__question > span { font-size: 12px; }
.pcmrma-page--open .pcmrma-pc-guide__screen-head h4,
.pcmrma-page--open .pcmrma-pc-guide__result-head h4,
.pcmrma-page--open .pcmrma-pc-guide__question h4 { font-size: 22px; line-height: 1.28; }
.pcmrma-page--open .pcmrma-pc-guide__screen-head p,
.pcmrma-page--open .pcmrma-pc-guide__question p { margin: 0; color: #5a7380; font-size: 15px; line-height: 1.55; }
.pcmrma-page--open .pcmrma-pc-guide__choice-copy strong { font-size: 16px; }
.pcmrma-page--open .pcmrma-pc-guide__choice-copy small { font-size: 13px; }
.pcmrma-page--open .pcmrma-pc-guide__back,
.pcmrma-page--open .pcmrma-pc-guide__restart { font-size: 13px; }
.pcmrma-page--open .pcmrma-pc-guide__trail { font-size: 13px; }
.pcmrma-page--open .pcmrma-pc-guide__instruction { padding: 18px; }
.pcmrma-page--open .pcmrma-pc-guide__instruction strong { font-size: 15px; }
.pcmrma-page--open .pcmrma-pc-guide__instruction p { font-size: 15px; line-height: 1.55; }
.pcmrma-page--open .pcmrma-pc-guide__help {
  min-height: 84px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 2px solid #159db5;
  background: linear-gradient(135deg, #f4fcfd 0%, #eaf8fb 100%);
  box-shadow: 0 10px 24px rgba(7, 126, 153, .10);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.pcmrma-page--open .pcmrma-pc-guide__help:hover { transform: translateY(-1px); border-color: #087e98; box-shadow: 0 14px 28px rgba(7, 126, 153, .15); }
.pcmrma-page--open .pcmrma-pc-guide__help > span { width: 44px; height: 44px; background-color: #d9f3f7; background-size: 21px 21px; }
.pcmrma-page--open .pcmrma-pc-guide__help strong { font-size: 17px; }
.pcmrma-page--open .pcmrma-pc-guide__help small { margin-top: 3px; font-size: 13px; line-height: 1.45; }
.pcmrma-page--open .pcmrma-pc-guide__help > b { font-size: 19px; }
.pcmrma-page--open .pcmrma-pc-guide__help.is-opened { border-color: #72c5a5; background: #f1faf6; }
.pcmrma-page--open .pcmrma-pc-guide__help.is-opened > span {
  background-color: #dff4e9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147855' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
}
.pcmrma-page--open .pcmrma-pc-guide__answer { min-height: 56px; padding: 13px 15px; font-size: 15px; }
.pcmrma-page--open .pcmrma-pc-guide__verification { margin-top: 22px; padding-top: 20px; border-top: 1px solid #dce7eb; }
.pcmrma-page--open .pcmrma-pc-guide__verification-lock {
  margin: 14px 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #e5c273;
  border-radius: 12px;
  background: #fff8e9;
}
.pcmrma-page--open .pcmrma-pc-guide__verification-lock > span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f6e2ae center / 19px 19px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23956400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
.pcmrma-page--open .pcmrma-pc-guide__verification-lock strong { display: block; color: #644708; font-size: 15px; }
.pcmrma-page--open .pcmrma-pc-guide__verification-lock p { margin: 2px 0 0; color: #7c6228; font-size: 14px; }
.pcmrma-page--open .pcmrma-pc-guide__outcomes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; margin-top: 15px; }
.pcmrma-page--open .pcmrma-pc-guide__outcome {
  min-height: 94px;
  padding: 15px;
  border: 1px solid #d5e3e8;
  border-radius: 12px;
  background: #fff;
  color: #123542;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.pcmrma-page--open .pcmrma-pc-guide__outcome:hover:not(:disabled) { transform: translateY(-1px); border-color: #7bc8d6; box-shadow: 0 9px 18px rgba(7,31,45,.07); }
.pcmrma-page--open .pcmrma-pc-guide__outcome strong { display: block; font-size: 15px; line-height: 1.35; }
.pcmrma-page--open .pcmrma-pc-guide__outcome small { display: block; margin-top: 5px; color: #687f8a; font-size: 13px; line-height: 1.4; }
.pcmrma-page--open .pcmrma-pc-guide__outcome.is-solved { border-color: #b9dfcf; background: #f3faf7; }
.pcmrma-page--open .pcmrma-pc-guide__outcome.is-pending { border-color: #9fd5df; background: #f4fbfc; }
.pcmrma-page--open .pcmrma-pc-guide__outcome.is-unable { border-color: #ead39f; background: #fffaf0; }
.pcmrma-page--open .pcmrma-pc-guide__outcome:disabled { cursor: not-allowed; opacity: .46; filter: grayscale(.25); }
.pcmrma-page--open .pcmrma-pc-guide__ready,
.pcmrma-page--open .pcmrma-pc-guide__blocked,
.pcmrma-page--open .pcmrma-pc-guide__resolved { padding: 18px; }
.pcmrma-page--open .pcmrma-pc-guide__ready strong,
.pcmrma-page--open .pcmrma-pc-guide__blocked strong,
.pcmrma-page--open .pcmrma-pc-guide__resolved strong { font-size: 15px; }
.pcmrma-page--open .pcmrma-pc-guide__ready p,
.pcmrma-page--open .pcmrma-pc-guide__blocked p,
.pcmrma-page--open .pcmrma-pc-guide__resolved p { font-size: 14px; line-height: 1.5; }
.pcmrma-page--open .pcmrma-pc-guide__ready .pcmrma-btn { font-size: 14px; }
.pcmrma-page--open .pcmrma-pc-guide__resolved {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #a9d9c5;
  border-radius: 12px;
  background: #edf9f4;
}
.pcmrma-page--open .pcmrma-pc-guide__resolved > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #d8f2e6; color: #11734f; font-size: 18px; font-weight: 900; }
.pcmrma-page--open .pcmrma-pc-guide__status strong { font-size: 15px; }
.pcmrma-page--open .pcmrma-pc-guide__status p { font-size: 14px; line-height: 1.5; }
.pcmrma-page--open .pcmrma-pc-guide.is-resolved { border-color: #a9d9c5; }

@media (max-width: 900px) {
  .pcmrma-page--open .pcmrma-pc-guide__outcomes { grid-template-columns: 1fr; }
  .pcmrma-page--open .pcmrma-pc-guide__resolved { grid-template-columns: 40px minmax(0,1fr); }
  .pcmrma-page--open .pcmrma-pc-guide__resolved .pcmrma-btn { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .pcmrma-page--open .pcmrma-pc-guide__screen-head h4,
  .pcmrma-page--open .pcmrma-pc-guide__result-head h4,
  .pcmrma-page--open .pcmrma-pc-guide__question h4 { font-size: 20px; }
  .pcmrma-page--open .pcmrma-pc-guide__progress em { font-size: 11px; }
  .pcmrma-page--open .pcmrma-pc-guide__help { grid-template-columns: 42px minmax(0,1fr) auto; padding: 14px; }
}


/* Persistent, visual-only notice when PCMontajes authorises one PC component. */
.pcmrma-component-scope-front {
  position: relative;
  margin: 0 0 18px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: start;
  overflow: hidden;
  border: 1px solid #a8d7e1;
  border-radius: 16px;
  background: linear-gradient(125deg, #f3fbfd 0%, #fff 66%, #eef9fb 100%);
  box-shadow: 0 12px 30px rgba(7, 31, 45, .065);
}
.pcmrma-component-scope-front::after { content: ''; position: absolute; width: 150px; height: 150px; right: -70px; bottom: -90px; border: 18px solid rgba(22,169,195,.06); border-radius: 50%; pointer-events: none; }
.pcmrma-component-scope-front > * { position: relative; z-index: 1; }
.pcmrma-component-scope-front__icon { width: 54px; height: 54px; border-radius: 14px; background: #d9f2f6 center / 29px 29px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7186' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='14' rx='2'/%3E%3Cpath d='M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3M9 9h6v6H9z'/%3E%3C/svg%3E"); }
.pcmrma-component-scope-front__content { min-width: 0; }
.pcmrma-component-scope-front__eyebrow { display: block; margin-bottom: 4px; color: #087b92; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.pcmrma-component-scope-front h2 { margin: 0 0 6px; font-size: 22px; }
.pcmrma-component-scope-front p { margin: 0; color: #355563; font-size: 14px; }
.pcmrma-component-scope-front__detail { margin-top: 11px; padding: 10px 12px; display: grid; gap: 2px; border-left: 3px solid #16a9c3; border-radius: 7px; background: rgba(255,255,255,.82); }
.pcmrma-component-scope-front__detail span { color: #6a808a; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.pcmrma-component-scope-front__detail strong { color: #183b49; font-size: 13px; font-weight: 700; }
.pcmrma-component-scope-front__content > small { display: block; margin-top: 9px; color: #718690; font-size: 11px; }
.pcmrma-component-scope-front__badge { align-self: start; padding: 5px 10px; border: 1px solid #9bcfd9; border-radius: 999px; background: #fff; color: #08758a; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pcmrma-badge--scope { border-color: #9bcfd9; background: #effafd; color: #08758a; }

@media (max-width: 720px) {
  .pcmrma-component-scope-front { grid-template-columns: 46px minmax(0, 1fr); padding: 17px; }
  .pcmrma-component-scope-front__icon { width: 46px; height: 46px; background-size: 25px 25px; }
  .pcmrma-component-scope-front__badge { grid-column: 2; justify-self: start; }
  .pcmrma-component-scope-front h2 { font-size: 19px; }
}
