/* Shared auth/landing styles moved from base.html
   Adjust colors in :root to match corporate palette */
:root{
  /* Corporate palette: primary text/brand and lavendar accent */
  --color-bg: #fbfbfc; /* very light neutral */
  --color-surface: #ffffff;
  --color-primary: #3a3a3a; /* corporate dark gray (brand) */
  --color-accent: #c7a76c; /* corporate gold accent */
  --color-accent-2: #bfa07a; /* complementary muted gold for accents */
  --color-white: #ffffff;
  --color-landing-bg: #f9f8f8;
  --bg-accent-1: rgba(199,167,198,0.12);
  --bg-accent-2: rgba(58,58,58,0.05);
  /* Additional UI variables for full variableization */
  --btn-highlight: rgba(255,255,255,0.06);
  --color-primary-dark: rgba(58,58,58,0.96);
  --btn-border-color: rgba(0,0,0,0.06);
  --btn-shadow: 0 10px 20px rgba(100,82,98,0.22);
  --btn-hover-shadow: 0 14px 24px rgba(100,82,98,0.24);
  --btn-ghost-hover-bg: rgba(199,167,198,0.06);
  --focus-visible-ring: rgba(199,167,198,0.4);
  --focus-visible-shadow: rgba(58,58,58,0.14);
  --btn-primary-hover: #b99863;
  --card-border-color: rgba(58,58,58,0.12);
  --card-shadow-1: 0 18px 40px rgba(58,58,58,0.08);
  --card-inset-white: rgba(255,255,255,0.75);
  --card-inset-white-2: rgba(255,255,255,0.4);
  --input-inset-shadow: rgba(255,255,255,0.6);
  --transparent: rgba(255,255,255,0);
  --input-border: #d7e2ea;
  --focus-ring: rgba(15,98,254,0.16);
  --focus-outline: rgba(15,98,254,0.12);
  --focus-shadow: rgba(15,98,254,0.08);
  --btn-shadow-1: 0 10px 20px rgba(100,82,98,0.22);
  --btn-shadow-2: 0 14px 24px rgba(100,82,98,0.24);
  --btn-ghost-shadow: 0 6px 14px rgba(58,58,58,0.08);
  --btn-ghost-hover-shadow: 0 12px 22px rgba(58,58,58,0.12);
  --color-text: #3a3a3a; /* use brand dark for text */
  --color-muted: #6b6b6b;
  --color-border: #ece8e9;
  --color-success: #10b981; /* keep green for success/checks */
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.04);
  --shadow-md: 0 6px 20px rgba(16,24,40,0.08);
  --max-width: 920px;
  --actions-gap: 16px;
  --actions-margin-top: 12px;
  --form-actions-margin-top: 36px;
  /* approximate header offset used for vertical calculations */
  --header-offset: 80px;
}

/* Skip link (visible on keyboard focus) */
.skip-link{
  position:absolute;
  left:1rem;
  top:0.5rem;
  background:var(--color-primary);
  color:var(--color-white);
  padding:8px 12px;
  border-radius:6px;
  transform:translateY(-120%);
  transition:transform .18s ease;
  z-index:1000;
}
.skip-link:focus{ transform:translateY(0%); outline:3px solid var(--focus-ring); }

/* Reset / base */
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  background:var(--color-bg);
  color:var(--color-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}
body.global-nav-loading-active,
body.global-nav-loading-active *{
  cursor:progress !important;
}

.global-nav-loading{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(255, 251, 243, 0.88);
  backdrop-filter:blur(4px);
  z-index:5000;
  text-align:center;
}
.global-nav-loading[hidden]{
  display:none;
}
.global-nav-loading__panel{
  display:grid;
  gap:14px;
  justify-items:center;
  max-width:340px;
  padding:28px 30px;
  border-radius:18px;
  border:1px solid rgba(199,167,108,0.26);
  background:linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,249,239,0.96));
  box-shadow:0 18px 46px rgba(58,58,58,0.14);
}
.global-nav-loading__logo{
  width:74px;
  height:74px;
  animation:global-nav-loading-spin 1.15s linear infinite;
  transform-origin:center;
  filter:drop-shadow(0 10px 18px rgba(16,24,40,0.14));
}
.global-nav-loading__title{
  margin:0;
  font-size:18px;
  color:var(--color-text);
}
.global-nav-loading__text{
  margin:0;
  color:var(--color-muted);
  line-height:1.5;
  font-size:13px;
}
@keyframes global-nav-loading-spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

