/* ================================================
   Custodian Seguros — Cotizador Familiares
   Design system
================================================ */

:root {
  --yellow: #F5D80C;
  --green-1: #A3DAD1;   /* light green - primary surface */
  --green-2: #93C572;   /* second green */
  --green-3: #BCE089;   /* third green */
  --blue:    #569099;   /* primary CTA blue */
  --blue-dk: #3E6E75;
  --white:   #FFFFFF;
  --black:   #0E1B1C;
  --ink:     #0E1B1C;
  --ink-2:   #3A4B4D;
  --ink-3:   #6A7D7F;
  --bg:      #F5FAF9;
  --bg-2:    #EAF4F2;
  --line:    #DCE8E5;
  --line-2:  #C9DCD7;
  --danger:  #D64545;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(14,27,28,0.04), 0 2px 6px rgba(14,27,28,0.04);
  --shadow-md: 0 4px 14px rgba(14,27,28,0.07), 0 16px 40px rgba(14,27,28,0.05);
  --shadow-lg: 0 12px 40px rgba(14,27,28,0.10), 0 30px 80px rgba(14,27,28,0.06);

  --font-ui: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

em { font-style: italic; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(14,27,28,0.18);
}
.btn-primary:hover { background: #1a2e30; box-shadow: 0 10px 26px rgba(14,27,28,0.25); }
.btn-dark { background: var(--yellow); color: var(--ink); }
.btn-dark:hover { background: #ffe52c; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 16px 20px;
}
.btn-ghost:hover { background: rgba(14,27,28,0.05); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-icon { display: inline-flex; align-items: center; }

/* ============ Logo ============ */
.logo img {
  height: 80px;
  display: block;
  object-fit: contain;
}

/* ============ Steps ============ */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(14,27,28,0.04);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.step-num {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-3);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--line);
}
.step.active { background: var(--ink); color: var(--white); }
.step.active .step-num { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.step.done { background: var(--green-1); color: var(--ink); }
.step.done .step-num { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* ============ Layout ============ */
.page { min-height: 100vh; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: var(--green-1);
  padding: 8px 14px;
  border-radius: 999px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 999px;
}

.section-head { margin-bottom: 32px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-eyebrow.light { color: var(--green-3); }
.section-title {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.section-title.sm { font-size: 36px; }
.section-title em { color: var(--blue); font-style: italic; }
.section-head-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

/* ============ Landing ============ */
.landing { background: var(--bg); }
.top-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.top-nav-links a { color: var(--ink-2); transition: color 0.15s; }
.top-nav-links a:hover { color: var(--ink); }
.nav-login {
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.landing-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 84px;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 24px 0 24px;
  color: var(--ink);
  text-wrap: pretty;
}
.hero-title em {
  color: var(--blue);
  font-style: italic;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 36px;
}

.landing-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.cta-meta {
  display: flex;
  gap: 28px;
}
.cta-meta-item {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cta-meta-item strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.cta-meta-item span {
  font-size: 12px;
  color: var(--ink-3);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; flex-direction: column; line-height: 1.1; }
.trust-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.trust-lbl {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.trust-div { width: 1px; height: 32px; background: var(--line); }

/* Hero card */
.landing-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.hero-card-media {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.hero-ph, .family-ph { width: 100%; height: 100%; }
.hero-ph svg, .family-ph svg { width: 100%; height: 100%; display: block; }
img.hero-ph { object-fit: contain; display: block; background: #A3DAD1; }
.hero-card-badge {
  position: absolute;
  bottom: calc(8% - 28px); left: 20px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green-2);
  border-radius: 999px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-card-foot {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.hcf-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.hcf-plan {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}
.hcf-right { text-align: right; }

.feature-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.chip {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.chip-ico {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chip-1 .chip-ico { background: var(--green-1); color: var(--blue); }
.chip-2 .chip-ico { background: var(--yellow); color: var(--ink); }
.chip-t { font-size: 13px; font-weight: 700; color: var(--ink); }
.chip-s { font-size: 11px; color: var(--ink-3); }

/* How it works */
.how-it-works {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 40px 60px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.how-card:hover { border-color: var(--green-1); transform: translateY(-2px); }
.how-num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 20px;
}
.how-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.how-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

/* Footer */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.foot-links { display: flex; gap: 24px; }
.foot-links a { cursor: pointer; transition: color 0.15s; }
.foot-links a:hover { color: var(--ink); }

/* ============ Form Page ============ */
.form-page { background: var(--bg); padding-bottom: 60px; }
.form-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.form-header .steps { justify-self: center; }
.header-back {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 16px;
  border-radius: 999px;
  transition: all 0.15s;
}
.header-back:hover { background: rgba(14,27,28,0.05); color: var(--ink); }

/* Acciones del header: agrupa "Volver/Editar" + logout en la columna derecha */
.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-actions .header-back { justify-self: auto; }
.header-divider {
  width: 1px;
  height: 18px;
  background: rgba(14,27,28,0.12);
  margin: 0 4px;
}
.header-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.header-logout:hover { background: rgba(14,27,28,0.05); color: var(--ink); }
.header-logout svg { flex-shrink: 0; }

.form-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 0;
}
.form-intro { text-align: center; margin-bottom: 40px; }
.form-intro .eyebrow { margin-bottom: 20px; }
.form-title {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 16px;
}
.form-title em { color: var(--blue); font-style: italic; }
.form-sub {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.form-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.fch-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
}
.form-card-head h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.form-card-head p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}
.form-card-head > div:nth-child(2) { flex: 1; }
.member-counter {
  background: var(--bg-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.member-counter span { color: var(--blue); font-size: 15px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 15px;
  transition: all 0.15s;
  outline: none;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230E1B1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(86,144,153,0.12);
}
.field.has-error input,
.field.has-error select { border-color: var(--danger); }
.field-err {
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
}

.radio-row { display: flex; gap: 10px; }
.radio-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.radio-chip input { display: none; }
.radio-chip:hover { border-color: var(--line-2); }
.radio-chip.active {
  border-color: var(--blue);
  background: rgba(86,144,153,0.08);
  color: var(--blue);
  font-weight: 600;
}

/* Members */
.members-list { display: flex; flex-direction: column; gap: 16px; }
.member-card {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s;
}
.member-card:hover { border-color: var(--line-2); }
.member-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.member-head-left { display: flex; align-items: center; gap: 14px; }
.member-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-1);
  color: var(--blue);
  display: grid; place-items: center;
}
.member-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
}
.member-name-preview {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.member-head-right { display: flex; align-items: center; gap: 10px; }
.age-pill {
  background: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.age-pill strong { color: var(--ink); font-weight: 700; }
.remove-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  color: var(--ink-3);
  display: grid; place-items: center;
  transition: all 0.15s;
}
.remove-btn:hover { background: rgba(214,69,69,0.1); color: var(--danger); }

.member-grid .field input,
.member-grid .field select { background: var(--white); }

.add-member-btn {
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}
.add-member-btn:hover:not(:disabled) {
  border-color: var(--blue);
  background: rgba(86,144,153,0.04);
  color: var(--blue);
}
.add-member-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.add-plus {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 600;
}
.add-member-btn:disabled .add-plus { background: var(--line); color: var(--ink-3); }
.add-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.form-alert {
  background: rgba(214,69,69,0.08);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 40px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Terms acceptance checkbox */
.terms-accept {
  margin-top: 8px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.terms-accept-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.terms-accept-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.terms-accept-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  background: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: transparent;
  transition: all 0.15s;
}
.terms-accept-box svg {
  width: 14px;
  height: 14px;
}
.terms-accept-label:hover .terms-accept-box {
  border-color: var(--blue);
}
.terms-accept-label input:checked ~ .terms-accept-box {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.terms-accept-label input:focus-visible ~ .terms-accept-box {
  box-shadow: 0 0 0 4px rgba(86,144,153,0.18);
}
.terms-accept-text a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-accept-text a:hover {
  color: var(--blue-dk);
}
.link-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 12px 0;
  transition: color 0.15s;
}
.link-back:hover { color: var(--ink); }

/* ============ Results Page ============ */
.results-page { background: var(--bg); padding-bottom: 0; }
.results-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 40px 0;
}

.results-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}
.results-title {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 400;
  margin: 20px 0 16px;
  color: var(--ink);
}
.results-title em { color: var(--blue); font-style: italic; }
.results-sub {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 540px;
}

.results-summary {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.rs-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 8px;
}
.rs-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
  margin-bottom: 8px;
}
.rs-currency {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--ink-2);
  line-height: 1;
}
.rs-num {
  font-family: var(--font-serif);
  font-size: 88px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 0.9;
}
.rs-period {
  font-size: 16px;
  color: var(--ink-3);
  margin-left: 6px;
}
.rs-annual {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.rs-annual strong { color: var(--ink); font-weight: 700; }
.rs-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.family-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 20px;
}
.family-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.family-foot {
  padding: 24px;
  border-top: 1px solid var(--line);
}
.family-foot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ff-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.ff-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* Quote table */
.quote-table-section { margin-bottom: 80px; }
.quote-id-chip {
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.quote-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.qt-head {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 0.8fr 1.2fr;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.qt-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 0.8fr 1.2fr;
  padding: 20px 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.qt-row:hover { background: var(--bg); }
.qt-row:last-of-type { border-bottom: 1px solid var(--line); }
.qt-col { font-size: 15px; }
.qt-name { display: flex; align-items: center; gap: 14px; }
.qt-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--green-1);
  color: var(--blue);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.qt-name-main { font-weight: 600; color: var(--ink); }
.qt-name-sub { font-size: 12px; color: var(--ink-3); }
.qt-price { text-align: right; font-size: 17px; font-family: var(--font-serif); letter-spacing: -0.01em; }
.qt-price strong { font-weight: 400; font-size: 24px; color: var(--ink); }
.qt-na { font-size: 13px; color: var(--ink-3); font-style: italic; }
.qt-age { color: var(--ink-2); }

.rel-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.rel-spouse { background: rgba(86,144,153,0.12); color: var(--blue); }
.rel-son { background: rgba(147,197,114,0.18); color: #4F7A3A; }
.rel-daughter { background: rgba(245,216,12,0.25); color: #7A6A00; }
.rel-parent { background: rgba(163,218,209,0.35); color: var(--blue-dk); }

.qt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: var(--green-1);
}
.qt-total-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.qt-total-value {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Benefits */
.benefits-section { margin-bottom: 80px; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s;
}
.benefit-card:hover { transform: translateY(-2px); }
.benefit-ico {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  line-height: 1;
  overflow: hidden;
}
.benefit-ico img {
  width: 150px;
  height: 150px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.benefit-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: auto;
}
.benefit-card p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}

/* PDF-style benefits table */
.pdf-benefits {
  margin-top: 8px;
}
.pdf-benefits-rule {
  height: 2px;
  background: var(--green-1);
  border-radius: 2px;
}
.pdf-benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 28px 0 0;
}
.pdf-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 14px 24px;
  position: relative;
}
.pdf-benefit + .pdf-benefit::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 24px;
  width: 1px;
  background: rgba(163, 218, 209, 0.5);
}
.pdf-benefit-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 180px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.pdf-benefit-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pdf-benefit-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 10px;
  line-height: 1.25;
}
.pdf-benefit-desc {
  font-size: 12.5px;
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.5;
  flex: 1;
}
.pdf-benefit-rule {
  width: 100%;
  height: 1.5px;
  background: var(--green-1);
  margin: 4px 0 14px;
  border-radius: 2px;
}
.pdf-benefit-value {
  font-size: 13px;
  color: var(--blue);
  line-height: 1.5;
  font-weight: 500;
}
.pdf-benefit-value .pbv-bold {
  font-weight: 700;
}

@media (max-width: 900px) {
  .pdf-benefits-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .pdf-benefit { padding: 24px 16px; border-radius: var(--radius-md); background: var(--bg); }
  .pdf-benefit + .pdf-benefit::before { display: none; }
  .pdf-benefit-img { max-width: 140px; }
  .pdf-benefits-rule { display: none; }
}

@media (max-width: 560px) {
  .pdf-benefits-grid { grid-template-columns: 1fr; }
  .pdf-benefit-img { max-width: 160px; }
}

/* Next steps */
.next-steps {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin: 0 -40px;
  padding: 0;
}
.ns-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.ns-title {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  color: var(--white);
}
.ns-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px;
  max-width: 480px;
}
.ns-sub strong { color: var(--white); }
.ns-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.12);
}
.cc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-3);
  margin-bottom: 8px;
}
.cc-phone {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.cc-hours {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.cc-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 24px 0;
}
.cc-email {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
}

.foot-results {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 -40px;
  padding: 32px 40px;
  max-width: none;
}
.foot-results .foot-links a { color: rgba(255,255,255,0.6); }
.foot-results .foot-links a:hover { color: var(--white); }

/* ============ Tweaks Panel ============ */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  border: 1px solid var(--line);
  overflow: hidden;
  font-size: 13px;
}
.tweaks-head {
  padding: 14px 18px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tweaks-close {
  color: var(--white);
  opacity: 0.7;
  font-size: 18px;
  padding: 0;
}
.tweaks-close:hover { opacity: 1; }
.tweaks-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
}
.tweak-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.tweak-group .tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.15s;
}
.tweak-opt.active {
  background: var(--ink);
  color: var(--white);
}
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: all 0.15s;
}
.tweak-swatch.active { border-color: var(--ink); transform: scale(1.08); }

