/* Nosotros v8 (2 dic 2026): sin fotos de Ma. Luisa hasta el 5 dic; "Así es trabajar conmigo" como recorrido fijo.
   Antes v7. Lenguaje de Inicio v7: Archivo ancha en mayúsculas, fondos sólidos con degradado,
   una pantalla por sección, línea de tiempo interactiva. Respaldo v4: scratchpad/backup-nos-con-v4. */

/* ---------- Hero (bosque) ---------- */
.n7 { background: var(--g-bosque6); color: var(--crema); padding: calc(var(--nav-h) + clamp(28px, 5vh, 72px)) 0 clamp(48px, 7vh, 88px); overflow: hidden; }
@media (min-width: 960px) { .n7 { min-height: min(100svh, 980px); display: flex; align-items: center; } }
.n7__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; }
@media (min-width: 960px) { .n7__grid { grid-template-columns: 1.15fr .85fr; } }
.n7__crumbs ol { list-style: none; margin: 0 0 clamp(16px, 3vh, 32px); padding: 0; display: flex; gap: 8px; font-size: .92rem; color: var(--crema-60); }
.n7__crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.n7__crumbs a { color: inherit; text-decoration: none; display: inline-block; padding: 10px 0; }
.n7__crumbs a:hover { color: var(--crema); text-decoration: underline; text-underline-offset: 4px; }
.n7__crumbs [aria-current] { display: inline-block; padding: 10px 0; color: var(--crema); }
.n7__t { margin: 0; }
main h1.n7__t { font-size: inherit !important; line-height: .9 !important; }
.n7__t1 { display: block; font-size: clamp(1.5rem, .9rem + 2.4vw, 3.1rem); }
.n7__t2 { display: block; font-size: clamp(3.6rem, 1.4rem + 9vw, 10rem); font-weight: 900; line-height: .86; letter-spacing: -.03em; color: var(--ocre-claro); margin-top: .04em; }
.n7__lead { font-size: var(--t-lead); color: var(--crema-80); margin: clamp(20px, 3vh, 32px) 0 28px; max-width: 46ch; }
.n7__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.n7__photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: #3c4a2a; aspect-ratio: 4 / 5; }
@media (min-width: 960px) { .n7__photo { aspect-ratio: auto; height: clamp(420px, calc(100svh - 200px), 700px); } }
.n7__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@media (max-width: 959px) { .n7__photo { max-height: 72svh; } }

/* Hero sin foto (CON_FOTO = false en _src/pages/nosotros.js): bodegón a sangre detrás del texto.
   La pared verde queda arriba para el titular y el escritorio con los objetos abajo a la derecha. */
.n7--obj { isolation: isolate; background: #24321b; }
.n7--obj:not(.stk) { position: relative; } /* con .stk (main.js) ya es sticky */
.n7__bg { position: absolute; inset: 0; z-index: -1; margin: 0; }
.n7__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 96% 100%; }
.n7--obj .n7__grid { grid-template-columns: minmax(0, 1fr); }
.n7--obj .n7__copy { max-width: 1120px; }
.n7--obj .n7__lead { max-width: 44ch; }
@media (min-width: 960px) {
  .n7--obj { align-items: flex-start; padding-top: calc(var(--nav-h) + clamp(28px, 7vh, 96px)); }
  .n7--obj .n7__bg img { object-position: 70% 100%; }
}
@media (max-width: 959px) {
  .n7--obj { min-height: 100svh; padding-bottom: clamp(240px, 44svh, 400px); }
}