header{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:18px 24px;
  background:linear-gradient(90deg, var(--card-inset-white), var(--card-inset-white-2));
  border-bottom:1px solid var(--color-border);
  box-shadow:var(--shadow-sm);
  position:relative;
}

header strong{
  color:var(--color-primary);
  letter-spacing:0.6px;
  font-size:18px;
}
.app-nav{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
}
.app-nav__link{
  display:inline-block;
  padding:4px 2px;
  color:#5d4a1f;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  letter-spacing:.02em;
  border-bottom:1px solid transparent;
  transition:color .14s ease, border-color .14s ease;
}
.app-nav__link:hover{
  color:var(--color-accent);
  border-bottom-color:var(--color-accent);
  text-decoration:none;
}
.app-user-menu{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
  white-space:nowrap;
  margin-left:auto;
}
.app-user-menu__name{
  color:var(--color-muted);
  font-size:13px;
  white-space:nowrap;
}
.app-user-menu__logout{
  margin:0;
  display:inline-flex;
  align-items:center;
}
.btn-sm{
  min-height:36px;
  padding:8px 14px;
  font-size:13px;
}

/* site logo in header */
.site-logo{
  /* match previous text size (small, unobtrusive) */
  height:42px; /* increased by 20px as requested */
  max-height:56px;
  max-width:320px;
  width:auto;
  display:block;
  object-fit:contain;
  /* enforce size */
  height:42px !important;
  max-height:56px !important;
  max-width:320px !important;
  width:auto !important;
}

main.container{
  max-width:var(--max-width);
  margin:28px auto;
  display:flex;
  gap:28px;
  padding:0 16px;
}

aside.sidebar{
  width:300px;
  min-width:240px;
  background:var(--color-surface);
  border-radius:calc(var(--radius) - 2px);
  padding:18px;
  border:1px solid var(--color-border);
  box-shadow:var(--shadow-sm);
  height:fit-content;
}

.sidebar ol{ padding-left:16px; margin:0; list-style:none; counter-reset:step; }

.sidebar li{
  display:flex; align-items:baseline; gap:10px; padding:10px 8px; border-radius:8px;
  color:var(--color-muted); margin-bottom:6px;
}

.sidebar li strong{ color:var(--color-text); }

.sidebar li::before{
  counter-increment: step;
  content:counter(step);
  display:inline-grid; place-items:center;
  width:28px; height:28px;
  background:linear-gradient(180deg,var(--color-primary),var(--color-accent));
  color:var(--color-white); border-radius:50%; font-size:13px; box-shadow:var(--shadow-sm); margin-right:6px;
}

section.main-content{ flex:1; min-width:300px; }

/* Auth page wrapper: center horizontally, position near top (1/3) vertically */
.auth-card-wrap{
  /* match landing layout: stack vertically, center horizontally, keep card near the top */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  gap:32px;
  padding:80px 20px 32px;
  box-sizing:border-box;
}
.auth-card-wrap.signup-wrap{
  padding-top:20px;
}

.auth-card-wrap .card{ max-width:520px; width:100%; box-sizing:border-box; }
.auth-brand-logo{
  display:block;
  width:92px;
  height:auto;
  margin:0 auto 14px;
}
.auth-signup-title,
.auth-signup-subtitle{
  text-align:center;
}
.auth-card-wrap .card.signup-card{
  width:100%;
  max-width:780px;
  margin:0 auto;
  padding:22px;
}
.signup-form{
  margin-top:12px;
}
.signup-form .form-inner{
  max-width:70%;
  margin:0 auto;
}
.signup-form .form-inner .field-label-row{
  justify-content:flex-start;
}
.signup-terms-row{
  margin-top:32px;
}
@media (min-width:901px){
  .auth-signup-title{
    white-space:nowrap;
  }
}
@media (max-width:900px){
  .signup-form .form-inner{
    max-width:100%;
  }
}

/* ensure form controls never overflow the card */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  box-sizing: border-box; /* include padding/border in width calculation */
  max-width: 100%;
}

/* center auth action buttons */
.auth-card-wrap .actions{ justify-content: center; }

.card{ background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow-md); }

h1{ margin-top:0; color:var(--color-text) }

form .form-row{ margin-bottom:14px }
label{ display:block; font-size:13px; color:var(--color-muted); margin-bottom:6px }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width:100%; padding:10px 12px; border-radius:8px; border:1px solid var(--input-border); background:transparent;
  font-size:14px; color:var(--color-text); box-shadow:inset 0 1px 0 var(--input-inset-shadow);
}
input:focus, textarea:focus, select:focus{
  outline:2px solid var(--focus-outline); border-color:var(--color-primary); box-shadow:0 4px 16px var(--focus-shadow);
}

