/* =====================================================================
   Siati Cotizador 4x4 · 2026
   Paleta corporativa: azul #212c55 (dominante) · naranja #f18a00 (acento)
   Sin degradados. Todo el CSS vive bajo .s4x4 para no chocar con el tema.
   ===================================================================== */

.s4x4 {
  --navy: #212c55;
  --navy-2: #2b3868;      /* hover / superficies elevadas sobre azul */
  --navy-3: #1a2345;      /* superficie hundida sobre azul */
  --orange: #f18a00;
  --orange-2: #d97c00;
  --orange-tint: #fff3e3;
  --orange-line: #f6d4a6;
  --orange-ink: #8a4b00;
  --white: #ffffff;
  --ink: #1b2240;
  --muted: #5f6889;
  --line: #e3e7f1;
  --line-2: #c9d0e3;
  --tint: #f3f5fa;
  --tint-2: #e9edf6;
  --red: #d23f3f;
  --red-tint: #fdeded;
  --red-on-navy: #ff7b7b;
  --orange-on-navy: #ffb04d;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 24px 60px rgba(33, 44, 85, .16), 0 2px 6px rgba(33, 44, 85, .08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  font-family: var(--font);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 16px;
}

/* ---------- reset local ---------- */
.s4x4 *, .s4x4 *::before, .s4x4 *::after { box-sizing: border-box; }
.s4x4 .s4x4-card :where(h2, h3, h4, p, ul, li, details, summary) { margin: 0; padding: 0; border: 0; background: none; font-size: inherit; line-height: inherit; color: inherit; text-transform: none; letter-spacing: normal; }
.s4x4 .s4x4-card :where(ul) { list-style: none; }
.s4x4 .s4x4-card :where(li)::before, .s4x4 .s4x4-card :where(li)::after { content: none; }
.s4x4 svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.s4x4 .s4x4-card :where(input, button, a, table, td, th) { font: inherit; margin: 0; text-transform: none; letter-spacing: normal; }
.s4x4 .s4x4-card :where(table) { border: 0; }
.s4x4 button { cursor: pointer; }
.s4x4 a { text-decoration: none; }
.s4x4 small, .s4x4 b { font-weight: inherit; }
.s4x4 [hidden] { display: none !important; }
.s4x4.s4x4--oculto[hidden] { display: none !important; }
.s4x4.is-revealed .s4x4-card { animation: s4x4-rise .5s ease-out; }
@keyframes s4x4-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- tarjeta ---------- */
.s4x4 .s4x4-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.s4x4 .s4x4-panel { padding: 38px 36px; min-width: 0; }

/* =====================================================================
   PANEL IZQUIERDO (azul)
   ===================================================================== */
.s4x4 .s4x4-panel--form {
  position: relative;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 26px;
  isolation: isolate;
}

.s4x4 .s4x4-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.s4x4 .s4x4-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  padding-top: 14px;
  position: relative;
}
.s4x4 .s4x4-title::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
}
.s4x4 .s4x4-sub { margin-top: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .72); max-width: 36ch; }

/* ---------- formulario ---------- */
.s4x4 .s4x4-form { display: flex; flex-direction: column; gap: 20px; }

.s4x4 .s4x4-field { display: flex; flex-direction: column; gap: 8px; }
.s4x4 .s4x4-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.s4x4 .s4x4-field-head label { font-size: 13.5px; font-weight: 700; color: var(--white); letter-spacing: .01em; }
.s4x4 .s4x4-limit { font-size: 12px; color: rgba(255, 255, 255, .6); font-weight: 600; white-space: nowrap; }

.s4x4 .s4x4-input {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  border: 2px solid transparent;
  height: 54px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.s4x4 .s4x4-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 138, 0, .28); }
.s4x4 .s4x4-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: none;
  border-radius: 10px;
  -moz-appearance: textfield;
}
.s4x4 .s4x4-input input::placeholder { color: #b4bbd0; font-weight: 600; }
.s4x4 .s4x4-unit {
  flex: none;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.s4x4 .s4x4-input--prefix .s4x4-unit { padding-right: 0; font-size: 20px; color: var(--navy); }
.s4x4 .s4x4-input--prefix input { padding-left: 8px; }

/* medidor (barra de cupo + deslizador) */
.s4x4 .s4x4-meter { position: relative; height: 18px; display: flex; align-items: center; }
.s4x4 .s4x4-meter-track {
  width: 100%; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}
.s4x4 .s4x4-meter-fill {
  height: 100%; width: 0;
  background: var(--white);
  border-radius: 999px;
  transition: width .22s ease, background-color .22s ease;
}
.s4x4 .s4x4-meter-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  background: transparent;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  outline: none;
}
.s4x4 .s4x4-meter-range::-webkit-slider-runnable-track { height: 6px; background: transparent; border: 0; }
.s4x4 .s4x4-meter-range::-moz-range-track { height: 6px; background: transparent; border: 0; }
.s4x4 .s4x4-meter-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -6px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .15s ease;
}
.s4x4 .s4x4-meter-range::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 6px rgba(0, 0, 0, .3);
}
.s4x4 .s4x4-meter-range:active::-webkit-slider-thumb { transform: scale(1.15); }

