/* Comprar Seguro: four-step input journey V2. Presentation-only.
   Scoped to .buy-journey-v2; Abre Aquí, reports, auth and homepage are unchanged. */
#explore.buy-journey-v2 {
  --bj-ink:#11313b;
  --bj-teal:#086b62;
  --bj-muted:#567076;
  --bj-line:#dce7e4;
  --bj-soft:#f1f7f5;
  --bj-paper:#fff;
  color:var(--bj-ink);
}
#explore.buy-journey-v2 .flow-header {
  padding:27px clamp(24px,4vw,60px) 20px;
  background:#fff;
  border-bottom:1px solid var(--bj-line);
}
#explore.buy-journey-v2 .flow-meta,
#explore.buy-journey-v2 #buy-progress {
  max-width:1096px;
}
#explore.buy-journey-v2 .flow-meta {
  gap:12px;
}
#explore.buy-journey-v2 .route-badge {
  color:#164c51;
  background:#e7f3ef;
  border:1px solid #d2e6df;
  padding:7px 12px;
  font-size:12px;
}
#explore.buy-journey-v2 .draft-status {
  color:var(--bj-muted);
  font-size:11px;
  text-align:right;
}
#explore.buy-journey-v2 #buy-progress {
  gap:10px;
  margin-top:21px;
}
#explore.buy-journey-v2 #buy-progress li {
  min-width:0;
  min-height:60px;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid var(--bj-line);
  border-radius:12px;
  background:#f9fbfa;
  color:#5f757a;
  font-size:12px;
  font-weight:650;
  transition:background .16s ease,border-color .16s ease;
}
#explore.buy-journey-v2 #buy-progress li::after{display:none}
#explore.buy-journey-v2 #buy-progress li b {
  flex:0 0 29px;
  height:29px;
  display:grid;
  place-items:center;
  border:1px solid #cad9d6;
  background:#fff;
  color:#4c6870;
  border-radius:9px;
  font-size:12px;
}
#explore.buy-journey-v2 #buy-progress li span {
  min-width:0;
  display:block;
  line-height:1.25;
  overflow-wrap:anywhere;
}
#explore.buy-journey-v2 #buy-progress li.done {
  color:#205f56;
  border-color:#cfe5dd;
  background:#f0f8f5;
}
#explore.buy-journey-v2 #buy-progress li.done b {
  background:#cbeadf;
  color:#155d4a;
  border-color:#cbeadf;
  font-size:0;
}
#explore.buy-journey-v2 #buy-progress li.done b::after {
  content:"✓";
  font-size:14px;
  font-weight:800;
}
#explore.buy-journey-v2 #buy-progress li.current {
  color:#11313b;
  border-color:#83b9a9;
  background:#e9f5f1;
  font-weight:800;
  box-shadow:0 0 0 1px #9ccdbd inset;
}
#explore.buy-journey-v2 #buy-progress li.current b {
  color:#fff;
  background:#10323a;
  border-color:#10323a;
  font-size:12px;
}
#explore.buy-journey-v2 .flow-step {
  width:100%;
  max-width:1096px;
  padding:39px 0 74px;
}
#explore.buy-journey-v2 .flow-step>.step-label {
  display:block;
  width:fit-content;
  color:var(--bj-teal);
  letter-spacing:.085em;
  font-size:11px;
  font-weight:850;
  margin:0 0 10px;
}
#explore.buy-journey-v2 .flow-step>h1 {
  max-width:820px;
  font-size:clamp(28px,3vw,38px);
  line-height:1.18;
  letter-spacing:-.035em;
  font-weight:800;
  margin:0 0 10px;
  color:var(--bj-ink);
}
#explore.buy-journey-v2 .flow-step>.lead {
  max-width:760px;
  font-size:14px;
  color:var(--bj-muted);
  line-height:1.65;
  margin:0 0 27px;
}
#explore.buy-journey-v2 .flow-step label {
  font-size:13px;
  font-weight:650;
  color:var(--bj-ink);
}
#explore.buy-journey-v2 .flow-step input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#explore.buy-journey-v2 .flow-step select {
  border:1px solid #b7c9c6;
  border-radius:10px;
  min-height:48px;
  font-size:14px;
}
#explore.buy-journey-v2 .flow-step input:focus-visible,
#explore.buy-journey-v2 .flow-step select:focus-visible,
#explore.buy-journey-v2 .flow-step button:focus-visible,
#explore.buy-journey-v2 .flow-step summary:focus-visible {
  outline:3px solid #8bcab6;
  outline-offset:2px;
}
#explore.buy-journey-v2 .flow-step .hint {
  color:var(--bj-muted);
  line-height:1.65;
}
#explore.buy-journey-v2 .flow-actions {
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:30px;
  padding-top:22px;
  border-top:1px solid var(--bj-line);
}
#explore.buy-journey-v2 .flow-actions .button {
  min-height:48px;
  padding:12px 19px;
  border-radius:11px;
  font-weight:750;
  font-size:13px;
}
#explore.buy-journey-v2 .flow-actions .button.primary {
  background:#10323a;
  border-color:#10323a;
  color:#fff;
}
#explore.buy-journey-v2 .flow-actions .button.primary:hover:not(:disabled) {
  background:#23515a;
}
/* Step 1: distinguish editable inputs from the explanatory panel. */
#explore.buy-journey-v2 #step-location .location-layout {
  grid-template-columns:minmax(0,1.65fr) minmax(275px,.85fr);
  gap:19px;
  align-items:start;
}
#explore.buy-journey-v2 #step-location .location-layout>div:first-child {
  min-width:0;
  border:1px solid var(--bj-line);
  border-radius:18px;
  background:#fff;
  padding:24px;
}
#explore.buy-journey-v2 #step-location .understanding {
  min-width:0;
  padding:23px;
  background:#edf5f3;
  border:1px solid #d3e5df;
  border-radius:18px;
}
#explore.buy-journey-v2 #step-location .understanding h2 {
  font-size:18px;
  font-weight:800;
  line-height:1.3;
}
#explore.buy-journey-v2 #step-location .kind-card,
#explore.buy-journey-v2 #step-location .kind-empty {
  border-radius:11px;
  border-color:#d4e3df;
}
#explore.buy-journey-v2 #step-location .kind-card.active {
  background:#fff;
  border-color:#7eafa1;
}
#explore.buy-journey-v2 #step-location .location-alternatives {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#explore.buy-journey-v2 #step-location .alternative {
  min-width:0;
  border-radius:11px;
}
#explore.buy-journey-v2 #step-location .alternative b {font-size:12px}
#explore.buy-journey-v2 #step-location .optional-card {
  border-radius:12px;
  background:#f9fbfa;
}
#explore.buy-journey-v2 #step-location .scope-section {
  margin:20px 0;
  border-top:1px solid var(--bj-line);
  padding-top:22px;
}
#explore.buy-journey-v2 #step-location .scope-section h2 {font-size:18px;font-weight:800}
#explore.buy-journey-v2 #step-location .scope-option span {
  border-radius:11px;
  background:#fff;
}
#explore.buy-journey-v2 #step-location .scope-option input:checked+span {
  background:#edf5f3;
  border-color:#086b62;
}
/* Location confirmation stays in the same four-step journey. */
#explore.buy-journey-v2 #step-confirmation .confirmation-layout {
  grid-template-columns:minmax(0,1.6fr) minmax(270px,.85fr);
  gap:19px;
}
#explore.buy-journey-v2 #step-confirmation .map-shell {
  border-radius:17px;
  border-color:#cbdcd7;
  box-shadow:0 4px 18px rgba(16,50,58,.05);
}
#explore.buy-journey-v2 #step-confirmation .confirmation-summary {
  min-width:0;
  padding:19px;
  background:#edf5f3;
  border:1px solid #d3e5df;
  border-radius:18px;
}
#explore.buy-journey-v2 #step-confirmation .summary-card {
  border-radius:12px;
  padding:19px;
}
#explore.buy-journey-v2 #step-confirmation .detected-message {
  background:#fff;
  border:1px solid #d3e5df;
}
/* Steps 2–4: aligned content cards and evidence notices. */
#explore.buy-journey-v2 .buy-step .truth-note {
  display:block;
  padding:17px 20px;
  margin:0 0 23px;
  border:1px solid #cce4dc;
  border-left:4px solid #087467;
  border-radius:13px;
  background:#edf6f3;
}
#explore.buy-journey-v2 .buy-step .truth-note strong {
  font-size:13px;
  font-weight:800;
  color:#165b51;
}
#explore.buy-journey-v2 .buy-step .truth-note p {
  color:#567076;
  font-size:12px;
  line-height:1.6;
}
#explore.buy-journey-v2 .buy-step .form-section,
#explore.buy-journey-v2 .buy-step .review-group {
  background:#fff;
  border:1px solid var(--bj-line);
  border-radius:17px;
  padding:24px;
  margin-bottom:16px;
}
#explore.buy-journey-v2 .buy-step .form-section h2,
#explore.buy-journey-v2 .buy-step .document-group h2,
#explore.buy-journey-v2 .buy-step .review-group h2 {
  font-size:18px;
  letter-spacing:-.02em;
  line-height:1.3;
  font-weight:800;
  margin:0 0 17px;
  color:var(--bj-ink);
}
#explore.buy-journey-v2 #step-buy-claims .form-section>.hint {
  margin-top:-4px;
}
#explore.buy-journey-v2 #step-buy-claims .choice-field legend {
  font-weight:750;
  line-height:1.5;
}
#explore.buy-journey-v2 #step-buy-claims .choice-row label {
  background:#f8fbfa;
  border-radius:11px;
  padding:12px 15px;
}
#explore.buy-journey-v2 #step-buy-claims .choice-row label:has(input:checked) {
  border-color:#75b6a1;
  background:#e9f6f0;
  color:#145b51;
}
#explore.buy-journey-v2 #step-buy-claims .choice-row input {accent-color:#087467}
#explore.buy-journey-v2 #step-buy-claims .economic-input-section {
  background:#f8faf9;
}
#explore.buy-journey-v2 #step-buy-claims .eyebrow {
  color:#31736b;
  font-size:10px;
  letter-spacing:.075em;
}
/* Documents: clear grouping, pending-state chips, obvious upload affordance. */
#explore.buy-journey-v2 #step-buy-documents .document-help {
  display:block;
  border-radius:11px;
  padding:12px 15px;
  background:#f1f5f4;
  border:1px solid #dce7e4;
  margin:0 0 20px;
}
#explore.buy-journey-v2 #step-buy-documents .document-group {
  background:#fff;
  border:1px solid var(--bj-line);
  border-radius:17px;
  padding:24px;
  margin:0 0 17px;
}
#explore.buy-journey-v2 #step-buy-documents .document-group>p.hint {
  margin-top:-6px;
}
#explore.buy-journey-v2 #step-buy-documents .document-row {
  grid-template-columns:minmax(0,1fr) minmax(190px,.55fr);
  gap:16px;
  padding:18px;
  border-radius:12px;
  margin:10px 0;
  background:#f9fbfa;
  border:1px solid #e1ebe8;
}
#explore.buy-journey-v2 #step-buy-documents .document-row h3 {
  font-size:14px;
  font-weight:800;
  color:var(--bj-ink);
}
#explore.buy-journey-v2 #step-buy-documents .document-row p {
  font-size:12px;
  line-height:1.6;
}
#explore.buy-journey-v2 #step-buy-documents .document-state {
  min-width:0;
  gap:7px;
}
#explore.buy-journey-v2 #step-buy-documents .document-state small {
  border:1px solid #d9e4e1;
  border-radius:999px;
  background:#edf3f1;
  color:#4d6870;
  padding:5px 8px;
  max-width:100%;
  line-height:1.4;
  overflow-wrap:anywhere;
  text-align:center;
}
#explore.buy-journey-v2 #step-buy-documents .document-state strong {
  max-width:100%;
  color:#244e52;
}
#explore.buy-journey-v2 #step-buy-documents .document-state [data-doc-pick] {
  padding:10px 13px;
  border:1px solid #0a635c;
  border-radius:9px;
  min-height:39px;
  background:#fff;
  color:#086b62;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