.actions{
  display:flex;
  gap:var(--actions-gap);
  align-items:center;
  flex-wrap:wrap;
  margin-top:var(--actions-margin-top);
}
form .actions{ margin-top:var(--form-actions-margin-top); }
.actions-center{ justify-content:center; }

.field-label-row{
  display:flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:6px;
  margin-bottom:6px;
}
.field-label-row label{ margin-bottom:0; }
.help-tooltip{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  padding:0;
  border:1px solid var(--color-accent);
  border-radius:50%;
  background:var(--color-white);
  color:var(--color-primary);
  font-size:11px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.help-tooltip__content{
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(4px);
  min-width:170px;
  max-width:220px;
  padding:8px 10px;
  border:1px solid var(--color-border);
  border-radius:8px;
  background:var(--color-surface);
  color:var(--color-text);
  box-shadow:var(--shadow-sm);
  font-size:12px;
  line-height:1.35;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .14s ease, transform .14s ease, visibility .14s ease;
  z-index:12;
}
.help-tooltip:hover .help-tooltip__content,
.help-tooltip:focus .help-tooltip__content,
.help-tooltip:focus-visible .help-tooltip__content{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.help-tooltip:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px var(--focus-visible-ring);
}
.field-error-inline{
  color:#b91c1c;
  font-size:12px;
  line-height:1.2;
  white-space:normal;
}
.form-error{
  color:#b91c1c;
  font-size:12px;
  line-height:1.3;
  margin-bottom:10px;
}

.consent-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:10px;
}
.consent-control{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:13px;
  color:var(--color-text);
}
.consent-control input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
}
.consent-control a{
  color:var(--color-primary);
  text-decoration:underline;
}
.consent-control a:hover{ opacity:0.85; }
.consent-error{
  color:#b91c1c;
  font-size:12px;
  line-height:1.3;
  margin-top:6px;
  margin-left:0;
  text-align:center;
}

/* All buttons share the same style as landing "Iniciar sesión" button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.2;
  border:1px solid var(--color-accent);
  padding:10px 16px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
  transition:background-color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
  text-decoration:none;
  background:var(--color-white);
  color:var(--color-primary);
  box-shadow:none;
}

.btn-primary{ background:var(--color-white); color:var(--color-primary); border-color:var(--color-accent); }
.btn-ghost{ background:var(--color-white); color:var(--color-primary); border-color:var(--color-accent); }

/* hover/interactive states (very subtle) applied to all buttons */
.btn:hover{
  background:var(--btn-primary-hover);
  color:var(--color-white);
  border-color:var(--color-accent-2);
  box-shadow:0 2px 8px rgba(58,58,58,0.08);
  transform:translateY(-1px);
  text-decoration:none;
}
.btn:active{
  background:var(--color-white);
  color:var(--color-primary);
  border-color:var(--color-accent);
  box-shadow:none;
  transform:translateY(0);
}
.btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px var(--focus-visible-ring);
}