.s4x4 .s4x4-hint { min-height: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .7); transition: color .15s ease; }
.s4x4 .s4x4-hint:empty { display: none; }

/* estados de campo */
.s4x4 .s4x4-field.is-warn .s4x4-meter-fill { background: var(--orange); }
.s4x4 .s4x4-field.is-warn .s4x4-hint { color: var(--orange-on-navy); font-weight: 600; }
.s4x4 .s4x4-field.is-warn .s4x4-input { border-color: var(--orange); }
.s4x4 .s4x4-field.is-error .s4x4-meter-fill { background: var(--red-on-navy); }
.s4x4 .s4x4-field.is-error .s4x4-hint { color: var(--red-on-navy); font-weight: 600; }
.s4x4 .s4x4-field.is-error .s4x4-input { border-color: var(--red-on-navy); }
.s4x4 .s4x4-field.is-error .s4x4-input:focus-within { box-shadow: 0 0 0 4px rgba(255, 123, 123, .3); }
.s4x4 .s4x4-field.is-ok .s4x4-hint { color: rgba(255, 255, 255, .78); }

/* alerta */
.s4x4 .s4x4-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 12px 12px 14px;
  border-left: 5px solid var(--red);
  animation: s4x4-pop .22s ease-out;
}
.s4x4 .s4x4-alert--warn { border-left-color: var(--orange); }
.s4x4 .s4x4-alert--info { border-left-color: var(--navy); }
.s4x4 .s4x4-alert-icon { display: flex; font-size: 20px; color: var(--red); margin-top: 1px; }
.s4x4 .s4x4-alert--warn .s4x4-alert-icon { color: var(--orange-2); }
.s4x4 .s4x4-alert--info .s4x4-alert-icon { color: var(--navy); }
.s4x4 .s4x4-alert-title { display: block; font-size: 14px; font-weight: 800; color: var(--navy); }
.s4x4 .s4x4-alert-text { font-size: 13px; color: var(--muted); margin-top: 2px; }
.s4x4 .s4x4-alert-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  font-size: 13px; font-weight: 700; color: var(--orange-2);
  border-bottom: 2px solid var(--orange-line);
}
.s4x4 .s4x4-alert-link:hover { color: var(--navy); border-color: var(--navy); }
.s4x4 .s4x4-alert-close {
  border: 0; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; padding: 0 2px; margin-top: -3px;
}
.s4x4 .s4x4-alert-close:hover { color: var(--navy); }
@keyframes s4x4-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* botones */
.s4x4 .s4x4-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s4x4 .s4x4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; flex-shrink: 0;
  border-radius: 6px; border: 0;
  font-size: 15px; font-weight: 700; letter-spacing: .005em;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.s4x4 .s4x4-btn svg { font-size: 18px; }