#explore.buy-journey-v2 #step-buy-documents .document-state [data-doc-pick]:hover {
  background:#e6f3ef;
}
#explore.buy-journey-v2 #step-buy-documents #documents-summary {
  border:1px dashed #b9d6cc;
  background:#edf6f3;
  color:#305e5b;
  padding:13px 15px;
  border-radius:11px;
}
/* Final review: fast scanning and easy corrections. */
#explore.buy-journey-v2 #step-buy-review .review-group {
  padding:22px 24px;
}
#explore.buy-journey-v2 #step-buy-review .review-group h2 {
  margin-bottom:10px;
}
#explore.buy-journey-v2 #step-buy-review .review-row {
  padding:15px 0;
  align-items:center;
  gap:16px;
}
#explore.buy-journey-v2 #step-buy-review .review-row small {
  font-size:11px;
  color:var(--bj-muted);
}
#explore.buy-journey-v2 #step-buy-review .review-row strong {
  font-size:14px;
  font-weight:750;
  line-height:1.45;
  overflow-wrap:anywhere;
}
#explore.buy-journey-v2 #step-buy-review .review-row .link-button {
  display:inline-flex;
  flex:0 0 auto;
  justify-content:center;
  text-decoration:none;
  color:#086b62;
  border:1px solid #beded4;
  border-radius:9px;
  padding:9px 12px;
  min-height:38px;
  background:#f6faf9;
}
#explore.buy-journey-v2 #step-buy-review .review-limit {
  border:1px solid #e7d9bb;
  border-radius:12px;
  padding:15px 17px;
  background:#fff9ed;
  font-size:12px;
  color:#735d36;
  line-height:1.65;
}
#explore.buy-journey-v2 #step-buy-review #buy-analysis-status {
  color:#335b5e;
  line-height:1.55;
}
@media(max-width:1160px) {
  #explore.buy-journey-v2 .flow-step {padding-inline:24px}
}
@media(max-width:900px) {
  #explore.buy-journey-v2 #step-location .location-layout,
  #explore.buy-journey-v2 #step-confirmation .confirmation-layout {
    grid-template-columns:minmax(0,1fr);
  }
  #explore.buy-journey-v2 #step-location .understanding,
  #explore.buy-journey-v2 #step-confirmation .confirmation-summary {
    padding:20px;
  }
}
@media(max-width:760px) {
  #explore.buy-journey-v2 .flow-header {padding:17px 16px 18px}
  #explore.buy-journey-v2 #buy-progress {gap:6px;margin-top:16px}
  #explore.buy-journey-v2 #buy-progress li {
    min-height:73px;
    padding:9px 4px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    text-align:center;
    gap:7px;
    font-size:10px;
    line-height:1.2;
  }
  #explore.buy-journey-v2 #buy-progress li b {flex:0 0 25px;width:25px;height:25px;font-size:11px}
  #explore.buy-journey-v2 #buy-progress li.done b::after {font-size:12px}
  #explore.buy-journey-v2 #buy-progress li span {display:block;font-size:10px;letter-spacing:-.01em}
  #explore.buy-journey-v2 .flow-step {padding:29px 17px 56px}
  #explore.buy-journey-v2 .flow-step>h1 {font-size:27px;line-height:1.2}
  #explore.buy-journey-v2 .flow-step>.lead {font-size:13px;margin-bottom:20px}
  #explore.buy-journey-v2 #step-location .location-layout>div:first-child,
  #explore.buy-journey-v2 #step-location .understanding,
  #explore.buy-journey-v2 #step-confirmation .confirmation-summary,
  #explore.buy-journey-v2 .buy-step .form-section,
  #explore.buy-journey-v2 .buy-step .review-group,
  #explore.buy-journey-v2 #step-buy-documents .document-group {padding:17px}
  #explore.buy-journey-v2 .buy-step .truth-note {padding:14px 16px}
  #explore.buy-journey-v2 #step-location .location-alternatives {grid-template-columns:1fr}
  #explore.buy-journey-v2 #step-buy-documents .document-row {
    grid-template-columns:1fr;
    gap:12px;
    padding:15px;
  }
  #explore.buy-journey-v2 #step-buy-documents .document-state {
    justify-items:start;
    text-align:left;
  }
  #explore.buy-journey-v2 #step-buy-documents .document-state small {text-align:left}
  #explore.buy-journey-v2 #step-buy-claims .choice-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  #explore.buy-journey-v2 #step-buy-claims .choice-row label {justify-content:center;padding:11px 6px}
  #explore.buy-journey-v2 .flow-actions {display:grid;grid-template-columns:1fr;gap:8px}
  #explore.buy-journey-v2 .flow-actions .button {width:100%}
  #explore.buy-journey-v2 .flow-actions .button.primary {grid-row:1}
  #explore.buy-journey-v2 #step-buy-review .review-row {align-items:flex-start;flex-wrap:wrap}
  #explore.buy-journey-v2 #step-buy-review .review-row>div {flex:1 1 180px;min-width:0}
}
@media(prefers-reduced-motion:reduce) {
  #explore.buy-journey-v2 #buy-progress li {transition:none}
}