.muted{ color:var(--color-muted); font-size:13px }
.text-center{ text-align:center; }
.btn-center{ justify-content:center; }
.brand-mark{
  display:block;
  width:84px;
  max-width:96px;
  height:auto;
  margin:0 auto 12px;
}
.libertad-brand-mark{
  width:252px;
  max-width:100%;
}
.precual-card{
  position:relative;
  width:min(1180px, calc(100vw - 32px));
  max-width:none;
  margin-left:50%;
  margin-right:0;
  transform:translateX(-50%);
  padding-bottom:34px;
}
.precual-form{
  margin-top:12px;
}
.precual-form-section + .precual-form-section{
  margin-top:24px;
}
.precual-form-section-title{
  margin:0 0 12px;
  font-size:16px;
  color:var(--color-text);
}
.precual-form .form-inner{
  max-width:92%;
  margin:0 auto;
}
.precual-form .form-row,
.precual-form .field-label-row{
  text-align:left;
}
.precual-form .form-row-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:start;
}
.precual-form .form-row-four-col{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap:30px;
  align-items:start;
}
.precual-form .form-row-three-col{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:30px;
  align-items:start;
}
.precual-form .form-row-two-col .form-col{
  min-width:0;
}
.precual-form .form-row-three-col .form-col{
  min-width:0;
}
.precual-form .form-row-four-col .form-col{
  min-width:0;
}
.precual-form .form-row-two-col .form-col input[type="text"],
.precual-form .form-row-two-col .form-col input[type="email"],
.precual-form .form-row-two-col .form-col input[type="password"],
.precual-form .form-row-two-col .form-col input[type="number"],
.precual-form .form-row-two-col .form-col select,
.precual-form .form-row-three-col .form-col input[type="text"],
.precual-form .form-row-three-col .form-col input[type="email"],
.precual-form .form-row-three-col .form-col input[type="password"],
.precual-form .form-row-three-col .form-col input[type="number"],
.precual-form .form-row-three-col .form-col select,
.precual-form .form-row-three-col .form-col textarea,
.precual-form .form-row-four-col .form-col input[type="text"],
.precual-form .form-row-four-col .form-col input[type="email"],
.precual-form .form-row-four-col .form-col input[type="password"],
.precual-form .form-row-four-col .form-col input[type="number"],
.precual-form .form-row-four-col .form-col select,
.precual-form .form-row-four-col .form-col textarea,
.precual-form .form-row-two-col .form-col textarea{
  width:100%;
  max-width:100%;
  min-width:0;
}
.precual-form .form-row-two-col .form-col input[type="text"],
.precual-form .form-row-two-col .form-col input[type="email"],
.precual-form .form-row-two-col .form-col input[type="password"],
.precual-form .form-row-two-col .form-col input[type="number"],
.precual-form .form-row-two-col .form-col select,
.precual-form .form-row-three-col .form-col input[type="text"],
.precual-form .form-row-three-col .form-col input[type="email"],
.precual-form .form-row-three-col .form-col input[type="password"],
.precual-form .form-row-three-col .form-col input[type="number"],
.precual-form .form-row-three-col .form-col select,
.precual-form .form-row-four-col .form-col input[type="text"],
.precual-form .form-row-four-col .form-col input[type="email"],
.precual-form .form-row-four-col .form-col input[type="password"],
.precual-form .form-row-four-col .form-col input[type="number"],
.precual-form .form-row-four-col .form-col select{
  height:40px;
}
.precual-form .form-col-empty{
  visibility:hidden;
}
.precual-card h1,
.precual-card .muted{
  max-width:80%;
  margin-left:auto;
  margin-right:auto;
  overflow-wrap:anywhere;
}
.precual-card .precual-subtitle{
  margin-bottom:22px;
}
@media (min-width:768px){
  .precual-card .precual-subtitle{
    white-space:nowrap;
  }
}
.form-compact .form-inner{
  max-width:92%;
  margin:0 auto;
}
.login-form-compact .form-inner{
  max-width:80%;
  margin:0 auto;
}
.set-password-form{
  margin-top:12px;
}
.set-password-form .form-inner{
  max-width:50%;
  margin:0 auto;
}
.set-password-form .form-row,
.set-password-form .field-label-row{
  text-align:left;
}
.set-password-verify-hint{
  margin:8px 0 0;
  text-align:center;
  color:var(--color-muted);
  font-size:12px;
}

@media (max-width:900px){
  .precual-form .form-inner{
    max-width:100%;
  }
  .precual-form .form-row-two-col{
    grid-template-columns:1fr;
  }
  .precual-form .form-row-three-col{
    grid-template-columns:1fr;
  }
  .precual-form .form-row-four-col{
    grid-template-columns:1fr;
  }
  .form-compact .form-inner{
    max-width:100%;
  }
  .login-form-compact .form-inner{
    max-width:100%;
  }
  .set-password-form .form-inner{
    max-width:100%;
  }
  .libertad-case-card{
    width:100%;
    min-width:0;
    max-width:100%;
    margin-left:0;
    margin-right:0;
    transform:none;
  }
}

/* Steps progress UI */
.sidebar ol{ padding-left:10px }
.sidebar .step{ display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:8px; color:var(--color-muted); }
.sidebar .step .num{ width:28px; height:28px; display:inline-grid; place-items:center; background:transparent; color:var(--color-muted); border-radius:50%; font-size:13px }
.sidebar .step .check{ width:28px; height:28px; display:inline-grid; place-items:center; background: var(--color-success); color: var(--color-white); border-radius:50%; font-size:13px }
.sidebar .step.completed strong{ color:var(--color-text); }
.sidebar .step.active strong{ font-weight:700; color:var(--color-text) }


/* Accessibility: visible focus for interactive elements */
a:focus, button:focus { outline:3px solid var(--focus-ring); outline-offset:2px; }