/* Responsive basics */
@media (max-width: 980px) {
  .landing-main, .results-hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 56px; }
  .form-title, .results-title { font-size: 40px; }
  .ns-inner { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .form-header { grid-template-columns: auto auto; }
  .form-header .steps { display: none; }
  /* En m\u00f3vil el bot\u00f3n de logout colapsa a solo \u00edcono para ahorrar espacio */
  .header-logout-label { display: none; }
  .header-logout { padding: 10px 12px; }
}
@media (max-width: 640px) {
  .top-nav-links a:not(:last-child) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .how-grid, .benefits-grid { grid-template-columns: 1fr; }
  .qt-head, .qt-row { grid-template-columns: 1.5fr 1fr; grid-gap: 8px; }
  .qt-age, .qt-head .qt-rel { display: none; }
  .landing-main, .form-main, .results-main { padding-inline: 20px; }
  .hero-title { font-size: 42px; }
}


/* ============ Toast (arriba-centro, global) ============ */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-warning { background: #2A1F1F; color: #FFE3E3; }
.toast-warning::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.18);
  flex-shrink: 0;
}
.toast-message { display: inline-block; }

/* ================================================
   Auth — pantalla de contraseña (preview aislado)
   Variantes V1, V2 y V3. Paleta basada en referencia:
   - Azul fuerte: #039FB8
   - Azul claro:  #E5EFF0
================================================ */