/* One coherent step layout. The existing navigation IDs and handlers are
   preserved; only their placement inside the sidebars changes. */
#explore.buy-journey-v2 .buy-detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(275px,.85fr);
  gap:19px;
  align-items:start;
}
#explore.buy-journey-v2 .buy-detail-main{min-width:0}
#explore.buy-journey-v2 .buy-step-action-panel{
  position:sticky;
  top:96px;
  align-self:start;
  min-width:0;
  padding:23px;
  background:#e8f6ef;
  border:1px solid #cfe7dc;
  border-radius:18px;
}
#explore.buy-journey-v2 #step-location .understanding.buy-step-action-panel{
  position:sticky;
  top:96px;
  background:#e8f6ef;
  border-color:#cfe7dc;
}
#explore.buy-journey-v2 .buy-step-action-panel h2{
  font-size:18px;
  font-weight:800;
  line-height:1.3;
  margin:0 0 12px;
}
#explore.buy-journey-v2 .buy-step-panel-kicker{
  display:block;
  margin:0 0 8px;
  color:#087766;
  font-size:11px;
  font-weight:800;
  letter-spacing:.07em;
}
#explore.buy-journey-v2 .buy-step-desc{
  color:#526e6c;
  font-size:13px;
  line-height:1.6;
  margin:0 0 15px;
}
#explore.buy-journey-v2 .buy-step-meaning{
  border-top:1px solid #c7dfd5;
  padding-top:12px;
}
#explore.buy-journey-v2 .buy-step-meaning summary{
  color:#075f55;
  font-weight:750;
  cursor:pointer;
  min-height:30px;
}
#explore.buy-journey-v2 .buy-step-meaning p{
  margin:8px 0 0;
  color:#526e6c;
  font-size:12px;
  line-height:1.55;
}
#explore.buy-journey-v2 .buy-step-action-panel .buy-step-primary{
  margin:18px 0 0;
  padding:17px 0 0;
  border-top:1px solid #c7dfd5;
}
#explore.buy-journey-v2 .buy-step-action-panel .buy-step-primary>.button.primary{
  display:block;
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid #9bd923;
  border-radius:11px;
  background:#b8f53d;
  color:#133330;
  font-size:14px;
  font-weight:800;
}
#explore.buy-journey-v2 .buy-step-action-panel .buy-step-primary>.button.primary:hover:not(:disabled){background:#aceb31}
#explore.buy-journey-v2 .buy-step-action-panel .buy-step-primary>.button.primary:disabled{
  background:#e1ede7;
  border-color:#c7ddd2;
  color:#56746e;
  opacity:1;
  cursor:not-allowed;
}
#explore.buy-journey-v2 .buy-return-only{justify-content:flex-start}
#explore.buy-journey-v2 .economic-input-section[hidden]{display:none!important}