/* small screens */
@media (max-width:900px){ main.container{ flex-direction:column; padding:16px } aside.sidebar{ width:100%; order:2 } section.main-content{ order:1 } }
@media (max-width:900px){
  header{
    flex-wrap:wrap;
  }
  .app-nav{
    position:static;
    order:3;
    width:100%;
    transform:none;
    justify-content:flex-start;
  }
  .app-user-menu{
    margin-left:auto;
    flex-wrap:nowrap;
  }
}

/* Service selector landing */
.service-selector-wrap{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:30px;
  padding:30px 16px 40px;
}
.service-selector-logo{
  width:min(520px, 88vw);
  height:auto;
}
.service-selector-card{
  width:min(920px, 100%);
  text-align:center;
  padding:28px;
}
.service-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(200px, 1fr));
  gap:14px;
  margin-top:10px;
}
.service-option{
  cursor:pointer;
  text-align:left;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  padding:0;
  background:transparent;
  font:inherit;
}
.visually-hidden{
  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;
}
.service-option-body{
  border:1px solid var(--color-border);
  border-radius:10px;
  padding:16px 14px;
  background:#fff;
  flex:1;
  box-shadow:0 1px 3px rgba(16,24,40,0.05);
  transition:border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.service-option-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:40px;
  border:1px dashed var(--color-accent);
  border-radius:8px;
  font-size:11px;
  color:var(--color-primary);
  margin-bottom:8px;
}
.service-option-logo{
  display:block;
  width:192px;
  max-width:85%;
  height:auto;
  margin:0 auto 10px;
}
.service-option-title{
  display:block;
  font-weight:600;
  color:var(--color-text);
  margin-bottom:4px;
}
.service-option-desc{
  display:block;
  font-size:12px;
  color:var(--color-muted);
  line-height:1.35;
}
.service-option-audience{
  display:block;
  margin-top:10px;
  color:var(--color-accent);
  font-size:12px;
  font-weight:600;
  line-height:1.4;
}
.service-option.is-selected .service-option-body{
  border-color:var(--color-accent);
  box-shadow:0 0 0 2px rgba(199,167,108,0.18), 0 8px 18px rgba(16,24,40,0.08);
  transform:translateY(-1px);
}
.service-option:focus-visible .service-option-body{
  box-shadow:0 0 0 3px var(--focus-visible-ring), 0 8px 18px rgba(16,24,40,0.08);
}
.btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.btn[disabled]:hover{
  background:var(--color-white);
  color:var(--color-primary);
  border-color:var(--color-accent);
  transform:none;
  box-shadow:none;
}
@media (max-width:720px){
  .service-grid{ grid-template-columns:1fr; }
}

.aux-link-row{
  margin:12px 0 0;
  text-align:center;
}
.aux-link{
  font-size:12px;
  color:var(--color-muted);
  text-decoration:underline;
}
.aux-link:hover{ color:var(--color-primary); }

.precual-form .hipoteca-indented{ margin-left:24px; }

.offer-accept-btn{ background:rgba(58,58,58,0.16); box-shadow:0 2px 8px rgba(58,58,58,0.12); }
.offer-accept-btn:hover{ background:rgba(58,58,58,0.22); box-shadow:0 4px 10px rgba(58,58,58,0.16); }

.service-brand-wrap{
  text-align:center;
  margin:0 0 12px;
}
.service-brand-logo{
  max-width:210px;
  width:100%;
  height:auto;
}

