/* Inicio v2 — borrador "tecnológico" dentro del Brand Book Z&A 2026 v2.
   Rellenos planos, Archivo, vino como acento (≤20 %), bordes de 1 px y sombras neutras. */

.v2 .lbl { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.v2 .lbl-v { color: var(--brand); }
.v2 .h2 { max-width: 860px; }
.v2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.v2-head > div { display: flex; flex-direction: column; gap: 14px; }
.v2-head > p { max-width: 400px; color: var(--muted); }

/* ---------- HERO ---------- */
.v2-hero { position: relative; z-index: 2; }
.v2-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 56px; }
.v2-hero-copy { display: flex; flex-direction: column; gap: 26px; }
.v2-hero h1 { font-size: clamp(48px, 6vw, 84px); font-weight: 900; line-height: 1; letter-spacing: -0.025em; }
.v2-hero h1 .v { color: var(--brand); }
.v2-hero .lead { max-width: 520px; font-size: 19px; }
.v2-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-tech span { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); }
.v2-tech svg { width: 16px; height: 16px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.v2-visual { position: relative; min-height: 600px; }
.v2-photo { position: absolute; right: 0; top: 0; width: 78%; height: 100%; border-radius: 16px; overflow: hidden; }
.v2-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.app { position: absolute; left: 0; bottom: 40px; width: min(420px, 82%); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(14,14,16,.35); overflow: hidden; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.app-top b { font-size: 15px; }
.app-tag { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--tint); padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.app-pol { list-style: none; margin: 0; padding: 6px 10px; }
.app-pol li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 10px; }
.app-pol li + li { border-top: 1px solid var(--line); border-radius: 0; }
.app-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.app-ico svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-pol b { display: block; font-size: 14px; }
.app-pol small { display: block; font-size: 12px; color: var(--muted); }
.st { font-size: 12px; font-weight: 700; font-style: normal; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.st-ok { color: #166534; background: #ECF7EF; }
.st-run { color: var(--brand); background: var(--tint); }
.meter { display: block; height: 6px; margin-top: 8px; background: var(--ink-04); border-radius: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 6px; animation: v2Fill 3.2s var(--ease) 1s forwards; }
.app-agent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 14px 14px; padding: 14px; background: var(--ink-04); border-radius: 12px; opacity: 0; animation: zxRise .7s var(--ease) 3.6s forwards; }
.app-agent p { font-size: 14px; line-height: 1.45; }
.app-agent p b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px; }
.app-note { display: block; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.v2-badge { position: absolute; right: 24px; top: 24px; padding: 12px 16px; background: #fff; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 32px -16px rgba(14,14,16,.35); }
.v2-badge .dot-live { margin-right: 2px; }
@keyframes v2Fill { to { width: 82%; } }

/* ---------- CIFRAS ---------- */
.v2-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.v2-stat { padding: 26px 28px; display: flex; flex-direction: column; gap: 6px; }
.v2-stat + .v2-stat { border-left: 1px solid var(--line); }
.v2-stat b { font-size: clamp(36px, 3.6vw, 52px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.v2-stat b .v { color: var(--brand); }
.v2-stat > span { font-size: 14px; color: var(--muted); }
.v2-allies { margin-top: 18px; display: flex; align-items: center; gap: 24px; }
.v2-allies > span { flex-shrink: 0; }

/* ---------- DIAGNÓSTICO ---------- */
.dx-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: stretch; }
.dx-intro { padding: 40px; border-radius: 16px; background: var(--tint); color: var(--ink); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.dx-intro .lbl { color: var(--brand); }
.dx-intro h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.dx-intro h2 .v { color: var(--brand); }
.dx-intro p { color: var(--muted); max-width: 440px; }
.dx-intro ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.dx-intro li { display: flex; gap: 10px; align-items: center; }
.dx-intro li svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.dx-intro img { position: absolute; right: -10px; bottom: -14px; width: 150px; height: auto; }
.dx { padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-height: 520px; display: flex; flex-direction: column; gap: 22px; }
.dx-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dx-prog { flex: 1; max-width: 240px; height: 6px; background: var(--ink-04); border-radius: 6px; overflow: hidden; }
.dx-prog i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .5s var(--ease); }
.dx-q { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.dx-help { color: var(--muted); font-size: 15px; margin-top: -10px; }
.dx-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dx-opt { min-height: 64px; padding: 16px 18px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.dx-opt:hover { border-color: var(--brand); background: var(--tint-2); }
.dx-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--tint); }
.dx-opt .k { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.dx-nav { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dx-back { min-height: 44px; padding: 0 14px; border: 0; background: none; font-weight: 500; color: var(--muted); border-radius: 10px; }
.dx-back:hover { background: var(--ink-04); color: var(--ink); }
.dx-step { animation: zxRise .5s var(--ease) both; display: flex; flex-direction: column; gap: 22px; }
.dx-res-head { display: flex; flex-direction: column; gap: 8px; }
.dx-prog-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 12px; background: var(--tint); }
.dx-prog-card b { display: block; font-size: 17px; }
.dx-prog-card small { color: var(--muted); font-size: 14px; }
.dx-prog-card .app-ico { background: #fff; }
.dx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dx-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); animation: zxRise .5s var(--ease) both; }
.dx-list li b { font-size: 16px; }
.dx-list li p { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.tg { align-self: start; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.tg-must { color: #fff; background: var(--brand); }
.tg-rec { color: var(--brand); background: var(--tint); }
.tg-eval { color: var(--ink); background: var(--ink-04); }
.dx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-note { font-size: 13px; color: var(--muted); }

/* ---------- RECORRIDO ---------- */
.journey { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; --p: 0; }
.journey::before, .journey::after { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; border-radius: 2px; background: var(--line); }
.journey::after { background: var(--brand); right: auto; width: calc((100% - 44px) * var(--p)); transition: width .2s linear; }
.jr { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.jr .n { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--muted); transition: background .3s ease, color .3s ease, border-color .3s ease; }
.jr.on .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.jr h3 { font-size: 18px; font-weight: 700; margin-top: 8px; }
.jr p { font-size: 14px; color: var(--muted); }
.jr .who { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

/* ---------- SINIESTROS + TIEMPOS ---------- */
.ops { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; }
.claim { padding: 40px; border-radius: 16px; background: var(--dark); color: var(--dark-text); display: flex; flex-direction: column; gap: 22px; }
.claim .lbl { color: var(--dark-muted); }
.claim h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.claim h2 .v { color: var(--brand); }
.claim > p { color: var(--dark-muted); max-width: 520px; }
.trk { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; }
.trk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.trk-top b { font-weight: 700; }
.trk-top .lbl { color: var(--dark-muted); }
.trk-steps { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trk-steps li { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--dark-muted); }
.trk-steps li i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; position: relative; }
.trk-steps li i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--brand); transition: width .9s var(--ease); }
.trk-steps li.done, .trk-steps li.now { color: #fff; }
.trk-steps li.done i::after { width: 100%; }
.trk-steps li.now i::after { width: 55%; }
.trk-log { list-style: none; margin: 0; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.trk-log li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 14px; color: var(--dark-text); animation: zxRise .5s var(--ease) both; }
.trk-log time { font-size: 12px; color: var(--dark-muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.trk-note { font-size: 12px; color: var(--dark-muted); }
.sla { padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: flex; flex-direction: column; gap: 18px; }
.sla h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.sla-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sla-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.sla-list b { display: block; font-size: 15px; }
.sla-list span { display: block; font-size: 14px; color: var(--muted); }
.sla-list strong { color: var(--ink); }
.sla .app-ico { width: 44px; height: 44px; border-radius: 12px; }
.sla .app-ico svg { width: 20px; height: 20px; }

/* Íconos que se dibujan */
.draw path, .draw circle, .draw rect, .draw polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.is-in .draw path, .reveal.is-in .draw circle, .reveal.is-in .draw rect, .reveal.is-in .draw polyline { animation: v2Draw 1.2s var(--ease) .3s forwards; }
@keyframes v2Draw { to { stroke-dashoffset: 0; } }

/* ---------- CTA FINAL ---------- */
.v2-cta { padding: 56px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.v2-cta h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; }
.v2-cta p { margin-top: 12px; color: #F6E9EB; max-width: 560px; }
.v2-cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.v2-cta .btn-white { background: #fff; color: var(--brand); }
.v2-cta .btn-white:hover { background: var(--tint); color: var(--brand-700); }
.v2-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.v2-cta .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.v2-cta .clover { position: absolute; right: -40px; bottom: -60px; width: 260px; opacity: .08; pointer-events: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .v2-hero-grid { grid-template-columns: 1fr; }
  .v2-visual { min-height: 560px; }
  .dx-wrap, .ops { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .journey::before, .journey::after { display: none; }
}
@media (max-width: 820px) {
  .v2-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .v2-hero-grid { padding-top: 28px; gap: 32px; }
  .v2-hero h1 { font-size: clamp(40px, 11.5vw, 60px); }
  .v2-visual { min-height: 0; display: flex; flex-direction: column; gap: 0; }
  .v2-photo { position: relative; width: 100%; height: 260px; }
  .v2-badge { right: 12px; top: 12px; font-size: 13px; }
  .app { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 12px 0; }
  .v2-stats { grid-template-columns: repeat(2, 1fr); }
  .v2-stat:nth-child(3) { border-left: 0; }
  .v2-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .v2-stat { padding: 20px; }
  .v2-allies { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dx-intro, .dx, .claim, .sla { padding: 24px; }
  .dx { min-height: 0; }
  .dx-intro img { width: 110px; }
  .dx-opts { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; row-gap: 0; }
  .jr { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 22px; }
  .jr .n { grid-row: span 4; }
  .jr h3 { margin-top: 0; }
  .trk-steps { grid-template-columns: repeat(2, 1fr); }
  .v2-cta { grid-template-columns: 1fr; padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .meter i { animation: none; width: 82%; }
  .app-agent { animation: none; opacity: 1; }
  .draw path, .draw circle, .draw rect, .draw polyline { stroke-dasharray: none; stroke-dashoffset: 0; }
  .reveal.is-in .draw path, .reveal.is-in .draw circle, .reveal.is-in .draw rect, .reveal.is-in .draw polyline { animation: none; }
}

.v2-allies .marquee { align-self: stretch; width: 100%; min-width: 0; }
.v2-allies { min-width: 0; }

/* ===== Ronda 2 (feedback 18-nov) ===== */
/* Portada: tarjeta de diagnóstico (reemplaza la vista del portal) */
.app-dx { display: block; color: var(--ink); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.app-dx:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 36px 70px -30px rgba(14,14,16,.4); }
.app-dx .app-pol li { opacity: 0; animation: zxRise .6s var(--ease) forwards; }
.app-dx .app-pol li:nth-child(1) { animation-delay: .7s; }
.app-dx .app-pol li:nth-child(2) { animation-delay: 1.05s; }
.app-dx .app-pol li:nth-child(3) { animation-delay: 1.4s; }
.app-dx .app-pol li:nth-child(4) { animation-delay: 1.75s; }
.app-dx .tg { font-style: normal; }
.app-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--brand); }
.app-dx:hover .app-go { background: var(--tint-2); }

/* Cifras más grandes */
.v2-stat { padding: 34px 32px; gap: 10px; }
.v2-stat b { font-size: clamp(52px, 5.6vw, 84px); }
.v2-stat > span { font-size: 15px; line-height: 1.4; max-width: 230px; }

/* Recorrido en tarjetas con barra de progreso segmentada */
.journey { gap: 14px; }
.journey::before, .journey::after { display: none; }
.jr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px 26px; overflow: hidden; gap: 8px; transition: border-color .3s ease, transform .25s ease, box-shadow .25s ease; }
.jr::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--brand); transition: width .7s var(--ease); }
.jr.on::before { width: 100%; }
.jr:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(14,14,16,.35); }
.jr-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.jr-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; transition: background .35s ease; }
.jr-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s ease; }
.jr.on .jr-ico { background: var(--brand); }
.jr.on .jr-ico svg { stroke: #fff; }
.jr .n, .jr.on .n { width: auto; height: auto; border: 0; background: none; border-radius: 0; display: block; font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: var(--line); }
.jr.on .n { color: var(--tint); }
.jr h3 { margin-top: 2px; font-size: 19px; }
.jr p { font-size: 15px; line-height: 1.5; }

@media (max-width: 1180px) {
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 820px) {
  .v2-stat { padding: 22px 18px; }
  .v2-stat b { font-size: clamp(40px, 12vw, 54px); }
  .v2-stat > span { font-size: 14px; }
  .journey { grid-template-columns: 1fr; row-gap: 12px; }
  .jr { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 4px; padding: 20px 18px; }
  .jr-top { grid-row: span 3; flex-direction: column; gap: 8px; margin: 0; }
  .jr .n, .jr.on .n { font-size: 22px; padding-left: 4px; }
  .jr .n { grid-row: auto; }
  .app-dx { margin: -48px 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app-dx .app-pol li { animation: none; opacity: 1; }
}
/* =========================================================
   Páginas internas — ronda 3
   ========================================================= */
/* Cifras en páginas internas: separación del hero */
.page-hero + section > .container > .v2-stats { margin-top: 8px; }

/* Modelo Zubiría: 4 tarjetas */
.journey.journey-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .journey.journey-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .journey.journey-4 { grid-template-columns: 1fr; } }

/* Línea de tiempo (Nosotros) — entra al hacer scroll */
.timeline .tl { position: relative; overflow: hidden; }
.timeline .tl .y { font-family: var(--font-sans, inherit); font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; text-transform: none; }
.timeline .tl::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(1); }
.timeline .tl:not(.hi)::before { background: var(--line); }
.timeline.tl-anim .tl { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.timeline.tl-anim .tl::before { transform: scaleX(0); transition: transform .8s var(--ease) .15s; background: var(--brand); }
.timeline.tl-anim .tl.on { opacity: 1; transform: none; }
.timeline.tl-anim .tl.on::before { transform: scaleX(1); }
@media (max-width: 820px) { .timeline .tl .y { font-size: 24px; } }

/* Tiempos de respuesta (Contacto) */
.rt { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.rt ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rt li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--tint); min-width: 0; }
.rt li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt small { font-size: 13px; color: var(--muted); }
.rt b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink, #0E0E10); }
.rt-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; }
.rt-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .rt ul { grid-template-columns: 1fr; } }
@media print { .timeline.tl-anim .tl { opacity: 1; transform: none; } }

/* =========================================================
   Trebolín y testimonios — ronda 4
   ========================================================= */
/* Trebolín en el diagnóstico: en su propia columna junto a la lista,
   así nunca queda encima del texto (pantallas más cuadradas) */
.dx-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto 1fr; column-gap: 8px; }
.dx-intro > * { grid-column: 1 / -1; }
.dx-intro ul { grid-column: 1; max-width: none; align-self: start; }
.dx-intro img { grid-column: 2; position: static; align-self: end; width: 160px; margin: 0 -16px -40px 0; }

/* Trebolín junto a un título de sección */
.treb-head { flex: none; height: 170px; width: auto; margin: -24px 0 -12px; }

/* Contacto: Trebolín al teléfono en la portada */
.ph-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.treb-hero { flex: none; height: 300px; width: auto; margin-bottom: -40px; }

/* Aprende: Trebolín de pie junto a la tarjeta */
.ap-side { display: flex; align-items: flex-end; gap: 4px; align-self: end; }
.ap-side .side-card { flex: 1; min-width: 0; }
.treb-stand { flex: none; height: 220px; width: auto; }

/* Testimonios en carrusel: 3 a la vista (2 en tablet, 1 en celular) */
.qc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.qc-nav { display: flex; gap: 8px; flex: none; }
.qc-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.qc-nav button:hover { border-color: var(--brand); background: var(--tint); }
.qc-nav svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quotes.quotes-car { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin-top: 28px; padding: 8px 2px 16px; }
.quotes.quotes-car::-webkit-scrollbar { display: none; }
.quotes.quotes-car:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 16px; }
.quotes.quotes-car figure { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .quotes.quotes-car { scroll-behavior: auto; } }

/* Ejemplos del diagnóstico en la portada: familia / empresa */
.app-foot { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.app-foot .app-go { flex: 1; border-top: 0; }
.app-foot .app-go:hover { background: var(--tint-2); color: var(--brand); }
.app-dx:hover .app-go { background: none; }
.app-dx:hover .app-foot .app-go:hover { background: var(--tint-2); }
.app-next { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 14px 0 16px; border: 0; border-left: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.app-next:hover { color: var(--brand); background: var(--tint-2); }
.app-next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-dx.swapped .app-pol li:nth-child(1) { animation-delay: 0s; }
.app-dx.swapped .app-pol li:nth-child(2) { animation-delay: .08s; }
.app-dx.swapped .app-pol li:nth-child(3) { animation-delay: .16s; }
.app-dx.swapped .app-pol li:nth-child(4) { animation-delay: .24s; }

@media (max-width: 1180px) {
  .quotes.quotes-car figure { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 820px) {
  .dx-intro img { width: 110px; margin: 0 -8px -24px 0; }
  .quotes.quotes-car figure { flex-basis: 86%; }
  .qc-nav button { width: 42px; height: 42px; }
}
@media (max-width: 520px) {
  .app-foot { flex-wrap: wrap; }
  .app-next { flex: 1 1 100%; justify-content: center; min-height: 44px; border-left: 0; border-top: 1px solid var(--line); }
  .treb-head { height: 120px; align-self: flex-end; margin: -8px 0 -20px; }
  .ph-split { gap: 12px; }
  .treb-hero { height: 150px; margin-bottom: 0; }
  .treb-stand { height: 150px; }
}

/* =========================================================
   Nosotros — línea de tiempo que avanza sola
   Corre de lado sin que tengas que bajar; se pausa al pasar el mouse,
   al tocarla o al usar las flechas. Con movimiento reducido: fila con scroll.
   ========================================================= */
.htl { position: relative; --p: 0; --pad: max(var(--gutter), calc(50vw - 720px + var(--gutter))); }
.htl .section-head { margin-bottom: 40px; align-items: flex-end; }
.htl-ctrl { display: flex; align-items: center; gap: 16px; }
.htl [data-htl-year] { font-variant-numeric: tabular-nums; }
.htl-viewport { overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; cursor: grab; }
.htl-viewport::-webkit-scrollbar { display: none; }
.htl-viewport:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.htl-track { position: relative; width: max-content; padding: 0 var(--pad); }
.htl-line { position: absolute; left: var(--pad); right: var(--pad); top: 11px; height: 2px; background: var(--line); }
.htl-line i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--brand); }
.htl-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.htl-item { position: relative; flex: none; width: 290px; padding-top: 48px; display: flex; flex-direction: column; gap: 8px; }
.htl-dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #A1A1AA; transition: background .35s ease, border-color .35s ease, box-shadow .35s ease; }
.htl-item .y { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--ink); transition: color .35s ease; }
.htl-item h3 { font-size: 19px; font-weight: 700; margin-top: 6px; }
.htl-item p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.htl-item.hi .y { color: var(--brand); }
.htl-item.hi .htl-dot { width: 22px; height: 22px; top: 1px; left: -3px; }
.htl-item.on .htl-dot, .htl:not(.htl-on) .htl-item .htl-dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px var(--tint); }
.htl.htl-on .htl-item { opacity: .4; transition: opacity .45s ease; }
.htl.htl-on .htl-item.on { opacity: 1; }
.htl.htl-on .htl-item .y { color: #A1A1AA; }
.htl.htl-on .htl-item.on .y { color: var(--ink); }
.htl.htl-on .htl-item.on.hi .y { color: var(--brand); }
@media (max-width: 820px) {
  .htl-item { width: 250px; }
  .htl-item .y { font-size: 34px; }
  .htl .section-head { margin-bottom: 28px; }
  .htl-list { gap: 24px; }
}

/* Nosotros — galería de fotos que corre sola */
.gallery.gallery-run { display: block; overflow: hidden; margin: 56px calc(50% - 50vw) 0; padding: 0 0 28px; -webkit-mask-image: none; mask-image: none; }
.gallery-run .gal-track { display: flex; gap: 12px; width: max-content; animation: zxMarquee 60s linear infinite; }
.gallery-run:hover .gal-track { animation-play-state: paused; }
.gallery-run figure { flex: none; width: 260px; }
@media (max-width: 820px) {
  .gallery.gallery-run { margin: 32px calc(var(--gutter) * -1) 0; padding: 0 0 8px; }
  .gallery-run figure { width: 200px; }
  .gallery-run figure:nth-child(even) { transform: translateY(18px); }
  .gallery-run { padding-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-run { overflow-x: auto; }
  .gallery-run .gal-track { animation: none; }
}
/* Contacto: mapa de Google (se carga con consentimiento o al pulsar) */
.office .map { height: 260px; background-image: none; background-color: #F4F4F5; }
.office .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.office .map.is-loaded .pin, .office .map.is-loaded .map-load { display: none; }
.map-load { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 16px; }
.map-load small { font-size: 12px; color: var(--muted); }
.office .pin { top: 40%; }
.page-hero:has(.gallery-run) { overflow-x: clip; }

/* Logo de Zeguro.pe */
.btn-zeguro { gap: 8px; }
.btn-zeguro img, .zeguro-mark { height: 22px; width: auto; display: block; }
.foot-zeguro { display: inline-flex; align-items: center; gap: 6px; }
.foot-zeguro img { height: 18px; width: auto; display: block; }
.zeguro .brand img { height: 60px; width: auto; display: block; }
@media (max-width: 820px) { .zeguro .brand img { height: 44px; } }
/* =========================================================
   Ronda celular (26-nov): páginas más cortas en móvil
   ========================================================= */
/* Diagnóstico: en móvil/tablet es un solo cuadro. La intro es la portada
   con botón "Empezar"; al tocarlo, las preguntas la reemplazan. */
.dx-start { display: none; }
@media (max-width: 1180px) {
  .dx-wrap.has-cover:not(.dx-on) .dx { display: none; }
  .dx-wrap.dx-on .dx-intro { display: none; }
  .dx-start { display: inline-flex; justify-self: start; align-self: start; margin-top: 4px; }
}

/* Carrusel horizontal reutilizable (Cómo trabajamos, Principios) */
@media (max-width: 820px) {
  .m-scroll { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .m-scroll::-webkit-scrollbar { display: none; }
  .m-scroll > * { flex: 0 0 80%; scroll-snap-align: start; }
  .m-hint { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
  /* Cómo trabajamos: tarjetas compactas en fila */
  .journey.m-scroll .jr { display: flex; flex-direction: column; padding: 20px 18px; }
  .journey.m-scroll .jr-top { flex-direction: row; margin-bottom: 8px; }
  .journey.m-scroll .jr .n { font-size: 30px; }
  /* Principios */
  .values.m-scroll .value { padding: 20px; }
}
.m-hint { display: none; }

/* Inicio en móvil: sin el ejemplo de diagnóstico en la portada (el 24/7 ya va como sello) */
@media (max-width: 820px) {
  .v2-hero .app-dx, .v2-hero .v2-badge { display: none; }
  .v2-photo { height: 220px; border-radius: 16px; overflow: hidden; }
  .v2-hero-grid { gap: 24px; }

  /* Qué cubrimos: mosaico de 2 columnas; cada cuadro lleva directo a su página */
  .covers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: auto; }
  .cov, .cov.is-active { height: 128px; border-radius: 16px; }
  .cov:last-child { grid-column: 1 / -1; }
  .cov::before, .cov.is-active::before { background: linear-gradient(0deg, rgba(14,14,16,.78) 0%, rgba(14,14,16,.2) 70%); }
  .cov .cov-idle, .cov.is-active .cov-idle { display: block; top: auto; bottom: 14px; left: 14px; translate: none; font-size: 17px; }
  .cov .cov-idle::after { content: " →"; }
  .cov.is-active .cov-body { display: none; }
}
@media (max-width: 1180px) {
  .dx-wrap.has-cover .dx-intro { grid-template-rows: auto auto auto auto 1fr; }
  .dx-wrap.has-cover .dx-intro ul { grid-row: 4; }
  .dx-wrap.has-cover .dx-start { grid-column: 1; grid-row: 5; }
  .dx-wrap.has-cover .dx-intro img { grid-column: 2; grid-row: 4 / span 2; }
}
/* Inicio en celular: sin la foto de portada (26-nov) */
@media (max-width: 820px) {
  .v2-hero .v2-visual { display: none; }
}