/* ---------- Mi historia: línea de tiempo (noche) ---------- */
.tl { background: var(--g-noche); color: var(--crema); padding: clamp(56px, 7vh, 80px) 0; }
.tl:not(.stk) { position: relative; }
@media (min-width: 960px) { .tl { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
.tl__anchor { position: absolute; top: 0; }
.tl__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: clamp(24px, 4vh, 44px); }
.tl__nav { display: flex; align-items: center; gap: 12px; }
.tl__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); }
.tl__arr svg { width: 20px; height: 20px; }
.tl__arr--l svg { transform: scaleX(-1); }
.tl__arr:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .tl__arr:not(:disabled):hover { background: var(--crema); color: var(--bosque); } }
.tl__count { margin: 0; min-width: 4.2em; text-align: center; color: var(--crema-60); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl__count strong { color: var(--crema); font-family: var(--fd); font-size: 1.2rem; }

.tl__track { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-bottom: clamp(28px, 5vh, 56px); }
.tl__track::before, .tl__fill { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: rgba(255, 252, 245, .2); }
.tl__fill { background: var(--ocre-claro); right: auto; width: calc(var(--p, 0) * (100% - 100% / var(--n)) + 100% / var(--n) / 2); transition: width var(--dur-6) var(--ease-enter); }
.tl__stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 8px 8px 0; border: 0; background: transparent; color: var(--crema-60); font: 700 clamp(.82rem, .7rem + .4vw, 1rem)/1.15 var(--fd); font-stretch: 112%; text-transform: uppercase; letter-spacing: .01em; text-align: left; cursor: pointer; min-height: 44px; transition: color var(--dur-3); }
.tl__dot { width: 20px; height: 20px; border-radius: 50%; background: #1a2210; border: 2px solid rgba(255, 252, 245, .35); transition: background var(--dur-4), border-color var(--dur-4), transform var(--dur-4) var(--ease-enter); }
.tl__stop.is-past .tl__dot { background: var(--ocre-claro); border-color: var(--ocre-claro); }
.tl__stop.is-on { color: var(--crema); }
.tl__stop.is-on .tl__dot { background: var(--ocre-claro); border-color: var(--crema); transform: scale(1.25); }
.tl__stop:focus-visible, .tl__arr:focus-visible { outline: 3px solid var(--ocre-claro); outline-offset: 3px; border-radius: 8px; }
@media (hover: hover) { .tl__stop:hover { color: var(--crema); } }
/* el primer y último hito se alinean a los bordes */
.tl__track .tl__stop { align-items: center; text-align: center; padding-right: 0; }
.tl__track::before { left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); }
.tl__fill { left: calc(100% / var(--n) / 2); width: calc(var(--p, 0) * (100% - 100% / var(--n))); }

