:root {
  --burgundy: #581010;
  --burgundy-deep: #3d0a0c;
  --burgundy-soft: #7a2a30;
  --cream: #f0e8e0;
  --cream-soft: #f7f2ed;
  --ink: #2a1515;
  --muted: #6e5555;
  --line: rgba(88, 16, 16, 0.14);
  --shell: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: "Manrope", system-ui, sans-serif;
}

#seguros,
#companias,
#asesoria,
#cedula,
#contacto {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2000;
  transform: translateY(-140%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.wa-float:focus-visible {
  outline-color: var(--cream);
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf8f4 0%, var(--cream-soft) 32%, #f3ebe4 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

.shell {
  width: min(92%, var(--shell));
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
}

.kicker--on-dark { color: rgba(240, 232, 224, 0.72); }

h1, h2, h3 {
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  margin-bottom: 16px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 40ch;
}

.muted--on-dark { color: rgba(240, 232, 224, 0.72); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: transform .35s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn--cream { background: var(--cream); color: var(--burgundy); }
.btn--cream:hover { background: #fff; }
.btn--ghost { border-color: rgba(240, 232, 224, 0.4); color: var(--cream); }
.btn--ghost:hover { background: rgba(240, 232, 224, 0.1); }
.btn--burgundy { background: var(--burgundy); color: var(--cream); }
.btn--burgundy:hover { background: var(--burgundy-deep); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid rgba(240, 232, 224, 0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(78, 18, 20, 0.97) 0%, rgba(49, 8, 10, 0.98) 100%);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  z-index: 2;
}

.brand img { width: 40px; }
.brand span {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: rgba(240, 232, 224, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--cream); }

.site-nav a[aria-current="true"] {
  box-shadow: inset 0 -1px 0 currentColor;
}

.site-nav__cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--burgundy) !important;
  font-weight: 600 !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-size: 14px !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--cream);
  transition: transform .3s var(--ease), opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
  background: var(--burgundy-deep);
}

.hero__media { position: absolute; inset: 0; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  animation: hero-drift 16s var(--ease) both;
}

@keyframes hero-drift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42,8,10,.62) 0%, rgba(42,8,10,.18) 42%, rgba(42,8,10,.82) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(92%, 720px);
  margin-left: max(4%, calc((100% - min(92%, var(--shell))) / 2));
  padding: calc(var(--header-h) + 48px) 0 72px;
  animation: rise .9s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.hero__mark {
  width: clamp(72px, 12vw, 110px);
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

.hero__place {
  margin-bottom: 10px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 232, 224, 0.78);
}

.hero__lockup {
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
}