.libertad-process-card{
  width:min(1180px, calc(100vw - 32px));
  max-width:none;
  margin-left:50%;
  margin-right:0;
  transform:translateX(-50%);
}
.libertad-process-panel{
  margin:24px 0 20px;
  padding:22px;
  border:1px solid rgba(199,167,108,0.22);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(199,167,108,0.1), rgba(255,255,255,0.96));
  box-shadow:0 8px 24px rgba(199,167,108,0.08);
}
.libertad-process-kicker{
  margin:0 0 8px;
  text-align:center;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--color-accent);
}
.libertad-process-kicker--muted{
  text-align:left;
  color:#8b8b8b;
}
.libertad-process-title{
  margin:0 0 14px;
  font-size:18px;
  color:var(--color-text);
  text-align:center;
}
.libertad-process-title--left{
  text-align:left;
}
.libertad-process-intro,
.libertad-process-journey-intro{
  margin:0 0 16px;
  font-size:13px;
  line-height:1.55;
  color:var(--color-muted);
  text-align:center;
}
.libertad-process-journey-intro{
  text-align:left;
  max-width:760px;
}
.libertad-process-steps{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
.libertad-process-step{
  padding:16px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(58,58,58,0.1);
  box-shadow:0 1px 3px rgba(16,24,40,0.05);
}
.libertad-process-step h3{
  margin:0 0 8px;
  font-size:15px;
  color:var(--color-text);
}
.libertad-process-step p{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:var(--color-muted);
}
.libertad-process-journey{
  margin:0 0 20px;
  padding:24px;
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff, #f8f8f8);
  border:1px solid rgba(58,58,58,0.12);
}
.libertad-process-journey-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
.libertad-process-journey-step{
  position:relative;
  padding:18px 16px 18px 18px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(58,58,58,0.08);
  border-left:4px solid rgba(199,167,108,0.7);
  box-shadow:0 6px 18px rgba(16,24,40,0.04);
}
.libertad-process-journey-step h3{
  margin:0 0 8px;
  font-size:15px;
}
.libertad-process-journey-step p{
  margin:0;
  font-size:13px;
  line-height:1.5;
  color:var(--color-muted);
}
.libertad-process-journey-eyebrow{
  display:inline-block;
  margin-bottom:8px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--color-accent);
}
.libertad-process-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  margin-top:4px;
}
.libertad-process-grid--form{
  margin:24px 0 20px;
}
.libertad-process-block{
  padding:18px;
  border:1px solid var(--color-border);
  border-radius:12px;
  background:#fff;
}
.libertad-process-block h2{
  margin:0 0 12px;
  font-size:16px;
  color:var(--color-text);
}
.libertad-process-list{
  margin:0;
  padding-left:18px;
  color:var(--color-muted);
}
.libertad-process-list li{
  margin-bottom:8px;
  line-height:1.5;
}
.libertad-process-results{
  margin-top:20px;
}
.libertad-process-results--form{
  margin:0 0 22px;
}
.libertad-form-title{
  margin-top:30px;
}
.libertad-doc-submit-form--bottom{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
}
.libertad-process-results-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}
.libertad-process-result{
  padding:18px;
  border-radius:12px;
  border:1px solid var(--color-border);
  background:#fff;
}
.libertad-process-result h3{
  margin:0 0 8px;
  font-size:16px;
}
.libertad-process-result p{
  margin:0;
  color:var(--color-muted);
  font-size:13px;
  line-height:1.55;
}
.libertad-process-result--success{
  background:#f0fdf4;
  border-color:#86efac;
}
.libertad-process-result--warning{
  background:#fffbeb;
  border-color:#fcd34d;
}
.libertad-process-result--neutral{
  background:#f9fafb;
  border-color:#d1d5db;
}
.libertad-process-actions{
  margin-top:24px;
  gap:12px;
}
@media (max-width:720px){
  .libertad-process-journey-grid,
  .libertad-process-steps,
  .libertad-process-grid,
  .libertad-process-results-grid{
    grid-template-columns:1fr;
  }
}
.content-card-wide{
  max-width:900px;
  margin:0 auto;
}
.content-card-medium{
  max-width:760px;
  margin:0 auto;
}
.section-title{
  margin:28px 0 10px;
}
.simple-table{
  width:100%;
  border-collapse:collapse;
}
.simple-table thead tr{
  text-align:left;
  border-bottom:1px solid var(--color-border);
}
.simple-table th,
.simple-table td{
  padding:8px 6px;
}
.simple-table tr.row-current{
  background:#f9f8f8;
}
.inline-separator{
  margin:0 6px;
}
.content-stack-md{
  margin-top:18px;
}
.content-stack-lg{
  margin-top:20px;
}
.content-stack-xl{
  margin-top:25px;
}
.decision-summary-block{
  width:80%;
  margin:24px auto 0;
  padding:6px 0;
}
.decision-summary-block p{
  margin:0 0 12px;
}
.decision-actions-gap{
  margin-top:36px !important;
  margin-bottom:14px;
}
.libertad-case-card{
  width:min(1180px, 92vw);
  max-width:min(1180px, 92vw);
  margin-left:50%;
  margin-right:0;
  transform:translateX(-50%);
}
.libertad-progress-wrap{
  margin:14px 0 22px;
}
.libertad-doc-review-card{
  margin:0 0 22px;
  padding:16px 18px;
  border:1px solid #d1d5db;
  border-radius:12px;
  background:#f9fafb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.libertad-doc-review-card--info{
  background:#eff6ff;
  border-color:#93c5fd;
}
.libertad-doc-review-card--ready{
  background:#f0fdf4;
  border-color:#86efac;
}
.libertad-doc-review-card h2{
  margin:0 0 6px;
  font-size:18px;
}
.libertad-doc-review-card p{
  margin:0;
  max-width:760px;
}
.libertad-timeline{
  display:flex;
  flex-direction:column;
  gap:0;
  margin:18px 0 22px;
}
.libertad-timeline-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid #e5e7eb;
  color:#6b7280;
}
.libertad-timeline-item.is-done{
  color:#166534;
}
.libertad-timeline-item.is-active{
  color:#1d4ed8;
  background:#eff6ff;
  border-radius:8px;
  border-bottom:none;
  margin-bottom:2px;
}
.libertad-timeline-item.is-future{
  color:#9ca3af;
  opacity:0.75;
}
.libertad-timeline-label{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  flex:1;
  font-size:14px;
}
.libertad-timeline-date{
  font-size:12px;
  color:#9ca3af;
  font-weight:400;
}
.libertad-timeline-pending{
  font-size:11px;
  color:#d1d5db;
  font-style:italic;
}
.libertad-timeline-context{
  margin:4px 0 2px 30px;
  font-size:13px;
  color:#1e40af;
  width:100%;
}
.libertad-timeline-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:999px;
  border:1px solid currentColor;
  font-size:12px;
  font-weight:700;
  line-height:1;
}
.libertad-contract-card{
  margin:8px 0 12px;
}

