/* Bespoke Ley de la Segunda Oportunidad Interactive Cockpit (.lso-cockpit) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.lso-cockpit {
  scroll-margin-top: 96px;
  width: 100%;
  margin: 0;
  padding: clamp(44px, 5vw, 72px) max(24px, calc((100% - 1380px) / 2));
  border-radius: 0;
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
  border-top: 1px solid #d6e2ec;
  border-bottom: 1px solid #d6e2ec;
  box-shadow: none;
}

.lso-cockpit-shell {
  display: grid;
  gap: 28px;
}

.lso-cockpit-header {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d6e2ec;
}

.lso-cockpit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lso-badge-primary,
.lso-badge-secondary {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lso-badge-primary {
  background: #0d2b3e;
  color: #ffffff;
}

.lso-badge-secondary {
  background: #fdf8ee;
  border: 1px solid #e4cfa3;
  color: #6e4e14;
}

.lso-cockpit-header h2 {
  margin: 0;
  color: #0d2b3e;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.lso-cockpit-header > p {
  margin: 0;
  color: #355065;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 65ch;
}

.lso-preset-bar {
  margin-top: 6px;
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.lso-preset-label {
  display: inline-flex;
  align-items: center;
  color: #0d2b3e;
  font-size: 13px;
  font-weight: 700;
  padding-right: 6px;
}

.lso-preset-btn {
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #c2d6e8;
  background: #ffffff;
  color: #0d2b3e;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  transition: all 0.18s ease;
}

.lso-preset-btn:hover {
  border-color: #0d2b3e;
  background: #eef5fb;
}

.lso-preset-btn.is-active {
  background: #0d2b3e;
  border-color: #0d2b3e;
  color: #ffffff;
}

.lso-preset-btn small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f4c75;
}

.lso-preset-btn.is-active small {
  color: #93c5fd;
}

.lso-preset-btn strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.lso-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 28px;
  align-items: start;
}

.lso-controls-card {
  padding: 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d6e2ec;
  display: grid;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(13, 43, 62, 0.04);
}

.lso-control-group {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9f0f6;
}

.lso-control-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lso-control-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lso-control-top label {
  color: #0d2b3e;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.lso-control-tag,
.lso-control-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5fb;
  border: 1px solid #c2d6e8;
  color: #0d2b3e;
  font-size: 11.5px;
  font-weight: 700;
}

.lso-control-pill.is-green {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.lso-controls-card select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #bdd1df;
  background: #f8fafc;
  color: #0d2b3e;
  font-size: 14px;
  font-weight: 600;
}

.lso-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 14px;
}

.lso-slider-row input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: #0d2b3e;
  cursor: pointer;
}

.lso-number-box {
  position: relative;
  display: flex;
  align-items: center;
}

.lso-number-box input {
  width: 100%;
  min-height: 44px;
  padding: 8px 28px 8px 12px;
  border-radius: 8px;
  border: 1px solid #bdd1df;
  background: #f8fafc;
  color: #0d2b3e;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.lso-number-box span {
  position: absolute;
  right: 10px;
  color: #355065;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.lso-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lso-mode-card {
  min-height: 44px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid #d6e2ec;
  background: #f8fafc;
  color: #0d2b3e;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.18s ease;
}

.lso-mode-card.is-selected {
  border-color: #0d2b3e;
  background: #eef5fb;
  box-shadow: inset 0 0 0 1px #0d2b3e;
}

.lso-mode-card strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #0d2b3e;
}

.lso-mode-card span {
  font-size: 13px;
  line-height: 1.45;
  color: #355065;
}

.lso-verdict-card {
  padding: clamp(24px, 2.8vw, 32px);
  border-radius: 12px;
  background: linear-gradient(165deg, #0d2b3e 0%, #091f2e 100%);
  color: #ffffff;
  border: 1px solid #1f4966;
  box-shadow: 0 20px 44px rgba(9, 31, 46, 0.14);
  display: grid;
  gap: 18px;
}

.lso-verdict-top {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.lso-verdict-kicker {
  display: inline-block;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lso-verdict-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 4px;
}

.lso-verdict-amount strong {
  color: #ffffff;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lso-verdict-pct {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #bbf7d0;
  font-size: 12.5px;
  font-weight: 700;
}

.lso-verdict-sub {
  margin: 0;
  color: #c2d6e8;
  font-size: 13.5px;
}

.lso-verdict-sub strong {
  color: #ffffff;
}

.lso-progress-wrap {
  display: grid;
  gap: 8px;
}

.lso-progress-bar {
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.lso-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #4ade80 100%);
}

.lso-progress-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #dceaf6;
  font-size: 12.5px;
}

.lso-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.lso-breakdown-item {
  padding: 12px 0 4px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lso-breakdown-item small {
  color: #93c5fd;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lso-breakdown-item strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.lso-breakdown-item span {
  color: #c2d6e8;
  font-size: 13px;
  line-height: 1.45;
}

.lso-effects-list {
  margin: 0;
  padding: 14px 0 0 20px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  display: grid;
  gap: 6px;
  color: #e4eef7;
  font-size: 13px;
  line-height: 1.45;
}

.lso-effects-list strong {
  color: #ffffff;
}

.lso-verdict-actions {
  display: grid;
  gap: 10px;
}

.lso-cta-whatsapp {
  width: 100%;
  justify-content: center;
  background: #ffffff !important;
  color: #0d2b3e !important;
  border-color: #ffffff !important;
  font-weight: 700 !important;
}

.lso-verdict-secondary-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lso-verdict-secondary-btns .button-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  padding: 10px 12px !important;
  white-space: normal !important;
  text-align: center !important;
  height: auto !important;
}

.lso-legal-footnote {
  margin: 0;
  color: #b8cfe2;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 65ch;
}

.lso-legal-footnote strong {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .lso-cockpit-grid {
    grid-template-columns: 1fr;
  }
  .lso-preset-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lso-preset-bar,
  .lso-slider-row,
  .lso-mode-cards,
  .lso-breakdown-grid,
  .lso-verdict-secondary-btns {
    grid-template-columns: 1fr;
  }
  .lso-cockpit {
    padding-left: 16px;
    padding-right: 16px;
  }
}