.s4x4 .s4x4-btn:active { transform: translateY(1px); }
.s4x4 .s4x4-btn--primary { background: var(--orange); color: var(--navy); flex: 1; min-width: 180px; }
.s4x4 .s4x4-btn--primary:hover { background: #ffa12b; box-shadow: 0 10px 24px rgba(241, 138, 0, .35); transform: translateY(-1px); }
.s4x4 .s4x4-btn--primary:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.s4x4 .s4x4-btn--ghost { background: transparent; color: rgba(255, 255, 255, .78); padding: 0 16px; }
.s4x4 .s4x4-btn--ghost:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.s4x4 .s4x4-btn--navy { background: var(--navy); color: var(--white); }
.s4x4 .s4x4-btn--navy:hover { background: var(--navy-2); box-shadow: 0 10px 24px rgba(33, 44, 85, .28); transform: translateY(-1px); }
.s4x4 .s4x4-btn--outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.s4x4 .s4x4-btn--outline:hover { background: var(--tint); transform: translateY(-1px); }

/* =====================================================================
   PANEL DERECHO (blanco)
   ===================================================================== */
.s4x4 .s4x4-panel--result { position: relative; background: var(--white); }

/* ---------- estado vacío ---------- */
.s4x4 .s4x4-empty { display: flex; flex-direction: column; gap: 16px; animation: s4x4-fade .25s ease-out; }
.s4x4 .s4x4-empty-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--navy); font-size: 28px;
}
.s4x4 .s4x4-empty h3 { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.s4x4 .s4x4-rules { display: flex; flex-direction: column; gap: 12px; }
.s4x4 .s4x4-rules li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.5; }
.s4x4 .s4x4-rules li strong { color: var(--navy); font-weight: 700; }
.s4x4 .s4x4-rules svg {
  margin-top: 2px; font-size: 20px; padding: 3px; border-radius: 50%;
  background: var(--tint-2); color: var(--navy);
}
.s4x4 .s4x4-rules-no svg { background: var(--orange-tint); color: var(--orange-2); }
.s4x4 .s4x4-empty-cta {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 6px;
  padding: 14px 16px;
  background: rgba(241, 138, 0, .12);
  border: 1px solid rgba(241, 138, 0, .35);
  border-radius: 6px;
  font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--navy);
}
.s4x4 .s4x4-empty-cta svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--orange-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- resultado ---------- */
.s4x4 .s4x4-result { position: relative; display: flex; flex-direction: column; gap: 18px; animation: s4x4-fade .3s ease-out; }
@keyframes s4x4-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


.s4x4 .s4x4-hero { display: flex; flex-direction: column; gap: 4px; }
.s4x4 .s4x4-hero-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.s4x4 .s4x4-hero-value { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--navy); }
.s4x4 .s4x4-hero-note { font-size: 13px; color: var(--muted); }

.s4x4 .s4x4-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s4x4 .s4x4-tile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  position: relative; overflow: hidden;
}
.s4x4 .s4x4-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); }
.s4x4 .s4x4-tile + .s4x4-tile::before { background: var(--navy); }
.s4x4 .s4x4-tile span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.s4x4 .s4x4-tile strong { font-size: 23px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }

/* recibo */
.s4x4 .s4x4-receipt { background: var(--tint); border-radius: var(--radius-s); padding: 16px 20px 18px; }
.s4x4 .s4x4-group { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); padding: 6px 0 4px; }
.s4x4 .s4x4-group + .s4x4-row { border-top: 0; }
.s4x4 .s4x4-receipt .s4x4-group:not(:first-child) { margin-top: 14px; }
.s4x4 .s4x4-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--line-2);
  font-size: 14.5px;
}
.s4x4 .s4x4-row-label { color: var(--ink); font-weight: 500; }
.s4x4 .s4x4-row-label small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.s4x4 .s4x4-row-val { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s4x4 .s4x4-row--sub { border-top: 2px solid var(--line-2); margin-top: 2px; padding-top: 10px; }
.s4x4 .s4x4-row--sub .s4x4-row-label, .s4x4 .s4x4-row--sub .s4x4-row-val { font-weight: 800; color: var(--navy); }

/* banda total importación */
.s4x4 .s4x4-import {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-s);
  padding: 18px 22px;
  border-left: 6px solid var(--orange);
}
.s4x4 .s4x4-import span { display: block; font-size: 14.5px; font-weight: 700; }
.s4x4 .s4x4-import small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.s4x4 .s4x4-import small b { color: var(--white); font-weight: 700; }
.s4x4 .s4x4-import strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