/* The Compra Seguro journey controls the outer width for all steps. */
#explore.buy-journey-v2 #step-results .buy-v2 .v2-main-layout{
  grid-template-columns:minmax(0,1.4fr) minmax(270px,.6fr);
  gap:18px;
}
#explore.buy-journey-v2 #step-results .buy-v2 .v2-next{
  position:sticky;
  top:88px;
}
@media(max-width:900px){
  #explore.buy-journey-v2 .buy-detail-layout{grid-template-columns:minmax(0,1fr)}
  #explore.buy-journey-v2 .buy-step-action-panel{position:static;top:auto}
  #explore.buy-journey-v2 #step-location .understanding.buy-step-action-panel{position:static;top:auto}
  #explore.buy-journey-v2 #step-results .buy-v2 .v2-main-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  #explore.buy-journey-v2 #step-results .buy-v2 .v2-next{position:static;max-height:none;overflow:visible}
}
@media(max-width:760px){
  #explore.buy-journey-v2 :is(#step-location,#step-buy-claims,#step-buy-documents,#step-buy-review){padding-bottom:110px}
  #explore.buy-journey-v2 .buy-step-action-panel{padding:17px}
  #explore.buy-journey-v2 .buy-step-action-panel .buy-step-primary{
    position:fixed;
    z-index:45;
    left:0;
    right:0;
    bottom:0;
    margin:0;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top:1px solid #c7dfd5;
    background:#e8f6ef;
    box-shadow:0 -6px 22px rgba(16,50,58,.08);
  }
}
