.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 90px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(30,41,37,.04);
  backdrop-filter: blur(10px);
}
.header-shell { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; text-decoration: none; }
.header-shell .brand img { width: 230px; height: auto; max-height: none; object-fit: contain; object-position: left center; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.authorized-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.authorized-label .ui-icon { width: 15px; height: 15px; color: var(--brand); }
.header-phone { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 900; border: 1px solid var(--brand-border); border-radius: 999px; background: #fff; }
.header-phone .ui-icon { width: 17px; color: var(--brand); }

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 100%); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline, .btn-secondary { color: var(--brand); border-color: var(--brand-border); background: #fff; box-shadow: none; }
.btn-outline:hover, .btn-secondary:hover { border-color: var(--brand); background: var(--brand-50); }
.btn-header { min-height: 36px; padding-inline: 19px; font-size: 13px; }
.btn-full { width: 100%; }

.quote-card { overflow: hidden; border-radius: 23px; background: #fff; box-shadow: 0 18px 44px rgba(30,41,37,.14); }
.quote-card__header { padding: 19px 18px 17px; color: #fff; background: linear-gradient(145deg, var(--brand-800) 0%, var(--brand) 100%); }
.quote-card__header p { margin: 0 0 6px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.quote-card__header h2 { margin: 0; color: #fff; font-size: 24px; line-height: 1.06; letter-spacing: -.025em; }
.quote-card__body { padding: 18px; }
.quote-intro { margin: 0 0 13px; color: var(--body); font-size: 13px; line-height: 1.55; }

.lead-form { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.field { display: grid; gap: 4px; }
.field > span, .protect-type legend { color: var(--ink); font-size: 11px; line-height: 1.2; font-weight: 900; }
.field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 1px 1px rgba(30,41,37,.015);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { border-color: var(--brand-border-strong); box-shadow: 0 0 0 3px rgba(23,107,77,.10); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: block; min-height: 0; color: var(--danger); font-size: 10px; line-height: 1.25; font-weight: 700; }
.protect-type { margin: 11px 0 0; }
.protect-type legend { margin-bottom: 7px; }
.property-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.property-option { position: relative; }
.property-option input { position: absolute; opacity: 0; pointer-events: none; }
.property-option span {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.property-option span .ui-icon { width: 16px; height: 16px; color: var(--muted); }
.property-option input:checked + span { color: var(--brand); border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 2px rgba(23,107,77,.06); }
.property-option input:checked + span .ui-icon { color: var(--brand); }
.consent-row { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 4px; color: var(--body); font-size: 11px; line-height: 1.45; }
.consent-row input { width: 13px; height: 13px; margin: 1px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.consent-row a { color: var(--brand); font-weight: 800; }
.lead-form .btn-primary { min-height: 39px; margin-top: 10px; font-size: 13px; }
.lead-form .btn-primary:disabled { color: rgba(255,255,255,.82); background: #8fa9a0; box-shadow: none; opacity: .72; }
.lead-form .btn-primary:disabled:hover { background: #8fa9a0; transform: none; }
.form-status { display: none; margin-top: 9px; padding: 8px 10px; border-radius: 9px; font-size: 11px; font-weight: 800; line-height: 1.35; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--success); background: #ecfdf3; border: 1px solid #bbf7d0; }
.form-status.is-error { color: #7f1d1d; background: #fef2f2; border: 1px solid #fecaca; }
.form-notes { margin-top: 10px; }
.form-note { margin: 2px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.45; text-align: center; }
.form-divider { display: flex; align-items: center; gap: 10px; margin: 11px 0; color: var(--muted); font-size: 10px; }
.form-divider::before, .form-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.btn-whatsapp { min-height: 38px; color: var(--brand); border-color: var(--brand-border); background: #fff; box-shadow: none; }
.btn-whatsapp .ui-icon { width: 16px; height: 16px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; font-size: 13px; }
.compare-table th, .compare-table td { height: 39px; padding: 0 14px; text-align: left; border: 0; }
.compare-table thead th { color: #fff; background: var(--deep); font-weight: 900; }
.compare-table thead th:first-child { border-top-left-radius: 13px; }
.compare-table thead th:last-child { border-top-right-radius: 13px; }
.compare-table tbody tr:nth-child(even) td { background: var(--soft); }
.compare-table tbody td:first-child { color: var(--ink); font-weight: 800; }
.compare-table tbody td { color: var(--body); }

.accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-xs); }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-trigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 15px; border: 0; color: var(--ink); background: #fff; text-align: left; }
.accordion-question { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 900; }
.accordion-index { color: var(--brand); font-size: 11px; font-weight: 900; }
.accordion-chevron { width: 15px; height: 15px; color: var(--brand); transition: transform .2s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.accordion-panel { padding: 0 38px 16px 51px; color: var(--body); font-size: 13px; line-height: 1.6; }
.accordion-panel p { margin: 0; }
.accordion-panel[hidden] { display: none; }

.site-footer { padding: 30px 0 18px; color: #dce6e1; background: var(--deep-900); }
.footer-shell { font-size: 11px; }
.footer-top { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(480px, 1.25fr); align-items: start; gap: 42px; }
.footer-brand { display: flex; align-items: center; gap: 13px; max-width: 520px; }
.footer-logo { width: 78px; height: 40px; display: grid; place-items: center; padding: 5px 7px; border-radius: 8px; background: #fff; }
.footer-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.footer-brand p { margin: 0; color: #bdcbc4; line-height: 1.5; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 26px; }
.footer-nav__group { display: grid; align-content: start; gap: 7px; }
.footer-nav__group strong { margin-bottom: 2px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.footer-nav__group a { width: fit-content; display: inline-flex; align-items: center; gap: 5px; color: var(--brand-50); text-decoration: none; line-height: 1.35; }
.footer-nav__group a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav__group .ui-icon { width: 13px; height: 13px; }
.footer-note { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); color: #a6b6ae; font-size: 10px; }

@media (max-width: 760px) {
  .site-header, .header-shell { height: 70px; }
  .header-shell { gap: 10px; }
  .brand { flex: 1 1 auto; }
  .header-shell .brand img { width: 128px; }
  .authorized-label { display: none; }
  .header-actions { gap: 7px; flex: 0 0 auto; }
  .header-phone { display: none; }
  .btn-header { min-height: 40px; padding-inline: 12px; font-size: 12.5px; white-space: nowrap; }
  .btn-referral { padding-inline: 11px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}


@media (max-width: 1100px) and (min-width: 901px) {
  .site-header, .header-shell { height: 84px; }
  .header-shell .brand img { width: 165px; }
  .authorized-label { display: none; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .site-header, .header-shell { height: 78px; }
  .header-shell .brand img { width: 150px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 420px) {
  .site-header, .header-shell { height: 68px; }
  .header-shell { gap: 8px; }
  .header-shell .brand img { width: 116px; }
  .header-actions { gap: 5px; }
  .btn-header { min-height: 38px; padding-inline: 9px; font-size: 11.5px; }
  .btn-referral { padding-inline: 8px; }
  .footer-nav { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .footer-nav__group:last-child { grid-column: 1 / -1; }
}




/* Botón flotante de retorno al inicio — v1.2.6.14 */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1200;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px 0 12px;
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: var(--shadow-brand);
  font: inherit;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .16s ease, border-color .16s ease;
}
.back-to-top__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.back-to-top:hover {
  border-color: var(--brand-700);
  background: var(--brand-700);
}
.back-to-top:focus-visible {
  outline: 3px solid var(--brand-border-strong);
  outline-offset: 3px;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    min-height: 42px;
    padding: 0 14px 0 10px;
    font-size: 12px;
  }
  .back-to-top__icon { width: 22px; height: 22px; font-size: 15px; }
}

@media (max-width: 420px) {
  .back-to-top {
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    padding: 0 12px 0 9px;
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

/* ==========================================================================
   Headers legales — v1.2.6.8
   Mantiene el logo grande de la landing aislado en .header-shell y define
   una marca compacta para Aviso de Privacidad / Términos y Condiciones.
   ========================================================================== */
.nav-shell {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 1 auto;
  min-width: 0;
}
.nav-shell .brand-mark {
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
}
.nav-shell .brand-copy {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.12;
  font-weight: 900;
  white-space: nowrap;
}
.nav-shell .brand-copy small {
  margin-top: 2px;
  color: var(--body);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
}

@media (max-width: 760px) {
  .nav-shell {
    height: 70px;
    gap: 12px;
  }
  .nav-shell .brand {
    gap: 8px;
    flex: 1 1 auto;
  }
  .nav-shell .brand-mark {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-basis: 40px;
  }
  .nav-shell .brand-copy {
    font-size: 12.5px;
    white-space: normal;
  }
  .nav-shell .brand-copy small {
    font-size: 10px;
  }
  .nav-shell > .btn {
    min-height: 38px;
    padding-inline: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .nav-shell {
    height: 68px;
  }
  .nav-shell .brand-mark {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    flex-basis: 36px;
  }
  .nav-shell .brand-copy {
    font-size: 11.5px;
  }
  .nav-shell .brand-copy small {
    font-size: 9.5px;
  }
}

/* Sprint 2: confirmación de cotización con folio visible. */
.form-status.is-success {
  display: grid;
  gap: 3px;
}
.form-status.is-success > strong {
  font-size: 12px;
}
.form-status__folio {
  display: inline-block;
  width: fit-content;
  margin: 2px 0;
  padding: 3px 7px;
  border-radius: 7px;
  background: #dcfce7;
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
}