.auth-page {
  --auth-teal: #039FB8;
  --auth-teal-light: #E5EFF0;
  --auth-teal-dark: #027a8c;
  --auth-ink: #054b56;
  --auth-danger: #d04848;
  --auth-success: #2c9c4c;
}

/* Las variantes son contenedores raíz; aplicamos los tokens aquí
   también para que funcione cuando AuthPage es el root. */
.auth-v1, .auth-v2, .auth-v3, .auth-v4 {
  --auth-teal: #039FB8;
  --auth-teal-light: #E5EFF0;
  --auth-teal-dark: #027a8c;
  --auth-ink: #054b56;
  --auth-danger: #d04848;
  --auth-success: #2c9c4c;
  font-family: var(--font-ui);
}

/* ============ Pill de contraseña (compartido) ============ */
.auth-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 3px solid var(--auth-teal);
  border-radius: 9999px;
  padding: 4px 6px 4px 22px;
  max-width: 440px;
  margin: 0 auto;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-pill:focus-within {
  box-shadow: 0 0 0 4px rgba(3, 159, 184, 0.18);
}
.auth-pill.is-error {
  border-color: var(--auth-danger);
}
.auth-pill.is-error:focus-within {
  box-shadow: 0 0 0 4px rgba(208, 72, 72, 0.18);
}
.auth-pill.is-success {
  border-color: var(--auth-success);
}
.auth-pill input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 4px;
  min-width: 0;
  color: var(--auth-ink);
  letter-spacing: 0.04em;
}
.auth-pill input::placeholder {
  color: #9bb3ba;
  font-weight: 400;
  letter-spacing: normal;
}
.auth-pill input:disabled {
  opacity: 0.7;
}
.auth-pill-toggle,
.auth-pill-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.auth-pill-toggle {
  width: 36px;
  height: 36px;
  color: var(--auth-teal);
  background: transparent;
}
.auth-pill-toggle:hover:not(:disabled) {
  background: var(--auth-teal-light);
}
.auth-pill-toggle svg {
  width: 18px;
  height: 18px;
}
.auth-pill-submit {
  width: 44px;
  height: 44px;
  background: var(--auth-teal);
  color: #fff;
}
.auth-pill-submit:hover:not(:disabled) {
  background: var(--auth-teal-dark);
}
.auth-pill-submit:active:not(:disabled) {
  transform: scale(0.96);
}
.auth-pill-submit:disabled {
  background: #bcd6db;
  cursor: not-allowed;
}
.auth-pill.is-success .auth-pill-submit {
  background: var(--auth-success);
}
.auth-pill-submit svg {
  width: 18px;
  height: 18px;
}
.auth-spinner {
  animation: auth-spin 0.9s linear infinite;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-feedback {
  margin: 14px 0 0 0;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.auth-feedback-error { color: var(--auth-danger); }
.auth-feedback-success { color: var(--auth-success); }

/* ============ V3 · Reproducción fiel ============ */
.auth-v3 {
  /* Desktop: forzamos a 100vh exacto para que la celda de la foto
     (con los logos overlay) nunca caiga fuera del viewport.
     En móvil este lock se libera (ver media query) para permitir
     scroll natural del layout apilado. */
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Fila 1 (título + pill) se limita ~36vh para que la fila 2 (foto + footer)
     ocupe la mayor parte y se aprecie mejor el contenido de la imagen. */
  grid-template-rows: minmax(auto, 36vh) 1fr;
  background: var(--auth-teal);
}
.auth-v3-tl {
  grid-column: 1;
  grid-row: 1;
  background: var(--auth-teal);
  color: #fff;
  padding: 40px 64px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.auth-v3-bl {
  grid-column: 1;
  grid-row: 2;
  background: #000;
  overflow: hidden;
  min-height: 360px;
  position: relative;
}
.auth-v3-bl .auth-v3-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Si la celda es más alta que la imagen, recortamos por arriba
     para preservar la zona inferior (donde va el logo de Custodian). */
  object-position: center bottom;
  display: block;
}
.auth-v3-logo {
  position: absolute;
  height: 96px;
  width: auto;
  display: block;
  /* Sombra sutil para garantizar contraste sobre la foto */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.auth-v3-logo-coastoil {
  top: 24px;
  right: 28px;
}
.auth-v3-logo-custodian {
  bottom: 24px;
  left: 28px;
}
.auth-v3-tr {
  grid-column: 2;
  grid-row: 1;
  background: var(--auth-teal-light);
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.auth-v3-br {
  grid-column: 2;
  grid-row: 2;
  background: var(--auth-teal);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.auth-v3-eyebrow {
  font-family: var(--font-ui);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 28px 0;
  line-height: 1;
  color: #fff;
}
.auth-v3-headline {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 22px 0;
  line-height: 1.2;
}
.auth-v3-tagline {
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  max-width: 560px;
}
.auth-v3-tagline strong { font-weight: 700; }

.auth-v3-prompt {
  color: var(--auth-teal-dark);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  line-height: 1.35;
  margin: 0 0 30px 0;
  max-width: 380px;
}
.auth-v3-prompt strong {
  font-weight: 700;
  color: var(--auth-teal-dark);
}
.auth-v3-hint {
  margin: 16px 0 0 0;
  font-size: 13px;
  color: var(--auth-teal-dark);
  text-align: center;
  opacity: 0.75;
  line-height: 1.4;
}
.auth-v3-foot {
  color: #fff;
  font-size: 20px;
  text-align: center;
  line-height: 1.4;
  margin: 0;
  max-width: 380px;
  font-weight: 400;
}

/* ============ V1 · Card centrado con hero ============ */
.auth-v1 {
  min-height: 100vh;
  background: var(--auth-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-v1-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
  max-width: 880px;
  box-shadow:
    0 30px 80px rgba(3, 159, 184, 0.18),
    0 8px 24px rgba(14, 27, 28, 0.06);
}
.auth-v1-hero {
  position: relative;
  height: 380px;
  background: #000;
}
.auth-v1-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-v1-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(3, 159, 184, 0.92) 0%,
    rgba(3, 159, 184, 0.70) 35%,
    rgba(3, 159, 184, 0.10) 65%,
    rgba(3, 159, 184, 0) 100%);
  padding: 44px 52px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.auth-v1-eyebrow {
  font-family: var(--font-ui);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 18px 0;
  line-height: 1;
  color: #fff;
}
.auth-v1-headline {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
  max-width: 520px;
}
.auth-v1-tagline {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  max-width: 520px;
}
.auth-v1-tagline strong { font-weight: 700; }

.auth-v1-body {
  padding: 44px 56px 32px;
}
.auth-v1-prompt {
  color: var(--auth-teal-dark);
  font-size: 20px;
  text-align: center;
  line-height: 1.35;
  margin: 0 auto 26px;
  max-width: 480px;
}
.auth-v1-prompt strong {
  font-weight: 700;
  color: var(--auth-teal-dark);
}
.auth-v1-foot {
  background: var(--auth-teal);
  color: #fff;
  padding: 22px 48px 26px;
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
}
.auth-v1-foot p { margin: 0; }

/* ============ V2 · Split con card flotante ============ */.auth-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--auth-teal);
}
.auth-v2-left {
  background: var(--auth-teal);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-v2-left img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.auth-v2-right {
  background: var(--auth-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.auth-v2-card {
  background: var(--auth-teal-light);
  border-radius: 28px;
  padding: 48px 44px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.08);
}
.auth-v2-eyebrow {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--auth-teal);
  margin: 0 0 18px 0;
  line-height: 1;
}
.auth-v2-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--auth-ink);
  margin: 0 0 8px 0;
  line-height: 1.2;
}
.auth-v2-tagline {
  font-size: 17px;
  color: var(--auth-ink);
  margin: 0 0 26px 0;
  line-height: 1.35;
}
.auth-v2-tagline strong { font-weight: 700; }
.auth-v2-divider {
  border: none;
  border-top: 1px solid rgba(3, 159, 184, 0.25);
  margin: 0 0 26px 0;
}
.auth-v2-prompt {
  color: var(--auth-ink);
  font-size: 16px;
  text-align: center;
  line-height: 1.45;
  margin: 0 0 22px 0;
}
.auth-v2-prompt strong {
  font-weight: 700;
  color: var(--auth-teal-dark);
}
.auth-v2-foot {
  margin: 28px 0 0 0;
  font-size: 14px;
  color: var(--auth-ink);
  text-align: center;
  line-height: 1.45;
  opacity: 0.85;
}

/* Header solo móvil — fijo arriba en V3 */
.auth-v3-mobile-header {
  display: none;
}

/* ============ V4 · V3 dentro de card centrado ============ */
.auth-v4 {
  min-height: 100vh;
  background: var(--auth-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-v4-card {
  background: var(--auth-teal);
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto 1fr;
  box-shadow:
    0 30px 80px rgba(3, 159, 184, 0.20),
    0 8px 24px rgba(14, 27, 28, 0.06);
}
.auth-v4-tl {
  grid-column: 1;
  grid-row: 1;
  background: var(--auth-teal);
  color: #fff;
  padding: 48px 52px 44px;
}
.auth-v4-bl {
  grid-column: 1;
  grid-row: 2;
  background: #000;
  overflow: hidden;
  min-height: 320px;
}
.auth-v4-bl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-v4-tr {
  grid-column: 2;
  grid-row: 1;
  background: var(--auth-teal-light);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.auth-v4-br {
  grid-column: 2;
  grid-row: 2;
  background: var(--auth-teal);
  color: #fff;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.auth-v4-eyebrow {
  font-family: var(--font-ui);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 22px 0;
  line-height: 1;
  color: #fff;
}
.auth-v4-headline {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 18px 0;
  line-height: 1.2;
}
.auth-v4-tagline {
  font-size: 19px;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  max-width: 480px;
}
.auth-v4-tagline strong { font-weight: 700; }
.auth-v4-prompt {
  color: var(--auth-teal-dark);
  font-size: 19px;
  font-weight: 400;
  text-align: center;
  line-height: 1.35;
  margin: 0 0 26px 0;
  max-width: 340px;
}
.auth-v4-prompt strong {
  font-weight: 700;
  color: var(--auth-teal-dark);
}
.auth-v4-foot {
  color: #fff;
  font-size: 18px;
  text-align: center;
  line-height: 1.4;
  margin: 0;
  max-width: 340px;
  font-weight: 400;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .auth-v3 {
    /* Móvil: liberamos el lock de 100vh para permitir scroll del layout apilado */
    height: auto;
    min-height: 100vh;
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    /* Espacio para el header fijo */
    padding-top: 84px;
  }
  .auth-v3-mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 84px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 50;
    align-items: center;
    justify-content: center;
  }
  .auth-v3-mobile-header img {
    height: 54px;
    width: auto;
    display: block;
  }
  .auth-v3-tl { grid-column: 1; grid-row: 1; padding: 40px 28px; }
  .auth-v3-tr { grid-column: 1; grid-row: 2; padding: 40px 28px; }
  .auth-v3-bl { grid-column: 1; grid-row: 3; min-height: 260px; }
  /* Safe area en m\u00f3vil: logos m\u00e1s peque\u00f1os y separados del borde */
  .auth-v3-logo { height: 72px; }
  .auth-v3-logo-coastoil { top: 16px; right: 18px; }
  .auth-v3-logo-custodian { bottom: 16px; left: 18px; }
  .auth-v3-br { grid-column: 1; grid-row: 4; padding: 36px 28px; min-height: auto; }
  .auth-v3-eyebrow { font-size: 36px; }
  .auth-v3-headline { font-size: 22px; }
  .auth-v3-tagline { font-size: 18px; }

  .auth-v2 { grid-template-columns: 1fr; grid-template-rows: 240px 1fr; }
  .auth-v2-right { padding: 32px 20px; }

  .auth-v1-hero { height: 280px; }
  .auth-v1-eyebrow { font-size: 30px; }
  .auth-v1-headline { font-size: 20px; }
  .auth-v1-body { padding: 32px 28px 24px; }

  .auth-v4-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .auth-v4-tl { grid-column: 1; grid-row: 1; padding: 36px 28px; }
  .auth-v4-tr { grid-column: 1; grid-row: 2; padding: 36px 28px; }
  .auth-v4-bl { grid-column: 1; grid-row: 3; min-height: 240px; }
  .auth-v4-br { grid-column: 1; grid-row: 4; padding: 32px 28px; min-height: auto; }
  .auth-v4-eyebrow { font-size: 32px; }
  .auth-v4-headline { font-size: 20px; }
  .auth-v4-tagline { font-size: 17px; }
}