.tl__stage { display: grid; }
.tl__ch { grid-area: 1 / 1; display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.tl__ch[hidden] { display: none; }
@media (min-width: 960px) { .tl__ch { grid-template-columns: 1fr 1fr; } }
.tl__big { margin: 0 0 clamp(12px, 2vh, 20px); font-family: var(--fd); font-stretch: 118%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 1.2rem + 5vw, 5.8rem); line-height: .86; letter-spacing: -.03em; color: var(--ocre-claro); }
.tl__text { margin: 0 0 14px; font-family: var(--f); font-stretch: 100%; text-transform: none; font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em; max-width: 26ch; color: var(--crema); }
.tl__sub { margin: 0; font-size: var(--t-lead); color: var(--crema-80); max-width: 40ch; }
.tl__img { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: #1f2913; aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .tl__img { aspect-ratio: auto; height: clamp(300px, calc(100svh - 400px), 480px); } }
.tl__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tl__img img[src*="nos-raices"] { object-position: 75% 50%; }
.tl__img img[src*="nos-agenda"] { object-position: 62% 50%; }
.tl__img img[src*="nos-tarjetero"] { object-position: 72% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .tl__ch.is-on .tl__img img { animation: tli 520ms var(--ease-enter) both; }
  .tl__ch.is-on .tl__copy > * { animation: tlt 460ms var(--ease-enter) both; }
  .tl__ch.is-on .tl__copy > :nth-child(2) { animation-delay: 50ms; }
  .tl__ch.is-on .tl__copy > :nth-child(3) { animation-delay: 100ms; }
}
@keyframes tli { from { transform: scale(1.05); opacity: .2; } }
@keyframes tlt { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 640px) {
  .tl__stop { font-size: .74rem; }
  .tl__top { flex-direction: column; align-items: stretch; }
  .tl__nav { justify-content: space-between; }
}

/* ---------- Así es trabajar conmigo v8: recorrido fijo (arena) ----------
   Sin JS (o pantallas muy bajitas) se ve como lista. Con JS (.is-live) la sección mide ~4 pantallas,
   el contenido se queda fijo y cada tramo de scroll cambia el paso y la escena (.st[data-s]). */
.w8 { position: relative; background: var(--g-arena6); color: var(--tinta); }
.w8__pin { padding: clamp(64px, 9vh, 110px) 0; }
.w8__grid { display: grid; gap: clamp(16px, 2.4vh, 28px); }
.w8__t { color: var(--bosque); max-width: 16ch; }
.w8__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.w8__step h3 { margin: 0 0 10px; font-family: var(--fd); font-stretch: 118%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.1rem, 1.1rem + 3.4vw, 4.6rem); line-height: .9; letter-spacing: -.025em; color: var(--bosque); text-wrap: balance; }
.w8__step:nth-child(2) h3 { color: #1c2412; }
.w8__step:nth-child(3) h3 { color: var(--ocre-txt); }
.w8__step:nth-child(4) h3 { color: #4a5230; }
.w8__step p { margin: 0; font-size: var(--t-lead); line-height: 1.45; color: var(--tinta-2); max-width: 34ch; }
.w8__bar { display: none; }
.w8__note { margin: 0; color: var(--tinta-2); font-size: .95rem; }
.st { display: none; }

/* --- Modo recorrido --- */
.w8.is-live { height: 330svh; }
.w8.is-live .w8__pin { position: sticky; top: 0; height: 100svh; padding: calc(var(--nav-h) + 8px) 0 clamp(14px, 3vh, 36px); display: flex; overflow: hidden; }
.w8.is-live .w8__grid { width: 100%; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "t" "st" "steps" "foot"; }
.w8.is-live .w8__t { grid-area: t; }
.w8.is-live .w8__steps { grid-area: steps; display: grid; gap: 0; }
.w8.is-live .w8__step { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); pointer-events: none; transition: opacity var(--dur-4) var(--ease-std), transform var(--dur-6) var(--ease-enter); }
.w8.is-live .w8__step.is-past { transform: translateY(-26px); }
.w8.is-live .w8__step.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 90ms; }
.w8.is-live .w8__foot { grid-area: foot; }
.w8.is-live .w8__bar { display: flex; gap: 8px; margin: -6px 0 4px; max-width: 420px; }
.w8__bar button { flex: 1; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; border-radius: 8px; }
.w8__bar span { position: relative; display: block; width: 100%; height: 4px; border-radius: 99px; background: rgba(41, 53, 26, .16); overflow: hidden; }
.w8__bar span::after { content: ""; position: absolute; inset: 0; background: var(--bosque); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
.w8__bar button:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
@media (hover: hover) { .w8__bar button:hover span { background: rgba(41, 53, 26, .3); } }
.w8.is-live .st { display: block; grid-area: st; }
@media (min-width: 960px) {
  .w8.is-live .w8__pin { align-items: center; padding-top: calc(var(--nav-h) + 16px); }
  .w8.is-live .w8__grid { height: min(100%, 720px); grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); column-gap: clamp(40px, 6vw, 104px); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "t st" "steps st" "foot st"; }
  .w8.is-live .w8__steps { align-self: center; }
}
@media (max-width: 959px) {
  .w8.is-live .w8__step h3 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); margin-bottom: 8px; }
  .w8.is-live .w8__step p { font-size: 1rem; }
  .w8.is-live .w8__t { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); }
  .w8.is-live .w8__note { font-size: .86rem; padding-right: 76px; }
}

/* --- Escena: una póliza que escucha, se compara, se aclara y te acompaña --- */
.st { position: relative; min-height: 190px; border-radius: var(--r-xl); overflow: hidden; container-type: size; isolation: isolate; }
.st__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-6) var(--ease-std); }
.st__bg--0 { background: var(--g-bosque6); opacity: 1; }
.st__bg--1 { background: var(--g-noche); }
.st__bg--2 { background: var(--g-ocre6); }
.st__bg--3 { background: var(--g-olivo); }
.st[data-s="1"] .st__bg--1, .st[data-s="2"] .st__bg--2, .st[data-s="3"] .st__bg--3 { opacity: 1; }