/* Closed-case banner */
.libertad-closed-card{
  margin:20px 0;
  padding:28px 24px;
  border-radius:12px;
  text-align:center;
}
.libertad-closed-card--success{
  background:#f0fdf4;
  border:2px solid #86efac;
}
.libertad-closed-card--nogo{
  background:#f9fafb;
  border:2px solid #d1d5db;
}
.libertad-closed-icon{
  font-size:40px;
  line-height:1;
  margin-bottom:12px;
}
.libertad-closed-title{
  font-size:22px;
  font-weight:700;
  margin:0 0 8px;
  color:#111827;
}
.libertad-closed-card--success .libertad-closed-title{
  color:#15803d;
}
.libertad-closed-subtitle{
  font-size:15px;
  color:#374151;
  margin:0 0 12px;
}
.libertad-closed-note{
  font-size:14px;
  color:#374151;
  max-width:520px;
  margin:0 auto 16px;
  line-height:1.6;
  background:rgba(0,0,0,.03);
  padding:12px 16px;
  border-radius:8px;
}
.libertad-closed-contact{
  font-size:13px;
  color:#6b7280;
  margin:0 0 12px;
}
.libertad-closed-actions{
  margin-top:16px;
}
.libertad-progress-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:6px;
}
.libertad-progress-track{
  height:10px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}