.hero__brand {
  font-family: "Special Gothic Expanded One", "Archivo", sans-serif;
  font-size: clamp(2.15rem, 4.8vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__title {
  width: 0;
  min-width: 100%;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 232, 224, 0.78);
  max-width: none;
  margin-bottom: 0;
  white-space: normal;
  line-height: 1.65;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Blocks */
.block { padding: clamp(72px, 10vw, 120px) 0; }
.block--cream {
  background: linear-gradient(180deg, #f8f4ef 0%, var(--cream-soft) 46%, #f2e9e2 100%);
}

.block--logos {
  background: #fff;
  color: var(--ink);
  padding-bottom: 0;
}

.block--process {
  background: linear-gradient(180deg, #efe6de 0%, var(--cream) 40%, #f4ebe4 100%);
  color: var(--ink);
}

.block--contact {
  background: linear-gradient(180deg, #f4ebe4 0%, var(--cream) 55%, #efe4db 100%);
}

/* Services rail */
.split {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) 1.4fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split__sticky {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.rail__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 26px 8px;
  border-top: 1px solid var(--line);
  transition: background .3s ease, padding .35s var(--ease);
}

.rail__item:last-child { border-bottom: 1px solid var(--line); }
.rail__dots { display: none; }

.app-tab { display: none; }

.rail__item:hover {
  background: rgba(88,16,16,.04);
  padding-inline: 16px;
}

.rail__num {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.35rem;
  color: var(--burgundy-soft);
  font-weight: 600;
}

.rail__icon { display: none; }

.rail__body strong {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.rail__short { display: none; }

.rail__body em {
  font-style: normal;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 300;
}

.rail__go {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--burgundy);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .35s var(--ease);
}

.rail__item:hover .rail__go,
.rail__item:focus-visible .rail__go {
  opacity: 1;
  transform: none;
}

/* Logos */
.logos-head {
  text-align: center;
  margin-bottom: 40px;
}

.logos-head .muted { margin-inline: auto; }

.marquee {
  overflow: hidden;
  max-width: 100%;
  background: #fff;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-bottom: 0;
  padding: 6px 0 29px;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  margin-bottom: 0;
  padding: 2px 0;
  animation: scroll-logos 52s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__track img {
  width: auto;
  height: 32px;
  max-width: none;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: grayscale(1) sepia(0.46) brightness(0.88) contrast(0.84);
  opacity: 0.54;
  transition: opacity .4s ease;
}

.marquee:hover .marquee__track img,
.marquee:focus-within .marquee__track img {
  opacity: 0.72;
}

/* Wide wordmarks sit shorter so they share the row instead of spanning it. */
.marquee__track img[src*="chubb"] { height: 15px; }
.marquee__track img[src*="mapfre"] { height: 18px; }
.marquee__track img[src*="afirme"] { height: 22px; }
.marquee__track img[src*="banorte"] { height: 24px; }
.marquee__track img[src*="universal"] { height: 26px; }

@keyframes scroll-logos {
  to { transform: translateX(-50%); }
}

.logos-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px 32px;
  text-align: left;
  font-size: 14px;
  color: rgba(240,232,224,.72);
  line-height: 1.55;
}

.logos-cats p {
  padding-top: 12px;
  border-top: 1px solid rgba(240,232,224,.16);
}

.logos-cats span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(240,232,224,.92);
}

/* Process */
.process-head {
  max-width: 34rem;
  margin-bottom: 48px;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.process li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
}

.process li > div { display: contents; }

.process strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--burgundy);
}

.process strong span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.process p { grid-column: 1 / -1; }

.process h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0;
}

.process p {
  color: var(--muted);
  font-weight: 300;
  font-size: .98rem;
}

.process__cta { margin-top: 36px; }

.credential {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.credential__photo {
  justify-self: end;
  width: 260px;
  margin: 0;
}

.credential__frame { position: relative; }

.credential__shot {
  display: block;
  width: 100%;
  height: auto;
}

.credential__qr {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 86px;
  height: 86px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(42, 8, 10, 0.2);
}

.credential__photo figcaption {
  margin-top: 10px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.credential__seals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 18px;
}

.credential__seals img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.credential__seals img:nth-child(2) {
  height: calc(42px * 1.2);
}

.credential__copy .btn { margin-top: 20px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 3.4vw, 36px);
}

.contact__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  margin-bottom: 10px;
}

.contact__lead {
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.quote-launch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quote-launch button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: transform .25s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
}

.quote-launch button i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--burgundy);
  font-size: 14px;
}

.quote-launch button:hover {
  transform: translateY(-2px);
  border-color: var(--burgundy);
  background: #fff;
}

.contact__wa {
  width: 100%;
  margin-top: 16px;
  gap: 10px;
}

.contact__wa i { font-size: 1.05em; }

.contact__also {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.contact__also p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  margin-bottom: 4px;
}

.contact__also a {
  color: var(--burgundy);
  font-weight: 500;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(88, 16, 16, 0.22);
}

body.quote-open { overflow: hidden; }
body.quote-open .app-tab,
body.quote-open .wa-float { display: none !important; }