/* hoja */
.st__sheet { position: absolute; left: 50%; top: 50%; width: 50cqmin; height: 66cqmin; margin: -33cqmin 0 0 -25cqmin; padding: 6.5cqmin 5.5cqmin; display: flex; flex-direction: column; gap: 2.5cqmin; background: var(--crema); border-radius: 3.4cqmin; box-shadow: 0 5cqmin 9cqmin -4cqmin rgba(0, 0, 0, .5); transform: translate(13cqmin, 11cqmin) rotate(4deg); transition: transform 820ms var(--ease-enter), opacity var(--dur-5) var(--ease-std); }
.st__head { flex: none; width: 56%; height: 3.4cqmin; margin-bottom: 1.6cqmin; border-radius: 99px; background: var(--bosque); }
.st__l { flex: none; height: 1.7cqmin; border-radius: 99px; background: rgba(28, 36, 18, .15); transition: opacity var(--dur-5) var(--ease-std); }
.st__l--s { width: 60%; }
.st__l--m { width: 82%; }
.st__term { position: relative; isolation: isolate; align-self: flex-start; margin-left: -1.3cqmin; padding: .9cqmin 1.3cqmin .7cqmin; font: 800 clamp(11px, 3.5cqmin, 21px)/1 var(--fd); font-stretch: 112%; text-transform: uppercase; color: var(--bosque); opacity: 0; transition: opacity var(--dur-4) var(--ease-std); }
.st__term b { font-weight: inherit; }
.st__term::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 1.2cqmin; background: var(--ocre-claro); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-6) var(--ease-enter); }
.st[data-s="0"] .st__l { opacity: .55; }
.st[data-s="1"] .st__sheet { opacity: 0; transform: translateY(4cqmin) scale(.55); }
.st[data-s="2"] .st__sheet { transform: scale(1.06); }
.st[data-s="3"] .st__sheet { transform: translate(-17cqmin, 3cqmin) rotate(-5deg) scale(.86); }
.st[data-s="2"] .st__term, .st[data-s="3"] .st__term { opacity: 1; }
.st[data-s="2"] .st__term::before, .st[data-s="3"] .st__term::before { transform: scaleX(1); }
.st[data-s="2"] .st__term:nth-of-type(2) { transition-delay: 120ms; }
.st[data-s="2"] .st__term:nth-of-type(2)::before { transition-delay: 300ms; }
.st[data-s="2"] .st__term:nth-of-type(3) { transition-delay: 240ms; }
.st[data-s="2"] .st__term:nth-of-type(3)::before { transition-delay: 460ms; }
.st[data-s="2"] .st__term:nth-of-type(1)::before { transition-delay: 140ms; }