.libertad-progress-fill{
  height:100%;
  background:#16a34a;
}
.libertad-case-messages{
  margin:12px 0;
}
.libertad-case-message-item{
  padding:8px 10px;
  border:1px solid #ddd;
  margin-bottom:8px;
}
.libertad-case-table{
  width:100%;
  border-collapse:collapse;
}
.libertad-case-table thead tr{
  text-align:left;
  border-bottom:1px solid #ddd;
}
.libertad-case-table tbody tr{
  border-bottom:1px solid #eee;
}
.libertad-doc-row-uploaded{
  background:rgba(63, 145, 87, 0.06);
}
.libertad-missing-flag-form{
  margin:0;
}
.libertad-checkbox-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
}
.libertad-checkbox-label input{
  width:16px;
  height:16px;
}
.libertad-add-document-dialog{
  border:none;
  border-radius:18px;
  padding:0;
  width:min(92vw, 440px);
  box-shadow:0 24px 60px rgba(33, 33, 33, 0.18);
}
.libertad-add-document-dialog::backdrop{
  background:rgba(28, 28, 28, 0.28);
}
.libertad-add-document-dialog-form{
  display:grid;
  gap:14px;
  padding:24px;
}
.libertad-add-document-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.libertad-upload-form{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.libertad-file-picker{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}
.libertad-upload-form .btn[disabled]{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
}
.libertad-remove-btn{
  border-color:#d6b48d;
}

/* Async drag-and-drop upload zone */
.libertad-dropzone{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  min-width:160px;
  padding:10px 14px;
  border:1.5px dashed #93c5fd;
  border-radius:8px;
  background:#f8faff;
  cursor:pointer;
  transition:border-color .15s, background .15s;
  text-align:center;
}
.libertad-dropzone:hover:not(.libertad-dropzone--disabled){
  border-color:#3b82f6;
  background:#eff6ff;
}
.libertad-dropzone--drag{
  border-color:#2563eb;
  background:#dbeafe;
}
.libertad-dropzone--has-file{
  border-color:#86efac;
  background:#f0fdf4;
}
.libertad-dropzone--disabled{
  opacity:.5;
  cursor:not-allowed;
}
.libertad-dropzone-input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.libertad-dropzone-icon{
  font-size:20px;
  line-height:1;
  color:#3b82f6;
}
.libertad-dropzone--has-file .libertad-dropzone-icon{
  color:#16a34a;
}
.libertad-dropzone-label{
  font-size:12px;
  color:#374151;
}
.libertad-dropzone-progress{
  width:100%;
  height:4px;
  background:#e5e7eb;
  border-radius:2px;
  margin-top:4px;
  overflow:hidden;
}
.libertad-dropzone-progress-bar{
  width:40%;
  height:100%;
  background:#3b82f6;
  border-radius:2px;
  animation:libertad-progress-pulse 1s ease-in-out infinite alternate;
}
@keyframes libertad-progress-pulse{
  from{opacity:.5;}
  to{opacity:1;}
}
.libertad-dropzone-error{
  font-size:11px;
  color:#dc2626;
  margin-top:4px;
  max-width:200px;
}
.libertad-dropzone-remove{
  margin-top:4px;
  font-size:12px;
  padding:3px 10px;
  border-color:#fca5a5;
  color:#b91c1c;
}
.libertad-dropzone-remove:hover{
  background:#fee2e2;
}
.libertad-add-doc-btn{
  display:block;
  font-size:12px;
}
.libertad-case-actions{
  margin-top:32px;
  text-align:center;
}
.libertad-contract-actions{
  margin-top:28px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;
}
.libertad-contract-action-form{
  margin:0;
}
.libertad-contract-action-group{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}
.libertad-contract-sign-group{
  gap:10px;
}
.libertad-contract-actions .btn{
  min-width:220px;
}
.libertad-contract-help{
  margin:0;
  max-width:260px;
  text-align:center;
  line-height:1.4;
}
@media (max-width:720px){
  .libertad-doc-review-card{
    align-items:flex-start;
  }
}
.libertad-contract-dialog{
  width:min(960px, calc(100vw - 32px));
  border:none;
  border-radius:20px;
  padding:0;
}
.libertad-contract-dialog::backdrop{
  background:rgba(24, 26, 32, .58);
}
.libertad-contract-dialog-body{
  padding:20px;
}
.libertad-contract-frame{
  width:100%;
  height:min(72vh, 860px);
  border:1px solid #ddd;
  border-radius:14px;
  background:#fff;
}
.libertad-contract-fallback{
  min-height:240px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:24px;
  text-align:center;
}
.libertad-contract-fallback--inline{
  min-height:0;
  padding:12px 0 0;
}
.libertad-contract-dialog-actions{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

@media (max-width: 720px){
  .libertad-progress-header{
    gap:6px;
    flex-direction:column;
    align-items:flex-start;
  }
  .libertad-timeline{
    flex-direction:column;
    gap:8px;
  }
  .libertad-timeline-item{
    width:100%;
  }
  .libertad-contract-actions{
    gap:12px;
    flex-direction:column;
    align-items:center;
  }
  .libertad-contract-actions .btn{
    width:100%;
  }
  .libertad-contract-action-group{
    width:100%;
    max-width:320px;
  }
  .libertad-contract-help{
    max-width:none;
  }
  .libertad-contract-dialog-body{
    padding:14px;
  }
  .libertad-contract-frame{
    height:58vh;
  }
  .libertad-contract-dialog-actions{
    justify-content:center;
  }
}

.prequal-readonly-card{
  padding-bottom:34px;
}
.prequal-readonly-summary{
  text-align:center;
  font-size:24px;
  font-weight:700;
  line-height:1.3;
  margin:10px 0 28px;
}
.prequal-readonly-fields{
  text-align:left;
  padding:0 20px;
}
.prequal-readonly-fields .readonly-row{
  margin:0 0 10px;
}
.prequal-readonly-fields .readonly-row-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:0 0 10px;
}
.prequal-readonly-fields p{
  margin:0 0 10px;
}
.prequal-readonly-indented{
  margin-left:24px !important;
}
.prequal-readonly-cta{
  margin-top:36px !important;
}

@media (max-width:900px){
  .prequal-readonly-fields .readonly-row-two-col{
    grid-template-columns:1fr;
  }
}