.quote-dialog {
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: none;
  background: transparent;
  color: var(--ink);
}
.quote-dialog::backdrop {
  background: rgba(42, 8, 10, 0.72);
  backdrop-filter: blur(10px);
}
.quote-dialog[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.quote-dialog__shell {
  width: min(100%, 640px);
  height: 100svh;
  max-height: 100svh;
  background: linear-gradient(180deg, #f7f2ed 0%, #efe6de 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quote-dialog__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  background: #fff;
}

.quote-dialog__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.quote-dialog__icon[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

.quote-dialog__progress { flex: 1; min-width: 0; }
.quote-dialog__progress p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-dialog__bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}
.quote-dialog__bar i {
  display: block;
  height: 100%;
  width: 16%;
  border-radius: inherit;
  background: var(--burgundy);
  transition: width .45s var(--ease);
}

.quote-dialog__body {
  flex: 1 1 auto;
  min-height: 280px;
  overflow-y: auto;
  padding: 28px 22px 18px;
}

.quote-view { animation: quote-in .45s var(--ease); }
.quote-view.is-back { animation-name: quote-back; }

@keyframes quote-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes quote-back {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

.quote-view h2 {
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.quote-view .quote-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 36ch;
  margin-bottom: 22px;
}

.quote-input,
.quote-area {
  width: 100%;
  border: 2px solid transparent;
  background: #fff;
  border-radius: 22px;
  padding: 18px 20px;
  color: var(--ink);
  font: inherit;
  font-size: 1.28rem;
  font-weight: 700;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.quote-input::placeholder { color: #cbbdb5; font-weight: 500; }
.quote-input:focus,
.quote-area:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(88, 16, 16, 0.08);
}
.quote-input[aria-invalid="true"],
.quote-tiles[aria-invalid="true"] .quote-tile,
.quote-pills[aria-invalid="true"] {
  border-color: var(--burgundy);
}

.quote-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 22px;
  padding: 8px;
}
.quote-stepper input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: 64px;
  padding: 0 10px;
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}
.quote-stepper button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}
.quote-stepper button:hover { background: var(--burgundy); color: var(--cream); }

.quote-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quote-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 112px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid transparent;
  text-align: left;
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.quote-tile i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 16px;
}
.quote-tile strong {
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.quote-tile em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}
.quote-tile:hover { transform: translateY(-3px); }
.quote-tile[aria-pressed="true"] {
  background: var(--burgundy);
  color: var(--cream);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--burgundy);
}
.quote-tile[aria-pressed="true"] i {
  background: rgba(240, 232, 224, 0.16);
  color: var(--cream);
}
.quote-tile[aria-pressed="true"] em { color: rgba(240, 232, 224, 0.72); }

.quote-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quote-pills button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.quote-pills button:hover { border-color: rgba(88, 16, 16, 0.28); }
.quote-pills button[aria-pressed="true"] {
  background: var(--burgundy);
  color: var(--cream);
}

.quote-member {
  display: grid;
  gap: 12px;
}
.quote-member label,
.quote-member__group {
  display: grid;
  gap: 6px;
}
.quote-member span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
}
.quote-member .quote-input {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 16px;
}

.quote-pass {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(42, 8, 10, 0.1);
}
.quote-pass__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--cream);
}
.quote-pass__head img { width: 36px; height: 36px; object-fit: contain; }
.quote-pass__head span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.quote-pass__body { padding: 20px 22px 22px; }
.quote-pass__name {
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.quote-pass__ramo {
  margin-top: 4px;
  color: var(--burgundy-soft);
  font-weight: 600;
}
.quote-pass dl {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.quote-pass dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-pass dd { font-weight: 600; }

.quote-dialog__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
}
.quote-dialog__err {
  flex: 1;
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 600;
  color: var(--burgundy);
}
.quote-dialog__go {
  margin-left: auto;
  gap: 10px;
  min-width: 168px;
}
.quote-dialog__go.is-wa {
  background: #128c7e;
}
.quote-dialog__go.is-wa:hover { background: #0e7368; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #4c1416 0%, var(--burgundy-deep) 42%, #2a0708 100%);
  color: var(--cream);
  text-align: center;
  padding: 48px 0;
}

.site-footer__logo { width: 68px; margin: 0 auto 16px; }
.site-footer p { opacity: .78; font-size: 14px; }

.site-footer__who {
  margin-top: 4px;
  opacity: .62 !important;
}
.site-footer__who a {
  color: inherit;
  border-bottom: 0;
}

.site-footer__reach {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 14px;
  font-style: normal;
}

.site-footer__reach a {
  font-size: 14px;
  color: rgba(240, 232, 224, 0.86);
  border-bottom: 1px solid rgba(240, 232, 224, 0.28);
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 14px 0 18px;
}

.site-footer__links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(240,232,224,.72);
  border-bottom: 1px solid rgba(240,232,224,.28);
  padding-bottom: 2px;
}