/* conversación */
.st__chat { position: absolute; left: 7cqmin; top: 8cqmin; z-index: 2; width: 66cqmin; display: flex; flex-direction: column; align-items: flex-start; gap: 2.6cqmin; }
.st__msg { padding: 2.6cqmin 3.8cqmin; border-radius: 4.4cqmin 4.4cqmin 4.4cqmin 1.2cqmin; background: var(--crema); color: var(--tinta); font: 650 clamp(12px, 3.9cqmin, 22px)/1.25 var(--f); box-shadow: 0 3cqmin 6cqmin -3cqmin rgba(0, 0, 0, .45); opacity: 0; transform: translateY(5cqmin) scale(.94); transform-origin: 0 100%; transition: transform var(--dur-6) var(--ease-enter), opacity var(--dur-4) var(--ease-std); }
.st__msg + .st__msg { margin-left: 7cqmin; background: var(--ocre-claro); color: #2a1d0b; }
.st[data-s="0"] .st__msg { opacity: 1; transform: none; transition-delay: 120ms; }
.st[data-s="0"] .st__msg + .st__msg { transition-delay: 420ms; }

/* seis aseguradoras */
.st__card { position: absolute; left: 50%; top: 50%; width: 29cqmin; height: 19cqmin; margin: -9.5cqmin 0 0 -14.5cqmin; padding: 3.6cqmin; display: grid; place-items: center; background: #fff; border-radius: 2.8cqmin; box-shadow: 0 3cqmin 6cqmin -3cqmin rgba(0, 0, 0, .55); opacity: 0; transform: scale(.4); transition: transform 760ms var(--ease-enter) calc(var(--i) * 50ms), opacity var(--dur-4) var(--ease-std) calc(var(--i) * 50ms); }
.st__card img { width: auto; height: auto; max-width: 100%; max-height: 10cqmin; object-fit: contain; }
.st[data-s="1"] .st__card { opacity: 1; transform: translate(calc((var(--c) - 1) * 31cqmin), calc((var(--r) - .5) * 22cqmin)); }

/* te acompaño */
.st__follow { position: absolute; right: 6cqmin; top: 50%; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 2.8cqmin; transform: translateY(-50%); }
.st__chip { display: inline-flex; align-items: center; gap: 2.2cqmin; padding: 1.6cqmin 3.8cqmin 1.6cqmin 1.6cqmin; border-radius: 99px; background: var(--crema); color: var(--bosque); font: 800 clamp(11px, 3.4cqmin, 20px)/1 var(--fd); font-stretch: 112%; text-transform: uppercase; box-shadow: 0 3cqmin 6cqmin -3cqmin rgba(0, 0, 0, .5); opacity: 0; transform: translateX(10cqmin); transition: transform var(--dur-6) var(--ease-enter), opacity var(--dur-4) var(--ease-std); }
.st__chip svg { flex: none; width: 7.4cqmin; height: 7.4cqmin; padding: 1.6cqmin; border-radius: 50%; background: var(--bosque); color: var(--crema); }
.st__chip:nth-child(2) { margin-right: 5cqmin; }
.st[data-s="3"] .st__chip { opacity: 1; transform: none; transition-delay: 160ms; }
.st[data-s="3"] .st__chip:nth-child(2) { transition-delay: 300ms; }
.st[data-s="3"] .st__chip:nth-child(3) { transition-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  .w8 *, .w8 *::before { transition-duration: 1ms !important; transition-delay: 0s !important; }
}

/* ---------- Verifica en la CNSF (ocre) ---------- */
.v7 { background: var(--g-ocre6); color: var(--bosque); padding: clamp(64px, 9vh, 110px) 0; }
@media (min-width: 960px) { .v7 { min-height: min(100svh, 860px); display: flex; align-items: center; } .v7 > .wrap { width: 100%; } }
.v7__grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 960px) { .v7__grid { grid-template-columns: 1.05fr .95fr; } }
.v7 .dx { color: var(--bosque); max-width: 15ch; }
.v7__lead { font-size: var(--t-lead); margin: 22px 0 28px; max-width: 40ch; color: #3a2a12; }
.v7__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.v7__link { color: var(--bosque); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; min-height: 44px; display: inline-flex; align-items: center; }
.v7__note { margin: 22px 0 0; font-size: .95rem; color: #4a3417; max-width: 46ch; }
.v7__name { background: var(--g-noche); color: var(--crema); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 52px); }
.v7__lbl { margin: 0 0 12px; color: var(--crema-60); font-size: .92rem; font-weight: 600; }
.v7__agent { margin: 0 0 clamp(24px, 4vh, 36px); font-family: var(--fd); font-stretch: 118%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); line-height: .95; letter-spacing: -.015em; overflow-wrap: anywhere; }
.v7__copybtn { min-height: 48px; padding: 0 24px; border-radius: 99px; border: 1.5px solid rgba(255, 252, 245, .4); background: transparent; color: var(--crema); font: 750 .9rem var(--fd); font-stretch: 110%; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: background var(--dur-3), color var(--dur-3); }
.v7__copybtn.is-done { background: var(--ocre-claro); border-color: var(--ocre-claro); color: var(--bosque); }
.v7__copybtn:focus-visible { outline: 3px solid var(--ocre-claro); outline-offset: 3px; }
@media (hover: hover) { .v7__copybtn:not(.is-done):hover { background: var(--crema); color: var(--bosque); } }

/* ---------- Cierre (noche) ---------- */
.e7 { background: var(--g-bosque6); color: var(--crema); padding: clamp(80px, 12vh, 140px) 0; }
.e7__in { display: grid; justify-items: start; }
main h2.e7__t { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 5.6rem) !important; line-height: .9 !important; max-width: 14ch; margin: 0; }
.e7__lead { font-size: var(--t-lead); color: var(--crema-80); margin: 24px 0 30px; max-width: 42ch; }
@media (max-width: 479px) { .n7__actions .pill { width: 100%; justify-content: space-between; } }
