/* Inicio v6 (2 dic 2026). Display ancha en mayúsculas, fondos sólidos con degradado sutil,
   barras geométricas, selector de seguros tipo "flota". Respaldo v5 en scratchpad/backup-v5. */

/* ---------- Hero v9: bodegón de carpetas a sangre + logos al pie ---------- */
.h9 { position: relative; overflow: hidden; background: #2c3019; color: var(--crema); display: flex; flex-direction: column; min-height: min(100svh, 940px); padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 88px)); }
.h9__img { position: absolute; inset: 0 0 0 30%; z-index: 0; }
.h9__img img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.h9__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #2c3019 0%, rgba(44, 48, 25, .6) 14%, rgba(44, 48, 25, 0) 34%), linear-gradient(0deg, #262a15 0%, rgba(38, 42, 21, 0) 26%); }
.h9__in { position: relative; z-index: 2; width: 100%; }
.h9__who { margin: 0 0 18px; font-size: 1rem; font-weight: 600; color: var(--ocre-claro); }
.h9__t { font-family: var(--fd); font-stretch: 112%; font-weight: 800; margin: 0; max-width: 13ch; font-size: clamp(1.9rem, 1rem + 3.4vw, 4.1rem) !important; line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.h9__lead { font-size: var(--t-lead); color: var(--crema-80); margin: clamp(18px, 2.6vh, 28px) 0 clamp(24px, 3.4vh, 36px); max-width: 40ch; }
.h9 .lx { position: relative; z-index: 2; margin-top: auto; }
.h6__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.h6__fine { margin: 18px 0 0; font-size: .92rem; color: var(--crema-60); font-weight: 500; }
@media (max-width: 999px) {
  .h9 { padding-top: calc(var(--nav-h) + 20px); }
  .h9__img { inset: auto -24% 70px 0; height: 40%; }
  .h9__img img { object-position: 70% 60%; }
  .h9__img::after { background: linear-gradient(180deg, #2c3019 0%, rgba(44, 48, 25, 0) 40%), linear-gradient(0deg, #262a15 0%, rgba(38, 42, 21, 0) 30%); }
  .h9__in { padding-bottom: 46vw; }
}
@media (max-width: 600px) {
  .h9__who { margin-bottom: 12px; font-size: .92rem; }
  .h9__lead { margin: 14px 0 20px; }
  .h6__fine { display: none; }
  .h9__in { padding-bottom: 52vw; }
  .h9__img { height: 34%; }
  .h9 .h6__actions .pill { min-height: 48px; }
}

/* Logos dentro del hero: claros sobre oscuro, sin banda */
.lx--dark { background: transparent; border: 0; padding: clamp(14px, 2.4vh, 26px) 0; }
.lx--dark .lx__t { color: var(--crema-60); }
.lx--dark .lx__t span { color: var(--crema); }
.lx--dark .lx__row img { filter: none; opacity: .72; }
.lx--dark .lx__row a:hover img, .lx--dark .lx__row a:focus-visible img { opacity: 1; }

/* ---------- Selector de seguros (v7: regla y flechas arriba; cabe en 1440x900) ---------- */
.sx { background: var(--g-noche); color: var(--crema); padding: clamp(48px, 6vh, 72px) 0 clamp(40px, 5vh, 64px); }
@media (min-width: 900px) { .sx { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
.sx__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: clamp(16px, 2.6vh, 28px); }
.sx__top .dx { margin: 0; }
.sx__tick:focus-visible, .sx__arr:focus-visible { outline: 3px solid var(--ocre-claro); outline-offset: 2px; }

.sx__bar { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(20px, 3.4vh, 36px); }
.sx__ruler { flex: 1; min-width: 0; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-bottom: 12px;
  background: repeating-linear-gradient(90deg, rgba(255, 252, 245, .3) 0 1px, transparent 1px 14px) bottom / 100% 8px no-repeat; border-bottom: 1px solid rgba(255, 252, 245, .3); }
.sx__tick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px 10px; border: 0; background: transparent; color: var(--crema-60); cursor: pointer; font-weight: 600; font-size: .88rem; line-height: 1.15; text-align: center; position: relative; transition: color var(--dur-3), opacity var(--dur-3); }
.sx__ic { width: 28px; height: 28px; transition: transform var(--dur-4) var(--ease-enter), color var(--dur-3); }
.sx__tick::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -13px; height: 4px; border-radius: 4px; background: var(--ocre-claro); transform: scaleX(0); transition: transform var(--dur-4) var(--ease-enter); }
.sx__tick.is-on { color: var(--crema); }
.sx__tick.is-on .sx__ic { transform: translateY(-3px) scale(1.12); color: var(--ocre-claro); }
.sx__tick.is-on::after { transform: scaleX(1); }
@media (hover: hover) { .sx__tick:hover { color: var(--crema); } }
.sx__nav { display: flex; align-items: center; gap: 12px; flex: none; }
.sx__arr { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 252, 245, .35); background: transparent; color: var(--crema); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-3), color var(--dur-3); }
.sx__arr svg { width: 20px; height: 20px; }
.sx__arr-l { transform: scaleX(-1); }
@media (hover: hover) { .sx__arr:hover { background: var(--crema); color: var(--bosque); } }
.sx__count { margin: 0; min-width: 4.2em; text-align: center; color: var(--crema-60); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx__count strong { color: var(--crema); font-family: var(--fd); font-size: 1.2rem; }

.sx__stage { display: grid; }
.sx__card { grid-area: 1 / 1; display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; }
.sx__card[hidden] { display: none; }
@media (min-width: 900px) { .sx__card { grid-template-columns: 1.1fr 1fr; } }
.sx__img { border-radius: var(--r-xl); overflow: hidden; background: #f3ecdc; aspect-ratio: 3 / 2; }
@media (min-width: 900px) { .sx__img { aspect-ratio: auto; height: clamp(300px, calc(100svh - 400px), 470px); } }
.sx__img img { width: 100%; height: 100%; object-fit: cover; }
.sx__info { max-width: 520px; }
.sx__name { font-family: var(--fd); font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 clamp(16px, 2.4vh, 24px); }
.sx__short { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.3; font-weight: 600; color: var(--crema); margin: 0 0 14px; max-width: 26ch; }
.sx__para { color: var(--crema-80); margin: 0 0 clamp(18px, 2.6vh, 26px); max-width: 44ch; }
.sx__price { margin: 0 0 clamp(22px, 3.2vh, 32px); padding-top: 16px; border-top: 1px solid var(--linea-clara); color: var(--crema-60); font-size: .95rem; max-width: 46ch; }
.sx__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.sx__more { color: var(--crema); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--ocre-claro); min-height: 44px; display: inline-flex; align-items: center; }
.sx__more--dark { color: var(--bosque); text-decoration-color: var(--ocre); }
@media (prefers-reduced-motion: no-preference) {
  .sx__card.is-on .sx__img img { animation: sxi 460ms var(--ease-enter) both; }
  .sx__card.is-on .sx__info > * { animation: sxt 420ms var(--ease-enter) both; }
  .sx__card.is-on .sx__info > :nth-child(2) { animation-delay: 40ms; }
  .sx__card.is-on .sx__info > :nth-child(3) { animation-delay: 80ms; }
  .sx__card.is-on .sx__info > :nth-child(4) { animation-delay: 120ms; }
}
@keyframes sxi { from { transform: scale(1.04); opacity: .2; } }
@keyframes sxt { from { transform: translateY(10px); opacity: 0; } }
@media (max-width: 700px) {
  .sx__bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .sx__ruler { grid-template-columns: repeat(7, 88px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); background-size: 680px 8px; background-position: left var(--gutter) bottom; }
  .sx__ruler::-webkit-scrollbar { display: none; }
  .sx__tick { scroll-snap-align: start; }
  .sx__nav { justify-content: space-between; }
}

/* ---------- Ma. Luisa v9: composición tipográfica con las cifras; slot de foto (.mx9--foto) ---------- */
.mx9 { background: var(--crema); color: var(--bosque); padding: clamp(72px, 10vh, 128px) 0; }
.mx9__grid { display: grid; gap: clamp(40px, 6vh, 72px); }
.mx9__copy { max-width: 620px; }
.mx9__copy .dx { margin: 0; }
.mx9__lead { font-size: var(--t-lead); color: var(--tinta-2); margin: 20px 0 22px; max-width: 46ch; }
.mx9__facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--bosque); }
.mx9__facts div { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 3vh, 32px) clamp(12px, 2vw, 32px) 0 0; }
.mx9__facts div + div { padding-left: clamp(12px, 2vw, 32px); border-left: 1px solid var(--linea); }
.mx9__facts dd { order: -1; margin: 0; font-family: var(--fd); font-stretch: 118%; font-weight: 900; font-size: clamp(3.4rem, 1rem + 9vw, 10rem); line-height: .82; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.mx9__facts div:nth-child(2) dd { color: var(--ocre-txt); }
.mx9__facts dt { font-size: clamp(.85rem, .8rem + .3vw, 1.05rem); font-weight: 500; line-height: 1.3; color: var(--tinta-2); max-width: 18ch; }
.mx9__photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: #e9dfca; aspect-ratio: 4 / 5; }
.mx9__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (min-width: 900px) {
  .mx9--foto .mx9__grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .mx9--foto .mx9__photo { grid-row: 1 / 3; grid-column: 2; }
  .mx9--foto .mx9__facts dd { font-size: clamp(3rem, 1rem + 5vw, 6rem); }
}

/* ---------- Empresas (v7: bodegón sobre ocre, sin caja) ---------- */
.bz6 { position: relative; background: var(--g-ocre6); color: var(--bosque); padding: clamp(72px, 9vw, 130px) 0; overflow: hidden; }
.bz6__grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.bz6__copy { position: relative; z-index: 2; }
.bz6__lead { font-size: var(--t-lead); margin: 20px 0 30px; max-width: 40ch; color: #3a2a12; }
.bz6__img { margin: 0 calc(var(--gutter) * -1) calc(clamp(72px, 9vw, 130px) * -1); }
.bz6__img img { display: block; width: 100%; height: auto; -webkit-mask: linear-gradient(180deg, #0000 0%, #000 22%); mask: linear-gradient(180deg, #0000 0%, #000 22%); }
@media (min-width: 900px) {
  .bz6 { min-height: min(760px, 90svh); display: flex; align-items: center; }
  .bz6__grid { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bz6__img { position: absolute; inset: 0 0 0 auto; width: 62%; margin: 0; z-index: 1; }
  .bz6__img img { height: 100%; object-fit: cover; object-position: 70% 60%; -webkit-mask: linear-gradient(90deg, #0000 0%, #000 34%); mask: linear-gradient(90deg, #0000 0%, #000 34%); }
}
.bz6 .sx__more--dark { text-decoration-color: var(--bosque); }

/* ---------- Cierre con mapa de México ---------- */
.en6 { background: var(--g-noche); color: var(--crema); padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.en6__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .en6__grid { grid-template-columns: .8fr 1.2fr; } }
.en6__lead { font-size: var(--t-lead); color: var(--crema-80); margin: 22px 0 30px; max-width: 40ch; }
.en6__map { width: 100%; justify-self: center; }
@media (min-width: 900px) {
  .mx9:not(.mx9--foto) .mx9__copy { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: clamp(40px, 6vw, 96px); align-items: end; }
  .mx9:not(.mx9--foto) .mx9__copy .dx { grid-row: 1 / 3; }
  .mx9:not(.mx9--foto) .mx9__lead { margin: 0 0 14px; }
  .mx9:not(.mx9--foto) .sx__more { justify-self: start; }
}