/* notas */
.s4x4 .s4x4-notes { display: flex; flex-direction: column; gap: 10px; }
.s4x4 .s4x4-note { border: 1px solid var(--line); border-radius: 12px; background: var(--tint); overflow: hidden; }
.s4x4 .s4x4-note summary {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px;
  font-size: 14px; font-weight: 800; color: var(--navy);
  cursor: pointer; list-style: none; user-select: none;
}
.s4x4 .s4x4-note summary::-webkit-details-marker { display: none; }
.s4x4 .s4x4-note summary svg:first-child { font-size: 19px; }
.s4x4 .s4x4-note summary svg:last-child { margin-left: auto; font-size: 18px; color: var(--muted); transition: transform .2s ease; }
.s4x4 .s4x4-note[open] summary svg:last-child { transform: rotate(180deg); }
.s4x4 .s4x4-note p { padding: 0 14px 14px 42px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.s4x4 .s4x4-note--warn { background: var(--orange-tint); border-color: var(--orange-line); }
.s4x4 .s4x4-note--warn summary { color: var(--orange-ink); }
.s4x4 .s4x4-note--warn p { color: #6b4a1f; }

/* CTA */
.s4x4 .s4x4-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s4x4 .s4x4-cta .s4x4-btn { height: 52px; }

/* nota de entrega */
.s4x4 .s4x4-delivery {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2); border-radius: 12px;
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.s4x4 .s4x4-delivery svg { font-size: 20px; color: var(--orange-2); margin-top: 1px; }

/* resultado desactualizado */
.s4x4 .s4x4-stale {
  display: none;
  position: absolute; inset: -8px; z-index: 3;
  align-items: flex-start; justify-content: center;
  padding-top: 120px;
  background: rgba(255, 255, 255, .7);
  border-radius: var(--radius-s);
}
.s4x4 .s4x4-stale span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--white); color: var(--navy);
  border: 2px solid var(--navy);
  font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(33, 44, 85, .2);
}
.s4x4 .s4x4-stale svg { font-size: 18px; color: var(--orange-2); }
.s4x4 .s4x4-result.is-stale .s4x4-stale { display: flex; }
.s4x4 .s4x4-result.is-stale > :not(.s4x4-stale) { opacity: .35; filter: saturate(.4); }

/* tabla de tarifas */
.s4x4 .s4x4-tabla-wrap { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.s4x4 .s4x4-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 4px 0;
  font-size: 14px; font-weight: 700; color: var(--navy);
}
.s4x4 .s4x4-link svg { font-size: 18px; transition: transform .2s ease; color: var(--orange-2); }
.s4x4 .s4x4-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.s4x4 .s4x4-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.s4x4 .s4x4-tabla { width: 100%; margin-top: 12px; border-collapse: separate; border-spacing: 0; font-size: 14px; animation: s4x4-fade .2s ease-out; }
.s4x4 .s4x4-tabla th {
  text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 6px 12px; border: 0; background: transparent;
}
.s4x4 .s4x4-tabla td { padding: 9px 12px; border-top: 1px solid var(--line); color: var(--ink); background: transparent; }
.s4x4 .s4x4-tabla th:last-child, .s4x4 .s4x4-tabla td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.s4x4 .s4x4-tabla td:first-child { border-left: 3px solid transparent; }
.s4x4 .s4x4-tabla tr.is-active td { background: var(--orange-tint); color: var(--navy); font-weight: 800; }
.s4x4 .s4x4-tabla tr.is-active td:first-child { border-left-color: var(--orange); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .s4x4 { margin: 20px auto; padding: 0 12px; }
  .s4x4 .s4x4-card { grid-template-columns: 1fr; border-radius: 18px; }
  .s4x4 .s4x4-panel { padding: 28px 22px; }
  .s4x4 .s4x4-title { font-size: 26px; }
  .s4x4 .s4x4-hero-value { font-size: 44px; }
  .s4x4 .s4x4-cta { grid-template-columns: 1fr; }
  .s4x4 .s4x4-import { flex-direction: column; align-items: flex-start; gap: 8px; }
  .s4x4 .s4x4-import strong { font-size: 26px; }
  .s4x4 .s4x4-import small { font-size: 13px; }
}
@media (max-width: 480px) {
  .s4x4 { padding: 0 8px; }
  .s4x4 .s4x4-panel { padding: 24px 18px; }
  .s4x4 .s4x4-actions { flex-direction: column; align-items: stretch; }
  .s4x4 .s4x4-btn--primary { flex: none; width: 100%; min-width: 0; height: 56px; font-size: 16px; }
  .s4x4 .s4x4-btn--ghost { height: 44px; }
  .s4x4 .s4x4-tiles { grid-template-columns: 1fr; }
  .s4x4 .s4x4-input input { font-size: 20px; }
  .s4x4 .s4x4-hero-value { font-size: 40px; }
  .s4x4 .s4x4-note p { padding-left: 14px; }
  .s4x4 .s4x4-import { padding: 16px 16px 16px 18px; }
  .s4x4 .s4x4-import strong { font-size: 24px; }
}
/* ---------- versión mini (slider / portada) ---------- */
.s4x4.s4x4--mini { max-width: 460px; width: 100%; margin: 0; padding: 0; }
.s4x4 .s4x4-mini {
  display: block;
  padding: 20px 20px 18px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
}
.s4x4 .s4x4-mini .s4x4-eyebrow { margin-bottom: 4px; color: var(--orange-2); }
.s4x4 .s4x4-mini-title { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; color: var(--navy); margin: 0 0 14px; }
.s4x4 .s4x4-mini-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.s4x4 .s4x4-mini-field { display: block; min-width: 0; cursor: text; }
.s4x4 .s4x4-mini-label { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; white-space: nowrap; }
.s4x4 .s4x4-mini-label small { font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #8a93b0; }
.s4x4 .s4x4-mini .s4x4-input { height: 48px; border-radius: 6px; border: 2px solid var(--line-2); background: var(--white); }
.s4x4 .s4x4-mini .s4x4-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 138, 0, .22); }
.s4x4 .s4x4-mini .s4x4-input.is-error { border-color: var(--red); }
.s4x4 .s4x4-mini .s4x4-input input { font-size: 18px; padding: 0 12px; border-radius: 4px; }
.s4x4 .s4x4-mini .s4x4-input .s4x4-unit { padding: 0 12px; font-size: 13px; }
.s4x4 .s4x4-mini .s4x4-input .s4x4-unit + input { padding-left: 0; }
.s4x4 .s4x4-mini .s4x4-btn--primary { height: 48px; min-width: 0; flex: none; padding: 0 20px; }
.s4x4 .s4x4-mini-msg { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--red); }
.s4x4 .s4x4-mini-msg svg { font-size: 16px; margin-top: 1px; }
.s4x4 .s4x4-mini-msg.is-info { color: var(--navy); }
.s4x4 .s4x4-mini-result {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 14px; padding: 14px 16px;
  background: var(--navy); color: var(--white);
  border-radius: 6px;
  animation: s4x4-fade .3s ease-out;
}
.s4x4 .s4x4-mini-result.is-stale { opacity: .45; }
.s4x4 .s4x4-mini-sum { min-width: 0; }
.s4x4 .s4x4-mini-sum .s4x4-mini-label { margin-bottom: 2px; color: var(--orange-on-navy); }
.s4x4 .s4x4-mini-total { display: block; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--white); font-variant-numeric: tabular-nums; }
.s4x4 .s4x4-mini-sum small { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.s4x4 .s4x4-mini-sum small b { color: var(--white); font-weight: 700; }
.s4x4 .s4x4-mini-link {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 40px; padding: 0 14px;
  border: 2px solid var(--white); border-radius: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--white); background: transparent;
  transition: background-color .15s ease, color .15s ease;
}
.s4x4 .s4x4-mini-link:hover { background: var(--white); color: var(--navy); }