.site-footer__links a:hover {
  color: var(--cream);
  border-color: rgba(240,232,224,.7);
}

.site-footer small { opacity: .45; font-size: 12px; }

.wa-float {
  display: none;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 900;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  box-shadow: 0 10px 28px rgba(42, 6, 8, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .35s var(--ease);
}

.wa-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wa-float.is-ready {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.wa-float.is-hidden,
body.nav-open .wa-float {
  opacity: 0;
  pointer-events: none;
}

/* Legal page compatibility */
.legal-page .header,
.legal-page .site-header {
  background: rgba(61, 10, 12, .96);
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
}

.legal-page .header-inner,
.legal-page .container.header-inner {
  width: min(92%, var(--shell));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-back,
.legal-page .nav-cta {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 13px;
  font-weight: 600;
}

.legal-hero {
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(122,42,48,.45), transparent 55%),
    linear-gradient(160deg, var(--burgundy-deep), var(--burgundy) 55%, #4a0e12);
  color: var(--cream);
  padding: 120px 0 64px;
}

.legal-hero .container,
.legal-doc.container,
.legal-doc {
  width: min(92%, 820px);
  margin-inline: auto;
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 18px;
  color: var(--cream);
}

.legal-hero-sub,
.legal-page .eyebrow.cream {
  color: rgba(240,232,224,.78);
}

.legal-page .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.legal-doc { padding: 48px 0 88px; }

.legal-intro {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-toc a {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--burgundy);
  background: rgba(255,255,255,.45);
}

.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-section h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.legal-section h3 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 22px 0 10px;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.2em;
  margin-bottom: 14px;
}

.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li + li { margin-top: 8px; }

.legal-section a {
  color: var(--burgundy);
  border-bottom: 1px solid rgba(88,16,16,.28);
}

.legal-fundamento {
  font-size: 13px !important;
  font-style: normal;
  padding: 12px 16px;
  background: rgba(88,16,16,.05);
  border-left: 3px solid var(--burgundy-soft);
  margin-bottom: 18px !important;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0 24px;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.legal-table th {
  background: var(--burgundy);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.legal-table tbody tr:nth-child(even) {
  background: rgba(240,232,224,.45);
}

.legal-contact {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.legal-contact dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
}

.legal-contact dd { font-size: 15px; color: var(--ink); }

.legal-page .footer,
.legal-page .site-footer {
  background: linear-gradient(180deg, #4c1416 0%, var(--burgundy-deep) 42%, #2a0708 100%);
  color: var(--cream);
  text-align: center;
  padding: 48px 0;
}

.legal-page .footer-inner {
  width: min(92%, var(--shell));
  margin-inline: auto;
}

.legal-page .footer-logo { width: 68px; margin: 0 auto 16px; }
.legal-page .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin: 14px 0 18px;
}
.legal-page .footer-links a {
  color: rgba(240,232,224,.72);
  border-bottom: 1px solid rgba(240,232,224,.28);
  font-size: 13px;
}

.profile-hero h1 { max-width: 22ch; }
.profile {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.profile__intro {
  display: grid;
  gap: 28px;
}
.profile__photo {
  width: min(100%, 280px);
  justify-self: start;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
}
.profile__photo img {
  width: 100%;
  height: auto;
  display: block;
}
.profile__photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.profile__lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
}
.profile__lead + .profile__lead { margin-top: 14px; }
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.profile-facts {
  display: grid;
  gap: 12px;
}
.profile-facts article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.profile-facts h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.profile-facts p,
.profile-facts li {
  font-size: 15px;
  color: var(--muted);
}
.profile-facts ul {
  padding-left: 1.15em;
  display: grid;
  gap: 6px;
}
@media (min-width: 801px) {
  .profile__intro {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --header-h: clamp(52px, 8svh, 60px);
    --tab-h: calc(clamp(48px, 7svh, 56px) + 12px + env(safe-area-inset-bottom));
    --stage: calc(100svh - var(--tab-h));
    --logo: clamp(22px, 6.4vw, 34px);
  }

  .site-header {
    height: calc(var(--header-h) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .site-header__inner { height: var(--header-h); }
  .brand { gap: 10px; }
  .brand img { width: 32px; }
  .brand span { font-size: 16px; }

  #seguros,
  #companias,
  #asesoria,
  #cedula,
  #contacto {
    scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 12px);
  }

  .shell {
    width: min(calc(100% - clamp(32px, 9vw, 56px)), var(--shell));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 20px) 8% max(40px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(78, 18, 20, 0.98) 0%, rgba(49, 8, 10, 0.98) 100%);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow-y: auto;
  }

  .site-nav.is-open { display: flex; z-index: 1; }

  .site-nav a:not(.site-nav__cta) {
    font-size: 1.35rem;
    font-family: "Manrope", system-ui, sans-serif;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  .site-nav__cta {
    margin-top: 12px;
    min-height: 48px !important;
  }

  .hero {
    min-height: var(--stage);
    align-items: end;
  }

  .split__sticky .muted,
  .process-head .muted {
    display: none;
  }

  .hero__brand {
    display: block;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
    letter-spacing: 0.03em;
    margin-bottom: clamp(8px, 1.4svh, 12px);
    white-space: nowrap;
  }

  .hero__mark {
    width: clamp(64px, 18vw, 88px);
    margin-bottom: clamp(10px, 1.8svh, 16px);
  }

  .hero__content {
    width: min(calc(100% - clamp(32px, 9vw, 56px)), 720px);
    margin-left: auto;
    margin-right: auto;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + clamp(12px, 3svh, 28px)) 0 clamp(16px, 3.2svh, 36px);
  }

  .hero__place { margin-bottom: clamp(6px, 1.4svh, 12px); }

  .hero__lockup { margin-bottom: clamp(12px, 2.4svh, 22px); }

  .hero__title {
    max-width: none;
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1.65;
    white-space: normal;
  }

  .hero__actions { width: 100%; flex-direction: column; gap: clamp(8px, 1.6svh, 12px); }
  .hero__actions .btn {
    flex: none;
    width: 100%;
    min-height: clamp(46px, 6.4svh, 54px);
    padding: 0 16px;
    font-size: clamp(14px, 3.6vw, 16px);
  }
  .hero__actions .btn:active { transform: scale(0.98); }

  .block { padding: clamp(18px, 3.4svh, 40px) 0 clamp(14px, 2.6svh, 28px); }
  .block h2 { font-size: clamp(1.5rem, 3.2vw + 1svh, 2.15rem); margin-bottom: 0; }
  .kicker { margin-bottom: clamp(6px, 1.2svh, 10px); }
  .muted { font-size: clamp(0.92rem, 2.4vw + 0.4svh, 1.05rem); }

  .split { grid-template-columns: 1fr; gap: 16px; min-width: 0; }
  .split__sticky { position: static; }

  .rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(8px, 2.4vw, 14px);
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    padding: 2px 0 0;
  }

  .rail__item {
    width: auto;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    align-content: start;
    min-height: 0;
    padding: clamp(12px, 1.8svh, 16px) clamp(10px, 3vw, 14px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }

  .rail__item:last-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }
  .rail__item:hover { padding: 16px 14px 14px; background: #fff; }
  .rail__item:active { background: var(--cream-soft); }
  .rail__num { display: none; }

  .rail__icon {
    display: grid;
    place-items: center;
    width: clamp(34px, 9vw, 40px);
    height: clamp(34px, 9vw, 40px);
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(88, 16, 16, 0.07);
    color: var(--burgundy);
    font-size: clamp(14px, 3.6vw, 16px);
  }

  .rail__long {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .rail__short { display: inline; }

  .rail__body strong {
    position: relative;
    font-size: clamp(1.12rem, 4.4vw, 1.4rem);
    line-height: 1.05;
    margin-bottom: 2px;
  }

  .rail__body em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: clamp(0.75rem, 2.8vw, 0.88rem);
    line-height: 1.35;
  }

  .rail__go {
    grid-column: auto;
    opacity: 1;
    transform: none;
    margin-top: auto;
    font-size: 11px;
  }

  .rail__dots { display: none; }

  .rail__dots span {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(88, 16, 16, 0.22);
    transition: width .2s ease, background .2s ease;
  }

  .rail__dots span.is-on {
    width: 16px;
    background: var(--burgundy);
  }

  .logos-head { margin-bottom: clamp(8px, 1.6svh, 16px); }
  .block--logos { padding-bottom: 0; }

  .screen-pair {
    box-sizing: border-box;
    min-height: var(--stage);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(4px, 1svh, 12px);
    padding-top: calc(var(--header-h) + env(safe-area-inset-top));
    scroll-snap-align: none;
  }

  .screen-pair > .block {
    padding-top: clamp(10px, 1.8svh, 18px);
    padding-bottom: clamp(8px, 1.4svh, 14px);
  }

  .screen-pair > .block--process {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #companias,
  #asesoria {
    scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top));
  }
  .marquee {
    padding: clamp(6px, 1.2svh, 12px) 0 calc(var(--logo) * 0.85);
    margin-bottom: 0;
  }
  .marquee__track {
    padding: 2px 0;
    margin-bottom: 0;
    gap: clamp(16px, 5vw, 36px);
  }
  .marquee__track img { height: var(--logo); }
  .marquee__track img[src*="chubb"] { height: calc(var(--logo) * 0.47); }
  .marquee__track img[src*="mapfre"] { height: calc(var(--logo) * 0.56); }
  .marquee__track img[src*="afirme"] { height: calc(var(--logo) * 0.69); }
  .marquee__track img[src*="banorte"] { height: calc(var(--logo) * 0.75); }
  .marquee__track img[src*="universal"] { height: calc(var(--logo) * 0.81); }

  .process-head { margin-bottom: clamp(8px, 1.4svh, 14px); }
  .screen-pair .process-head h2 {
    font-size: clamp(1.28rem, 3.6vw + 0.4svh, 1.7rem);
    max-width: 18ch;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 0;
    padding: clamp(2px, 0.6svh, 6px) clamp(12px, 3.4vw, 16px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }

  .process li {
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: clamp(9px, 1.5svh, 14px) 0;
    border-top: 0;
  }

  .process li + li { border-top: 1px solid var(--line); }

  .process strong {
    font-size: clamp(1rem, 3.4vw, 1.15rem);
    width: clamp(28px, 8vw, 34px);
    text-align: center;
  }
  .process h3 { font-size: clamp(0.98rem, 3.2vw, 1.08rem); margin-bottom: 1px; }
  .process p {
    grid-column: 2;
    font-size: clamp(0.78rem, 2.6vw, 0.88rem);
    line-height: 1.3;
  }
  .process__cta {
    width: 100%;
    margin-top: clamp(10px, 1.8svh, 16px);
    min-height: clamp(44px, 6svh, 48px);
  }

  .credential {
    grid-template-columns: 1fr;
    gap: clamp(14px, 2.4svh, 22px);
    align-items: start;
  }

  .credential__photo {
    width: clamp(168px, 56vw, 240px);
    justify-self: center;
  }
  .credential__qr { width: 44px; height: 44px; right: 6px; bottom: 6px; padding: 3px; }
  .credential__photo figcaption { font-size: 0.82rem; line-height: 1.25; }
  .credential__copy .muted { font-size: 0.92rem; }
  .credential__seals { margin-top: 12px; gap: 8px 12px; }
  .credential__seals img { height: 30px; }
  .credential__seals img:nth-child(2) { height: calc(30px * 1.2); }
  .credential__copy .btn {
    margin-top: clamp(10px, 1.8svh, 16px);
    width: 100%;
    min-height: clamp(46px, 6svh, 52px);
    padding: 0 14px;
  }

  .contact { grid-template-columns: 1fr; gap: 12px; }
  .contact__copy h2 { margin-bottom: 0; }
  .contact__panel {
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
  }
  .contact__lead { margin-bottom: 14px; }
  .quote-launch { gap: 8px; }
  .quote-launch button { min-height: 48px; }
  .contact__wa { min-height: 52px; margin-top: 14px; }
  .contact__also { margin-top: 16px; padding-top: 14px; }
  .quote-dialog__body { padding: 22px 16px 14px; }
  .quote-tile { min-height: 104px; padding: 14px; }

  .site-footer {
    padding: clamp(20px, 3svh, 32px) 0 calc(var(--tab-h) + 16px);
  }
  .site-footer__logo { width: 52px; margin-bottom: 10px; }
  .wa-float { display: none; }

  .app-tab {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(42, 8, 10, 0.06);
  }

  .app-tab a {
    flex: 1;
    min-height: clamp(46px, 6.5svh, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--burgundy-soft);
    font-size: clamp(9px, 2.5vw, 11px);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
  }

  .app-tab i { font-size: clamp(15px, 4vw, 18px); }

  .app-tab a[aria-current="true"] { color: var(--burgundy); }

  body { padding-bottom: 0; }
  .legal-page .header-inner,
  .legal-page .container.header-inner { gap: 12px; }
  .legal-back { flex-shrink: 0; }
}

@media (max-width: 600px) {
  .site-footer__reach { flex-direction: column; gap: 10px; }
  .site-footer__reach a { overflow-wrap: anywhere; }
}

@media (hover: none) {
  .btn:hover { transform: none; }
  .rail__item:hover { background: #fff; }
  .marquee:hover .marquee__track img { opacity: 0.54; }
}

@media (min-width: 701px) {
  .quote-dialog[open] { align-items: center; padding: 24px; }
  .quote-dialog__shell {
    height: auto;
    max-height: 92vh;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(20, 4, 6, 0.35);
  }
  .quote-dialog__body {
    flex: 0 1 auto;
    min-height: 240px;
    max-height: calc(92vh - 148px);
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .hero,
  .block,
  .site-footer { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .block.is-in,
  .site-footer.is-in {
    animation: rise .7s var(--ease) both;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .block.is-in,
  .site-footer.is-in {
    animation-duration: .4s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Guías por ramo — no se usa en la home */
.guide-page { position: relative; isolation: isolate; }
.guide-veil {
  position: absolute;
  top: 0;
  right: 0;
  width: min(62vw, 780px);
  height: min(78vh, 740px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.guide-veil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(.97);
  opacity: .42;
}
.guide-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, #fbf8f4 0%, rgba(251,248,244,.9) 30%, rgba(247,242,237,.28) 62%, rgba(240,232,224,.22) 100%),
    linear-gradient(180deg, rgba(251,248,244,.08) 0%, rgba(243,235,228,.78) 100%);
}
.guide-page[data-ramo="gastos"] .guide-veil img { object-position: 78% 36%; }
.guide-page[data-ramo="vida"] .guide-veil img { object-position: 46% 42%; }
.guide-page[data-ramo="ppr"] .guide-veil img { object-position: 50% 62%; }
.guide-page[data-ramo="carga"] .guide-veil img { object-position: 48% 46%; }
.guide-page[data-ramo="casa"] .guide-veil img { object-position: 50% 38%; }
.guide-page[data-ramo="auto"] .guide-veil img { object-position: 28% 48%; }
.guide-page[data-ramo="viaje"] .guide-veil img { object-position: 50% 50%; }
.guide-plate {
  position: relative;
  width: min(100%, 820px);
  margin: 2.2em auto 2.4em;
  height: clamp(132px, 26vw, 220px);
  overflow: hidden;
  border-radius: 2px;
}
.guide-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(.98);
  opacity: 1;
}
.guide-plate::after { display: none; }
.guide-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, #f7f2ed 0%, transparent 7%, transparent 93%, #f7f2ed 100%),
    linear-gradient(180deg, #fbf8f4 0%, transparent 10%, transparent 90%, #f3ebe4 100%);
}
.guide-page[data-ramo="vida"] .guide-plate img {
  filter: saturate(.95) contrast(1);
  object-position: 50% 55%;
}
.guide-page[data-ramo="gastos"] .guide-plate img { object-position: 50% 42%; }
.guide-page[data-ramo="carga"] .guide-plate img { object-position: 50% 60%; }
.guide-page[data-ramo="casa"] .guide-plate img { object-position: 20% 40%; }
.guide-page[data-ramo="auto"] .guide-plate img { object-position: 50% 40%; }
.guide-page[data-ramo="viaje"] .guide-plate img { object-position: 50% 60%; }
.guide-page .guide-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 64px)) 0 8px;
  background: transparent;
  color: var(--ink);
}
.guide-page .guide-hero .container,
.guide-page .guide-doc,
.guide-page .guide-end {
  position: relative;
  z-index: 1;
  width: min(92%, 720px);
  margin-inline: auto;
}
.guide-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
}
.guide-crumb a { color: var(--burgundy-soft); }
.guide-crumb [aria-current="page"] { color: var(--ink); }
.guide-page .guide-hero h1 {
  font-size: clamp(2.15rem, 6vw, 3.7rem);
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.guide-deck {
  margin-top: 22px;
  max-width: 38ch;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
}
.guide-doc {
  padding: 36px 0 24px;
}
.guide-doc p {
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 62ch;
}
.guide-doc p + p { margin-top: 1.15em; }
.guide-page .guide-doc h2 {
  font-size: clamp(1.28rem, 2.5vw, 1.62rem);
  max-width: 26ch;
  margin: 2.5em 0 .75em;
  letter-spacing: -0.035em;
}
.guide-advise {
  margin: 48px 0 12px;
  padding: clamp(28px, 5vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 70% at 10% 0%, rgba(122,42,48,.4), transparent 55%),
    linear-gradient(160deg, var(--burgundy-deep), var(--burgundy) 58%, #4a0e12);
  color: var(--cream);
}
.guide-advise .kicker { color: rgba(240,232,224,.7); }
.guide-page .guide-advise h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  max-width: 18ch;
  margin: 0 0 12px;
  color: var(--cream);
}
.guide-advise p {
  max-width: 42ch;
  color: rgba(240,232,224,.82);
  font-size: 1rem;
}
.guide-advise__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.guide-related {
  padding: 28px 0 8px;
}
.guide-related h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.guide-related ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.guide-related a {
  display: inline-flex;
  color: var(--burgundy);
  border-bottom: 1px solid rgba(88,16,16,.22);
  font-weight: 600;
  font-size: 15px;
}
.guide-faq {
  padding: 28px 0 80px;
}
.guide-page .guide-faq h2,
.profile-faq h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-bottom: 18px;
}
.guide-faq details,
.profile-faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.guide-faq details:last-child,
.profile-faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.guide-faq summary,
.profile-faq summary {
  cursor: pointer;
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  list-style: none;
  color: var(--ink);
}
.guide-faq summary::-webkit-details-marker,
.profile-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after,
.profile-faq summary::after {
  content: "+";
  float: right;
  color: var(--burgundy-soft);
  font-weight: 500;
}
.guide-faq details[open] summary::after,
.profile-faq details[open] summary::after { content: "–"; }
.guide-faq details p,
.profile-faq details p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 62ch;
}
.profile-faq { margin-top: 12px; }
.profile-facts a {
  color: var(--burgundy);
  border-bottom: 1px solid rgba(88,16,16,.2);
}
@media (max-width: 600px) {
  .guide-page .guide-hero h1 { max-width: 12ch; }
  .guide-advise__actions .btn { width: 100%; }
  .guide-veil {
    width: 100%;
    height: 46vh;
  }
  .guide-veil img { opacity: .22; }
  .guide-plate { height: 148px; margin-inline: 0; }
}