/* mini en tema oscuro (sobre fotos claras del slider) */
.s4x4.s4x4--dark .s4x4-mini { background: var(--navy); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.s4x4.s4x4--dark .s4x4-mini .s4x4-eyebrow { color: var(--orange-on-navy); }
.s4x4.s4x4--dark .s4x4-mini-title { color: var(--white); }
.s4x4.s4x4--dark .s4x4-mini-label { color: rgba(255, 255, 255, .7); }
.s4x4.s4x4--dark .s4x4-mini-label small { color: rgba(255, 255, 255, .5); }
.s4x4.s4x4--dark .s4x4-mini .s4x4-input { border-color: transparent; }
.s4x4.s4x4--dark .s4x4-mini-msg { color: var(--red-on-navy); }
.s4x4.s4x4--dark .s4x4-mini-msg.is-info { color: rgba(255, 255, 255, .85); }
.s4x4.s4x4--dark .s4x4-mini-result { background: var(--white); color: var(--navy); }
.s4x4.s4x4--dark .s4x4-mini-sum .s4x4-mini-label { color: var(--orange-2); }
.s4x4.s4x4--dark .s4x4-mini-total { color: var(--navy); }
.s4x4.s4x4--dark .s4x4-mini-sum small { color: var(--muted); }
.s4x4.s4x4--dark .s4x4-mini-sum small b { color: var(--navy); }
.s4x4.s4x4--dark .s4x4-mini-link { border-color: var(--navy); color: var(--navy); background: transparent; }
.s4x4.s4x4--dark .s4x4-mini-link:hover { background: var(--navy); color: var(--white); }

@media (max-width: 480px) {
  .s4x4 .s4x4-mini { padding: 16px 14px 14px; }
  .s4x4 .s4x4-mini-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s4x4 .s4x4-mini .s4x4-btn--primary { grid-column: 1 / -1; width: 100%; height: 50px; }
  .s4x4 .s4x4-mini-result { flex-direction: column; align-items: stretch; }
  .s4x4 .s4x4-mini-link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .s4x4 *, .s4x4 *::before, .s4x4 *::after { transition: none !important; animation: none !important; }
}
