/* ==========================================================================
   Gesfy — propuesta de página, noviembre 2026
   Tokens de la marca (los mismos de apps/landing/tailwind.config.ts).
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --page: #fafafa;
  --surface: #ffffff;
  --ink: #16171b;
  --ink-900: #1f2026;
  --ink-800: #2a2a30;
  --ink-700: #3a3a42;
  --ink-600: #4a4a52;
  --ink-500: #6b6b73;
  --ink-400: #94949c;
  --ink-300: #c8c8cf;
  --ink-200: #e7e7ea;
  --ink-100: #f4f4f5;
  --lime: #d9f56e;
  --lime-soft: #eafab0;
  --lime-edge: #a3c443;
  --income: #12855a;
  --coral: #e16363;
  --cream: #faf5e8;
  --peach: #ffd9c2;
  --rose: #ffcfd6;
  --mint: #d4f2e2;
  --aqua: #c9f0ef;
  --butter: #f5e59e;
  --hairline: rgb(16 17 20 / 0.07);

  --display: 'Nunito', ui-rounded, system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.5rem, 1.3rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(2.05rem, 1.2rem + 3.1vw, 3.9rem);
  --fs-h3: clamp(1.25rem, 1.08rem + 0.6vw, 1.6rem);
  --fs-lead: clamp(1.04rem, 0.97rem + 0.36vw, 1.28rem);

  --r-card: 28px;
  --shadow-card: 0 30px 80px -30px rgb(22 23 27 / 0.22), 0 8px 24px -12px rgb(22 23 27 / 0.1);
  --shadow-soft: 0 1px 2px rgb(22 23 27 / 0.04), 0 4px 12px -6px rgb(22 23 27 / 0.1);
  --shadow-float: 0 18px 40px -18px rgb(22 23 27 / 0.35), 0 2px 6px rgb(22 23 27 / 0.06);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

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

.salto {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.salto:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.oscuro :focus-visible {
  outline-color: var(--lime);
}

.contenedor {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Piezas compartidas
   -------------------------------------------------------------------------- */

.ceja {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.ceja img {
  width: 30px;
  height: 30px;
}
.oscuro .ceja {
  color: var(--ink-300);
}

.titulo {
  font-size: var(--fs-h2);
  line-height: 1.02;
  margin-top: 14px;
}
.entrada {
  font-size: var(--fs-lead);
  color: var(--ink-600);
  margin-top: 18px;
  max-width: 34em;
}
.oscuro .entrada {
  color: var(--ink-300);
}

/* El subrayado lima de la marca: se dibuja al entrar. */
.marca-lima {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.marca-lima::after {
  content: '';
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.08em;
  height: 0.3em;
  background: var(--lime);
  border-radius: 0.1em;
  transform: skewY(-2deg) scaleX(var(--trazo, 1));
  transform-origin: left center;
  z-index: -1;
  transition: transform 0.8s var(--ease-out) 0.15s;
}
.js [data-reveal] .marca-lima::after,
.js .marca-lima[data-reveal]::after {
  --trazo: 0;
}
.js .es-visible .marca-lima::after,
.js .marca-lima.es-visible::after {
  --trazo: 1;
}

/* Botón de acción (Duolingo): cara lima con filo inferior de 4 px. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.2s ease;
}
.btn--lima {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--lime-edge);
}
.btn--lima:hover {
  background: #e1f88a;
}
.btn--lima:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--lime-edge);
}
.btn--tinta {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 0 #000;
}
.btn--tinta:hover {
  background: var(--ink-800);
}
.btn--tinta:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #000;
}
.btn--contorno {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink-200), 0 4px 0 var(--ink-200);
}
.btn--contorno:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink-300), 0 4px 0 var(--ink-300);
}
.btn--contorno:active {
  transform: translateY(4px);
  box-shadow: inset 0 0 0 1.5px var(--ink-300), 0 0 0 var(--ink-300);
}
.btn--plano {
  background: transparent;
  color: var(--ink-700);
  padding-inline: 14px;
}
.btn--plano:hover {
  background: var(--ink-100);
}
.btn--plano .ico {
  transition: transform 0.2s var(--ease-out);
}
.btn--plano:hover .ico:last-child {
  transform: translateX(3px);
}
.btn small {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
  line-height: 1.1;
}
.btn .tienda {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn .tienda b {
  font-size: 1.02rem;
}
.btn svg.logo-tienda {
  width: 24px;
  height: 24px;
}

.botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Revelado al entrar en pantalla. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].es-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   El teléfono
   -------------------------------------------------------------------------- */

.tel {
  --w: 300px;
  position: relative;
  width: min(var(--w), 100%);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(145deg, #2b2c33, #121317 40%, #1d1e24);
  box-shadow: var(--shadow-card), inset 0 0 0 1.5px rgb(255 255 255 / 0.08), inset 0 0 0 4px #0c0c0f;
  flex: none;
}
.tel::before {
  /* botones laterales */
  content: '';
  position: absolute;
  right: -2px;
  top: 26%;
  width: 3px;
  height: 13%;
  border-radius: 0 3px 3px 0;
  background: #24252b;
}
.tel__pantalla {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 390 / 890;
  border-radius: calc(var(--w) * 0.125);
  overflow: hidden;
  background: var(--page);
  isolation: isolate;
}
.tel__estado {
  flex: none;
  height: 11.8cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6cqw 8.4cqw 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 3.9cqw;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--page);
}
.tel__estado svg {
  height: 3cqw;
  width: auto;
}
.tel__iconos {
  display: flex;
  gap: 1.4cqw;
  align-items: center;
}
.tel__isla {
  position: absolute;
  top: 2.6cqw;
  left: 50%;
  width: 29cqw;
  height: 8.4cqw;
  transform: translateX(-50%);
  background: #000;
  border-radius: 99px;
  z-index: 3;
}
.tel__medio {
  position: relative;
  flex: 1;
  min-height: 0;
}
.tel__medio > img,
.tel__medio > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--page);
}
.tel__capa {
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.con-fondo {
  background: rgb(250 250 250 / 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.nav__logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  padding: 5px;
}
.nav__enlaces {
  display: none;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__enlaces a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-600);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav__enlaces a:hover {
  background: var(--ink-100);
  color: var(--ink);
}
.nav__enlaces a.activo {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.nav .btn {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.92rem;
}
@media (min-width: 960px) {
  .nav__enlaces {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Portada
   -------------------------------------------------------------------------- */

.portada {
  position: relative;
  padding: 108px 0 72px;
  overflow: clip;
}
.portada__brillo {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 1300px;
  height: 900px;
  max-width: 160vw;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(217 245 110 / 0.55), rgb(217 245 110 / 0) 72%);
  pointer-events: none;
  animation: deriva 18s ease-in-out infinite alternate;
}
@keyframes deriva {
  to {
    transform: translateX(-46%) translateY(30px) scale(1.06);
  }
}
.portada__puntos {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(22 23 27 / 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 70%);
  pointer-events: none;
}
.portada__rejilla {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.portada__rejilla > * {
  min-width: 0;
}
.portada__texto {
  text-align: center;
}
.chip-nuevo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
}
.chip-nuevo b {
  flex: none;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.chip-nuevo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portada h1 {
  font-size: var(--fs-hero);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-top: 22px;
}
.portada h1 .linea {
  display: block;
}
.portada__sub {
  font-size: var(--fs-lead);
  color: var(--ink-600);
  margin: 22px auto 0;
  max-width: 31em;
}
.portada__sub q {
  quotes: '«' '»';
  color: var(--ink);
  font-weight: 600;
}
.portada .botones {
  justify-content: center;
  margin-top: 30px;
}
.portada__pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-500);
}
.portada__pie span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portada__pie span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--ink-300);
}

/* El subrayado de la portada se dibuja al cargar. */
.js .portada .marca-lima::after {
  animation: trazo 0.8s var(--ease-out) 0.7s both;
}
@keyframes trazo {
  from {
    transform: skewY(-2deg) scaleX(0);
  }
  to {
    transform: skewY(-2deg) scaleX(1);
  }
}

/* Entrada de la portada (una sola vez al cargar). */
.js .portada [data-entra] {
  opacity: 0;
  transform: translateY(18px);
  animation: entra 0.8s var(--ease-out) forwards;
  animation-delay: calc(0.08s + var(--i, 0) * 0.09s);
}
@keyframes entra {
  to {
    opacity: 1;
    transform: none;
  }
}

/* El escenario del teléfono de la portada. */
.escena {
  --w: 318px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 0 10px;
  perspective: 1400px;
}
.escena .tel {
  transform: translateY(calc(var(--p, 0) * -40px));
}
.js .escena .tel {
  animation: sube 1.2s var(--ease-out) 0.25s both;
}
@keyframes sube {
  from {
    opacity: 0;
    transform: translateY(70px) rotateX(16deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.escena__aro {
  position: absolute;
  width: calc(var(--w) * 1.55);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgb(22 23 27 / 0.12);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  animation: gira 60s linear infinite;
}
.escena__aro::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(217 245 110 / 0.35);
  top: 12%;
  left: 14%;
}
@keyframes gira {
  to {
    rotate: 360deg;
  }
}
.escena__3d {
  position: absolute;
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 14px 18px rgb(22 23 27 / 0.18));
  animation: flota 6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
.escena__3d--a {
  top: 4%;
  right: 8%;
}
.escena__3d--b {
  bottom: 10%;
  left: 4%;
  width: 62px;
  height: 62px;
  animation-delay: -2.5s;
}
@keyframes flota {
  50% {
    transform: translateY(-12px) rotate(-4deg);
  }
}

/* Lo que sale del teléfono, sincronizado con el clip. */
.globo-voz,
.fila-flota,
.pastilla-ok {
  position: absolute;
  z-index: 4;
  background: var(--surface);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
}
.globo-voz {
  top: 13%;
  left: 50%;
  margin-left: calc(var(--w) * -0.5 - 120px);
  width: 250px;
  padding: 14px 16px 16px;
  border-radius: 22px 22px 22px 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.28;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: 20% 100%;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-spring);
}
.globo-voz.on {
  opacity: 1;
  transform: none;
}
.globo-voz__cab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 6px;
}
.onda {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  height: 14px;
}
.onda i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--income);
  transform-origin: center;
  animation: onda 0.9s ease-in-out infinite;
}
.onda i:nth-child(2) {
  animation-delay: -0.15s;
}
.onda i:nth-child(3) {
  animation-delay: -0.45s;
}
.onda i:nth-child(4) {
  animation-delay: -0.3s;
}
.onda i:nth-child(5) {
  animation-delay: -0.6s;
}
@keyframes onda {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}
.globo-voz .p {
  opacity: 0.16;
  transition: opacity 0.18s ease;
}
.globo-voz .p.on {
  opacity: 1;
}
.globo-voz .p.cifra.on {
  background: linear-gradient(transparent 58%, var(--lime) 58%);
}

.fila-flota {
  left: 50%;
  margin-left: calc(var(--w) * 0.5 - 70px);
  width: 236px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 11px 14px 11px 11px;
  border-radius: 20px;
  opacity: 0;
  transform: translateX(-40px) scale(0.9);
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-spring);
}
.fila-flota.on {
  opacity: 1;
  transform: none;
}
.fila-flota {
  top: calc(40% + var(--n) * 72px);
}
.ficha {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.ficha .ico {
  width: 20px;
  height: 20px;
}
.fila-flota b,
.fila-lista b {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.fila-flota small,
.fila-lista small {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.2;
}
.fila-flota .monto,
.fila-lista .monto {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.monto.mas {
  color: var(--income);
}
.pastilla-ok {
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%) translateY(14px) scale(0.92);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-spring);
}
.pastilla-ok.on {
  opacity: 1;
  transform: translateX(-50%);
}
.pastilla-ok .ico {
  color: var(--income);
}

.c-mercado {
  background: #e6f6c8;
  color: #3f6b12;
}
.c-transporte {
  background: var(--rose);
  color: #a33a4c;
}
.c-salario {
  background: var(--mint);
  color: #12704b;
}
.c-restaurantes {
  background: var(--peach);
  color: #a04a1c;
}
.c-indep {
  background: #e6f6c8;
  color: #3f6b12;
}

@media (min-width: 1024px) {
  .portada {
    padding: 132px 0 96px;
  }
  .portada__rejilla {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 32px;
  }
  .portada__texto {
    text-align: left;
  }
  .portada__sub {
    margin-left: 0;
  }
  .portada .botones,
  .portada__pie {
    justify-content: flex-start;
  }
  .escena {
    --w: 336px;
    padding: 0;
  }
}

/* Teléfono: los globos se recogen hacia dentro para no salirse de pantalla. */
@media (max-width: 760px) {
  .escena {
    --w: 262px;
    padding-top: 40px;
  }
  .globo-voz {
    top: 2%;
    margin-left: calc(var(--w) * -0.5 - 18px);
    width: 214px;
    font-size: 0.92rem;
    padding: 12px 14px 13px;
  }
  .fila-flota {
    margin-left: calc(var(--w) * 0.5 - 168px);
    width: 196px;
    padding: 9px 12px 9px 9px;
    grid-template-columns: 34px 1fr auto;
    gap: 1px 10px;
  }
  .fila-flota .ficha {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .fila-flota b {
    font-size: 0.86rem;
  }
  .fila-flota .monto {
    font-size: 0.92rem;
  }
  .fila-flota {
    top: calc(44% + var(--n) * 62px);
  }
  .escena__3d--a {
    right: 0;
    top: 8%;
    width: 58px;
    height: 58px;
  }
  .escena__3d--b {
    left: 0;
    width: 50px;
    height: 50px;
  }
}

/* --------------------------------------------------------------------------
   Cinta de novedades
   -------------------------------------------------------------------------- */

.cinta {
  border-block: 1px solid var(--hairline);
  background: var(--surface);
  overflow: hidden;
  padding: 14px 0;
}
.cinta__pista {
  display: flex;
  width: max-content;
  animation: cinta 46s linear infinite;
}
.cinta:hover .cinta__pista {
  animation-play-state: paused;
}
.cinta ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 6px;
  list-style: none;
}
.cinta li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}
.cinta li img {
  width: 28px;
  height: 28px;
}
@keyframes cinta {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.seccion {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0;
}
.seccion__cab {
  max-width: 760px;
}
.seccion__cab--centro {
  margin-inline: auto;
  text-align: center;
}
.seccion__cab--centro .entrada {
  margin-inline: auto;
}

/* ---- Familia: escenario fijo + pasos ---- */

.familia {
  background: linear-gradient(180deg, var(--page), #f3f6ea 50%, var(--page));
}
.personas {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.pila {
  display: flex;
}
.cara {
  --t: 46px;
  width: var(--t);
  height: var(--t);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: calc(var(--t) * 0.36);
  box-shadow: 0 0 0 3px var(--page);
  flex: none;
}
.pila .cara + .cara {
  margin-left: -10px;
}
.cara--nico {
  background: var(--lime);
  color: var(--ink);
}
.cara--ana {
  background: var(--peach);
  font-size: calc(var(--t) * 0.5);
}
.cara--cata {
  background: var(--aqua);
  font-size: calc(var(--t) * 0.5);
}
.personas p {
  font-size: 0.9rem;
  color: var(--ink-600);
  font-weight: 600;
}

.historia {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}
.historia__escenario {
  display: none;
}
.paso {
  display: grid;
  gap: 26px;
  align-items: center;
}
.paso__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.paso__num i {
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  letter-spacing: 0;
}
.paso h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  line-height: 1.05;
  margin-top: 12px;
}
.paso p {
  margin-top: 12px;
  color: var(--ink-600);
  font-size: 1.05rem;
  max-width: 30em;
}
.paso__medio {
  display: grid;
  place-items: center;
}
.paso__medio .tel {
  --w: 270px;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.rol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-weight: 600;
  font-size: 0.9rem;
}
.rol .ico {
  width: 16px;
  height: 16px;
}
.nota {
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--ink-500);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.nota .ico {
  margin-top: 3px;
}

@media (min-width: 1024px) {
  .historia {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 24px;
  }
  .historia__escenario {
    display: block;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
  }
  .historia__escenario-dentro {
    position: relative;
    height: 100%;
    display: grid;
    place-items: center;
  }
  .historia__escenario .tel {
    --w: 330px;
  }
  .paso {
    min-height: 92vh;
    align-content: center;
  }
  .paso__medio {
    display: none;
  }
  .paso {
    opacity: 0.35;
    transition: opacity 0.5s ease;
  }
  .paso.activo {
    opacity: 1;
  }
}

/* Capas del escenario (una por paso). */
.historia__escenario .tel__capa {
  opacity: 0;
  transform: scale(1.04);
}
.historia__escenario[data-paso='1'] .tel__capa[data-capa='1'],
.historia__escenario[data-paso='2'] .tel__capa[data-capa='2'],
.historia__escenario[data-paso='3'] .tel__capa[data-capa='3'] {
  opacity: 1;
  transform: none;
}

/* Caras alrededor del teléfono y el aviso «Ana anotó…». */
.orbita .cara {
  --t: 64px;
  position: absolute;
  box-shadow: 0 0 0 4px var(--page), var(--shadow-float);
  transition: transform 0.9s var(--ease-spring), opacity 0.5s ease;
}
.orbita .cara--nico {
  top: 18%;
  left: 2%;
}
.orbita .cara--ana {
  top: 30%;
  right: 0;
}
.orbita .cara--cata {
  bottom: 20%;
  left: 6%;
}
.historia__escenario[data-paso='1'] .orbita .cara--ana {
  transform: translate(26px, -18px) scale(0.9);
}
.historia__escenario[data-paso='1'] .orbita .cara--cata {
  transform: translate(-20px, 20px) scale(0.9);
}
.orbita .cara span {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0;
}
.aviso {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 300px;
  translate: -50% 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
  z-index: 5;
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-spring);
}
.aviso.on {
  opacity: 1;
  transform: none;
}
.aviso .cara {
  --t: 38px;
  box-shadow: none;
}
.aviso b {
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
}
.aviso small {
  display: block;
  color: var(--ink-500);
  font-size: 0.8rem;
}
.aviso .monto {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* ---- La frase que se parte (firma de la página) ---- */

.frase {
  background: var(--ink);
  color: #fff;
  border-radius: clamp(28px, 4vw, 56px);
  margin-inline: clamp(0px, 1vw, 14px);
}
.frase__pista {
  position: relative;
  height: 290vh;
}
.frase__fija {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.frase__escena {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vh, 48px);
  align-items: center;
}
.frase__texto {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.75rem, 0.9rem + 3.6vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 15.5em;
}
.frase__texto .comilla {
  color: var(--lime);
}
.frase__texto .w {
  opacity: calc(0.12 + var(--o, 0) * 0.88);
  transition: color 0.3s ease;
}
.frase__texto .cifra {
  position: relative;
  white-space: nowrap;
  border-radius: 0.18em;
  padding: 0 0.08em;
  margin: 0 -0.08em;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat left center / calc(var(--h, 0) * 100%) 100%;
  color: color-mix(in srgb, #fff calc((1 - var(--h, 0)) * 100%), var(--ink));
}
.frase__texto .cifra.despega {
  color: rgb(217 245 110 / 0.42);
  background: none;
  outline: 2px dashed rgb(217 245 110 / 0.32);
  outline-offset: -1px;
}
.frase__texto .concepto {
  text-decoration-line: underline;
  text-decoration-color: rgb(217 245 110 / calc(var(--c, 0) * 0.9));
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}
.frase__arriba {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.frase__arriba .ceja {
  color: var(--ink-300);
}
.frase__arriba h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.05;
  margin-top: 10px;
  color: #fff;
}
.frase__guia {
  font-size: 0.85rem;
  color: var(--ink-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.frase__guia .ico {
  animation: baja 1.6s ease-in-out infinite;
}
@keyframes baja {
  50% {
    transform: translateY(4px);
  }
}

.revisa {
  width: min(400px, 100%);
  justify-self: end;
  background: var(--surface);
  color: var(--ink);
  border-radius: 30px;
  padding: 20px 16px 16px;
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.6);
  opacity: calc(0.25 + var(--rv, 0) * 0.75);
  transform: translateY(calc((1 - var(--rv, 0)) * 30px));
}
.revisa__cab {
  text-align: center;
  margin-bottom: 12px;
}
.revisa__cab small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.revisa__cab b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
}
.fila-lista {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 18px;
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.fila-lista + .fila-lista {
  margin-top: 8px;
}
.fila-lista > * {
  opacity: var(--f, 0);
  transition: opacity 0.3s ease;
}
.fila-lista .monto {
  opacity: 0;
}
.fila-lista.llena .monto {
  opacity: 1;
}
.revisa__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 6px 12px;
  font-size: 0.92rem;
  color: var(--ink-600);
}
.revisa__total b {
  font-family: var(--display);
  font-weight: 900;
  color: var(--income);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.revisa .btn {
  width: 100%;
  min-height: 48px;
}
.revisa .btn.hecho {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--lime-edge);
}
.chip-vuela {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  z-index: 6;
  font-family: var(--display);
  font-weight: 900;
  white-space: nowrap;
  color: var(--ink);
  background: var(--lime);
  border-radius: 10px;
  padding: 0.05em 0.28em;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  font-variant-numeric: tabular-nums;
}
.chip-vuela.mas {
  color: var(--income);
}

@media (min-width: 900px) {
  .frase__escena {
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
  }
}
@media (max-width: 899px) {
  .revisa {
    justify-self: center;
    padding: 14px 12px 12px;
    border-radius: 24px;
  }
  .revisa__cab {
    margin-bottom: 8px;
  }
  .revisa__cab b {
    font-size: 1.1rem;
  }
  .fila-lista {
    padding: 8px 10px;
    grid-template-columns: 34px 1fr auto;
  }
  .fila-lista .ficha {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .revisa__total {
    padding: 10px 4px 8px;
  }
  .revisa .btn {
    min-height: 44px;
    font-size: 0.95rem;
  }
}
@media (max-height: 720px) and (max-width: 899px) {
  .frase__arriba h2 {
    font-size: 1.35rem;
  }
  .frase__texto {
    font-size: 1.55rem;
  }
  .fila-lista small {
    display: none;
  }
}

.frase__despues {
  padding: clamp(40px, 7vw, 100px) 0 clamp(80px, 10vw, 140px);
}
.frase__despues .rejilla-2 {
  align-items: center;
}
.lista-puntos {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.lista-puntos li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.lista-puntos .ficha {
  grid-row: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.08);
  color: var(--lime);
}
.lista-puntos b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.lista-puntos span {
  color: var(--ink-300);
  font-size: 0.98rem;
}
.claro .lista-puntos .ficha {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
}
.claro .lista-puntos span {
  color: var(--ink-600);
}

.rejilla-2 {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .rejilla-2 {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .rejilla-2--al-reves > :first-child {
    order: 2;
  }
}
.centro {
  display: grid;
  place-items: center;
}

/* ---- Calculadora ---- */

.calculadora {
  overflow: clip;
}
.calc-escena {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px 0;
}
.calc-escena {
  --w: 320px;
}
.calc-escena .tel {
  --w: 320px;
}
.calc-escena__fondo {
  position: absolute;
  inset: 8% 6%;
  border-radius: 48px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgb(22 23 27 / 0.05);
  transform: rotate(-3deg);
}
.queda {
  position: absolute;
  z-index: 3;
  left: calc(50% + var(--w) / 2 - 24px);
  top: 22%;
  width: 230px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-float);
}
.queda small {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-400);
}
.queda b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.queda .barra {
  height: 8px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.12);
  margin-top: 12px;
  overflow: hidden;
}
.queda .barra i {
  display: block;
  height: 100%;
  width: var(--ancho, 48%);
  background: var(--lime);
  border-radius: inherit;
  transition: width 0.8s var(--ease-out);
}
.queda .pie {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-300);
  margin-top: 8px;
}
.teclas {
  position: absolute;
  z-index: 3;
  right: calc(50% + var(--w) / 2 - 46px);
  bottom: 14%;
  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
}
.teclas span {
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  background: var(--ink-100);
  animation: tecla 4.8s var(--ease-out) infinite;
  animation-delay: calc(var(--k) * 0.6s);
}
@keyframes tecla {
  0%,
  14%,
  100% {
    background: var(--ink-100);
    transform: none;
  }
  5% {
    background: var(--lime);
    transform: translateY(2px) scale(0.94);
  }
}
@media (max-width: 1180px) {
  .calc-escena {
    --w: 280px;
  }
  .calc-escena .tel {
    --w: 280px;
  }
  .queda {
    position: relative;
    left: auto;
    top: auto;
    margin-top: -64px;
    width: min(250px, 100%);
    padding: 14px 16px 16px;
  }
  .queda b {
    font-size: 1.7rem;
  }
  .teclas {
    display: none;
  }
}

/* ---- Tarjetas y recordatorios: rejilla de cajas ---- */

.cajas {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}
.caja {
  position: relative;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
  padding: clamp(22px, 2.4vw, 32px);
  overflow: hidden;
}
.caja h3 {
  font-size: var(--fs-h3);
  line-height: 1.12;
}
.caja p {
  color: var(--ink-600);
  margin-top: 10px;
  font-size: 0.98rem;
}
.caja--tel {
  display: grid;
  justify-items: center;
  align-content: start;
  background: linear-gradient(160deg, #eef6d3, #f8fbef 60%);
  padding-bottom: 0;
}
.caja--tel .tel {
  --w: 300px;
  margin-top: 26px;
  margin-bottom: -60px;
}
.caja--tel .caja__texto {
  text-align: center;
}

/* Demo: escribir el nombre de la cuenta y que aparezca el logo. */
.campo-banco {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 20px;
  background: var(--page);
  box-shadow: inset 0 0 0 1.5px var(--ink-200);
}
.campo-banco__logo {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--ink-100);
  overflow: hidden;
}
.campo-banco__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.6) rotate(-8deg);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-spring);
}
.campo-banco__logo img.on {
  opacity: 1;
  transform: none;
}
.campo-banco small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.campo-banco__texto {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  min-height: 1.5em;
}
.campo-banco__texto::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: cursor 1s steps(1) infinite;
}
@keyframes cursor {
  50% {
    opacity: 0;
  }
}
.logos-fila {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.logos-fila img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--hairline);
}

/* Tarjeta de crédito con su cupo. */
.plastico {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 1.586;
  max-width: 340px;
  border-radius: 20px;
  padding: 18px 20px;
  color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #9b4dff 0%, #820ad1 45%, #4b0a7d 100%);
  box-shadow: 0 30px 50px -28px rgb(80 10 130 / 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.plastico::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.18) 45%, transparent 60%);
  transform: translateX(-100%);
  animation: brillo 5s ease-in-out infinite 1s;
}
@keyframes brillo {
  30%,
  100% {
    transform: translateX(100%);
  }
}
.plastico__cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plastico__cab img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.plastico__cab span {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}
.plastico small {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 700;
}
.plastico b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cupo {
  margin-top: 8px;
  height: 7px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.22);
  overflow: hidden;
}
.cupo i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: inherit;
  transition: width 1.4s var(--ease-out) 0.3s;
}
.es-visible .cupo i,
.cupo.es-visible i {
  width: var(--usado);
}
.plastico__pie {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-top: 6px;
  opacity: 0.85;
}
.fechas {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.fechas span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 0.84rem;
  font-weight: 600;
}
.fechas .ico {
  width: 15px;
  height: 15px;
}

/* Recordatorios */
.caja--rec {
  display: grid;
  gap: 24px;
  align-items: center;
}
.rec-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rec-lista li {
  display: grid;
  grid-template-columns: 44px 1fr auto 26px;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.rec-lista .ficha {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
}
.rec-lista .ficha img {
  width: 100%;
  height: 100%;
}
.rec-lista b {
  font-weight: 700;
  font-size: 0.95rem;
}
.rec-lista small {
  grid-column: 2;
  font-size: 0.8rem;
  color: var(--ink-500);
}
.rec-lista .monto {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rec-lista .monto em {
  display: block;
  font-style: normal;
  font-family: var(--body);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ink-500);
}
.check {
  grid-column: 4;
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ink-300);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.check .ico {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.4s var(--ease-spring);
}
.check.on {
  background: var(--income);
  box-shadow: none;
}
.check.on .ico {
  opacity: 1;
  transform: none;
}
.solo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lime-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3f6b12;
  vertical-align: 2px;
}
.rec-resumen {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.rec-resumen b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.rec-resumen span {
  color: var(--ink-500);
  font-size: 0.86rem;
}

@media (min-width: 1000px) {
  .cajas--tarjetas {
    grid-template-columns: 1.05fr 1fr 1fr;
    grid-template-areas:
      'tel logo cupo'
      'tel rec rec';
  }
  .cajas--tarjetas .caja--tel {
    grid-area: tel;
  }
  .cajas--tarjetas .caja--logo {
    grid-area: logo;
  }
  .cajas--tarjetas .caja--cupo {
    grid-area: cupo;
  }
  .cajas--tarjetas .caja--rec {
    grid-area: rec;
    grid-template-columns: 1fr 1.1fr;
  }
}
@media (min-width: 700px) and (max-width: 999px) {
  .cajas--tarjetas {
    grid-template-columns: 1fr 1fr;
  }
  .cajas--tarjetas .caja--tel,
  .cajas--tarjetas .caja--rec {
    grid-column: 1 / -1;
  }
}

/* ---- Agente (sección oscura) ---- */

.oscuro {
  background: var(--ink);
  color: #fff;
  border-radius: clamp(28px, 4vw, 56px);
  margin-inline: clamp(0px, 1vw, 14px);
}
.agente {
  overflow: clip;
}
.agente__brillo {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 760px;
  height: 760px;
  max-width: 120vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(217 245 110 / 0.22), transparent 70%);
  pointer-events: none;
}
.agente .tel {
  --w: 330px;
  box-shadow: 0 50px 120px -40px rgb(0 0 0 / 0.8), inset 0 0 0 1.5px rgb(255 255 255 / 0.1), inset 0 0 0 4px #0c0c0f;
}
.pedidos {
  margin-top: 40px;
  display: grid;
  gap: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pedidos__fila {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: cinta 40s linear infinite;
}
.pedidos__fila--b {
  animation-direction: reverse;
  animation-duration: 52s;
}
.pedidos span {
  padding: 10px 16px;
  border-radius: 16px 16px 16px 4px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: var(--ink-200);
  font-size: 0.95rem;
  white-space: nowrap;
}
.pedidos span::before {
  content: '«';
  color: var(--lime);
}
.pedidos span::after {
  content: '»';
  color: var(--lime);
}
.verbos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.verbos span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(217 245 110 / 0.1);
  color: var(--lime);
  font-weight: 600;
  font-size: 0.9rem;
}
.verbos .ico {
  width: 16px;
  height: 16px;
}
.aprueba {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  max-width: 460px;
}
.aprueba .ico {
  width: 28px;
  height: 28px;
  color: var(--lime);
}
.aprueba p {
  color: var(--ink-200);
  font-size: 0.95rem;
}
.aprueba b {
  color: #fff;
}

/* ---- Negocio ---- */

.negocio {
  background: linear-gradient(180deg, var(--page), #f1f1ee);
}
.cajas--negocio .caja--tel {
  background: linear-gradient(160deg, #fff3e6, #fffaf4 60%);
}
.recorte {
  margin-top: 22px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
  background: var(--page);
  aspect-ratio: 390 / 470;
  position: relative;
}
.recorte img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ease-out);
}
.caja:hover .recorte img {
  transform: scale(1.03);
}
.recorte--bajo {
  aspect-ratio: 390 / 330;
}
.par-tel {
  position: relative;
  margin: 26px auto 0;
  height: 430px;
  width: min(100%, 440px);
}
.par-tel .tel {
  --w: 220px;
  position: absolute;
  top: 0;
}
.par-tel .tel:first-child {
  left: 0;
  transform: rotate(-4deg);
}
.par-tel .tel:last-child {
  right: 0;
  top: 34px;
  transform: rotate(4deg);
}
.kpi {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
}
.kpi b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kpi span {
  color: var(--ink-500);
  font-weight: 700;
}
.pagos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.pagos span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 0.82rem;
  font-weight: 600;
}
.mas-negocio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}
.mas-negocio span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-weight: 600;
  font-size: 0.92rem;
}
.mas-negocio .ico {
  width: 16px;
  height: 16px;
}

@media (min-width: 1000px) {
  .cajas--negocio {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      'pos web web'
      'pos fac kpi';
  }
  .cajas--negocio .caja--pos {
    grid-area: pos;
  }
  .cajas--negocio .caja--web {
    grid-area: web;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
    align-items: center;
  }
  .cajas--negocio .caja--fac {
    grid-area: fac;
  }
  .cajas--negocio .caja--kpi {
    grid-area: kpi;
  }
  .caja--web .par-tel {
    margin-top: 0;
    height: 470px;
  }
}
@media (min-width: 700px) and (max-width: 999px) {
  .cajas--negocio {
    grid-template-columns: 1fr 1fr;
  }
  .cajas--negocio .caja--pos,
  .cajas--negocio .caja--web {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .par-tel {
    height: 380px;
  }
  .par-tel .tel {
    --w: 178px;
  }
}

/* ---- Donde ---- */

.donde__botones {
  justify-content: center;
  margin-top: 40px;
}
.datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 34px;
  font-weight: 700;
  color: var(--ink-600);
}
.datos span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.datos .ico {
  color: var(--ink-400);
}

/* ---- Cierre lima ---- */

.cierre {
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
}
.cierre__caja {
  position: relative;
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--lime);
  padding: clamp(36px, 6vw, 80px) clamp(22px, 5vw, 72px);
  overflow: hidden;
  display: grid;
  gap: 36px;
  align-items: center;
}
.cierre__caja::before {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 640px;
  height: 640px;
  background: url('../img/logo-tinta.svg') no-repeat center / contain;
  opacity: 0.07;
  transform: rotate(-12deg);
  pointer-events: none;
}
.cierre h2 {
  font-size: clamp(2.3rem, 1.3rem + 4vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 11em;
}
.cierre p {
  font-size: var(--fs-lead);
  color: rgb(22 23 27 / 0.72);
  margin-top: 16px;
  max-width: 30em;
}
.cierre .botones {
  margin-top: 28px;
}
.cierre .btn--contorno {
  background: rgb(255 255 255 / 0.55);
  box-shadow: inset 0 0 0 1.5px rgb(22 23 27 / 0.15), 0 4px 0 rgb(22 23 27 / 0.15);
}
.qr {
  justify-self: start;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgb(60 80 0 / 0.5);
}
.qr img {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
}
.qr p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-600);
  max-width: 11em;
}
.qr b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  color: var(--ink);
  font-size: 1.05rem;
}
.letra-chica {
  margin-top: 22px !important;
  font-size: 0.82rem !important;
  color: rgb(22 23 27 / 0.6) !important;
}
@media (min-width: 960px) {
  .cierre__caja {
    grid-template-columns: 1fr auto;
  }
  .qr {
    justify-self: end;
    flex-direction: column;
    text-align: center;
    padding: 22px;
  }
  .qr img {
    width: 168px;
    height: 168px;
  }
}

/* ---- Pie ---- */

.pie {
  padding: 28px 0 48px;
  color: var(--ink-500);
  font-size: 0.88rem;
}
.pie__fila {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.pie nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.pie a {
  text-decoration: none;
  font-weight: 600;
}
.pie a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Movimiento reducido: todo quieto y en su estado final.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js .portada [data-entra] {
    opacity: 1;
    transform: none;
  }
  .cinta__pista,
  .pedidos__fila {
    animation: none !important;
  }
  .frase__pista {
    height: auto;
  }
  .frase__fija {
    position: relative;
    height: auto;
    padding: 90px 0;
  }
  .escena .tel {
    transform: none;
  }
  .frase__guia {
    display: none;
  }
}

/* ==========================================================================
   Caminos (28-nov): la pregunta del inicio y una página por perfil.
   El HTML lleva data-perfil en <html> (inicio | negocio | personal | familia | todo);
   cada pieza dice en cuáles sale con data-solo, o en cuál no con data-no.
   ========================================================================== */

main {
  display: flex;
  flex-direction: column;
}
main > * {
  min-width: 0;
}

html[data-perfil='inicio'] [data-solo]:not([data-solo~='inicio']),
html[data-perfil='negocio'] [data-solo]:not([data-solo~='negocio']),
html[data-perfil='personal'] [data-solo]:not([data-solo~='personal']),
html[data-perfil='familia'] [data-solo]:not([data-solo~='familia']),
html[data-perfil='todo'] [data-solo]:not([data-solo~='todo']),
html[data-perfil='negocio'] [data-no~='negocio'],
html[data-perfil='personal'] [data-no~='personal'],
html[data-perfil='familia'] [data-no~='familia'] {
  display: none !important;
}

/* En el camino de negocio, lo del negocio va antes que el agente. */
html[data-perfil='negocio'] #agente,
html[data-perfil='negocio'] #otros,
html[data-perfil='negocio'] #donde,
html[data-perfil='negocio'] #descargar {
  order: 1;
}

/* ---- El selector de camino, en la barra ---- */

.nav {
  view-transition-name: nav;
}
.nav__fila {
  height: auto;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 13px;
  row-gap: 10px;
}
.perfiles {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
  animation: perfiles-entra 0.5s var(--ease-out) both;
}
html[data-perfil='inicio'] .nav:not(.con-perfiles) .perfiles {
  display: none;
}
@keyframes perfiles-entra {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
}
.perfiles a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-600);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}
.perfiles a:hover,
.perfiles a[aria-current] {
  color: var(--ink);
}
.perfiles .ico {
  width: 16px;
  height: 16px;
}
.perfiles__pildora {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--pw, 0);
  transform: translateX(var(--px, 0));
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 2px 0 var(--lime-edge);
  opacity: var(--po, 0);
  transition: transform 0.5s var(--ease-spring), width 0.5s var(--ease-spring), opacity 0.2s ease;
}
.perfiles.sin-salto .perfiles__pildora {
  transition: none;
}
@media (min-width: 900px) {
  .nav__fila {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .nav__logo {
    grid-column: 1;
    justify-self: start;
  }
  .perfiles {
    grid-column: 2;
  }
  .nav__fila > .btn,
  .nav__acciones {
    grid-column: 3;
    justify-self: end;
  }
}
@media (max-width: 899px) {
  .perfiles {
    order: 3;
    flex: 1 0 100%;
    background: var(--surface);
  }
  .perfiles a {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    font-size: 0.86rem;
  }
  .perfiles a span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html:not([data-perfil='inicio']) {
    scroll-padding-top: 136px;
  }
  html:not([data-perfil='inicio']) .portada {
    padding-top: 150px;
  }
}
@media (max-width: 439px) {
  .perfiles .ico {
    display: none;
  }
}

/* ---- La pregunta: sin scroll ---- */

.pregunta {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 84px 0 22px;
  overflow: clip;
}
.pregunta .portada__brillo {
  top: -320px;
  transition: filter 0.7s ease;
}
.pregunta[data-foco='negocio'] .portada__brillo {
  filter: hue-rotate(95deg);
}
.pregunta[data-foco='familia'] .portada__brillo {
  filter: hue-rotate(-48deg) saturate(1.3);
}
.pregunta[data-foco='todo'] .portada__brillo {
  filter: hue-rotate(-20deg);
}
.pregunta__dentro {
  position: relative;
  z-index: 2;
  text-align: center;
}
.pregunta h1 {
  font-size: clamp(2.4rem, 1rem + 5.4vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.pregunta__sub {
  font-size: var(--fs-lead);
  color: var(--ink-600);
  margin: 16px auto 0;
  max-width: 30em;
  text-wrap: balance;
}
@media (max-width: 899px) {
  .pregunta {
    padding-top: 78px;
  }
  .opcion {
    padding: 14px 14px 16px;
    border-radius: 22px;
  }
  .opcion__3d {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
  }
  .opcion small {
    font-size: 0.82rem;
  }
  .opcion__ir {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 600px) {
  .pregunta__pie > span {
    display: none;
  }
}
.js .pregunta [data-entra] {
  opacity: 0;
  transform: translateY(18px);
  animation: entra 0.8s var(--ease-out) forwards;
  animation-delay: calc(0.08s + var(--i, 0) * 0.09s);
}
.js .pregunta .marca-lima::after {
  animation: trazo 0.8s var(--ease-out) 0.6s both;
}

/* El copiloto pregunta: tres puntos y luego la frase, letra a letra. */
.copiloto {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-top: clamp(20px, 3.4vh, 36px);
}
.copiloto__avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.copiloto__avatar img {
  width: 26px;
  height: 26px;
}
.copiloto__globo {
  display: inline-grid;
  align-items: center;
  min-height: 52px;
  padding: 11px 20px;
  border-radius: 22px 22px 22px 6px;
  background: var(--surface);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.1rem, 0.92rem + 0.8vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
}
.copiloto__puntos,
.copiloto__texto {
  grid-area: 1 / 1;
}
.copiloto__puntos {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.copiloto.pensando .copiloto__puntos {
  opacity: 1;
}
.copiloto__puntos i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-400);
  animation: puntito 1s ease-in-out infinite;
}
.copiloto__puntos i:nth-child(2) {
  animation-delay: 0.15s;
}
.copiloto__puntos i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes puntito {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.copiloto__texto .l {
  opacity: 0;
  transition: opacity 0.12s ease;
}
.copiloto__texto .l.on {
  opacity: 1;
}

/* Las cuatro respuestas. */
.opciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: clamp(18px, 3.2vh, 32px) auto 0;
}
.opcion {
  --tinte: var(--lime-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 16px 16px 18px;
  border-radius: 24px;
  background: var(--surface);
  background: linear-gradient(168deg, color-mix(in srgb, var(--tinte) 78%, #fff) 0%, var(--surface) 64%);
  box-shadow: inset 0 0 0 1.5px var(--ink-200), 0 5px 0 var(--ink-200);
  text-decoration: none;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.opcion:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1.5px var(--ink-300), 0 9px 0 var(--ink-300), 0 30px 44px -26px rgb(22 23 27 / 0.35);
}
.opcion:active {
  transform: translateY(5px);
  box-shadow: inset 0 0 0 1.5px var(--ink-300), 0 0 0 var(--ink-300);
  transition-duration: 0.08s;
}
.opcion__3d {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 10px 12px rgb(22 23 27 / 0.16));
  transition: transform 0.55s var(--ease-spring);
}
.opcion:hover .opcion__3d {
  transform: translateY(-5px) rotate(-8deg) scale(1.12);
}
.opcion b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.02rem, 0.92rem + 0.45vw, 1.32rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.opcion small {
  color: var(--ink-600);
  font-size: 0.86rem;
  line-height: 1.35;
}
.opcion__tags {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}
.opcion__tags span {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--ink-700);
  white-space: nowrap;
}
.opcion__ir {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.35s var(--ease-spring);
}
.opcion__ir .ico {
  width: 16px;
  height: 16px;
}
.opcion:hover .opcion__ir {
  background: var(--ink);
  color: var(--lime);
  transform: translateX(3px);
}
.js .pregunta .opcion {
  animation: opcion-entra 0.75s var(--ease-out) backwards;
  animation-delay: calc(0.55s + var(--i, 0) * 0.08s);
}
@keyframes opcion-entra {
  from {
    opacity: 0;
    translate: 0 26px;
    scale: 0.96;
  }
}
@media (min-width: 900px) {
  .opciones {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 900px) and (min-height: 700px) {
  .opcion {
    min-height: 238px;
    padding: 22px 20px 20px;
  }
  .opcion__3d {
    width: 66px;
    height: 66px;
  }
  .opcion__tags {
    display: flex;
  }
}

.pregunta__pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: clamp(16px, 2.6vh, 28px);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-500);
}
.pregunta__pie a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-700);
  text-decoration: none;
}
.pregunta__pie a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pregunta__pie .ico {
  animation: baja 1.6s ease-in-out infinite;
}

@media (max-height: 760px) {
  .pregunta__sub {
    display: none;
  }
}
@media (max-width: 899px) and (max-height: 640px) {
  .pregunta {
    padding-top: 76px;
  }
  .pregunta h1 {
    font-size: 2.15rem;
  }
  .copiloto {
    margin-top: 14px;
  }
  .copiloto__globo {
    min-height: 44px;
    padding: 9px 16px;
  }
  .opcion {
    padding: 12px 12px 14px;
  }
  .opcion__3d {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
  }
  .opcion small {
    display: none;
  }
  .opcion__ir {
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
  }
  .pregunta__pie {
    margin-top: 12px;
  }
  .pregunta__pie > span {
    display: none;
  }
}

/* Trozos de la app flotando alrededor (solo pantallas grandes). */
.frags {
  display: none;
}
@media (min-width: 1180px) and (min-height: 700px) {
  .frags {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
}
.frag {
  --lado: max(14px, calc(50% - 700px));
  position: absolute;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0 10px;
  align-items: center;
  /* a su texto (inglés y portugués son más largos), sin pasar de 290 */
  width: max-content;
  min-width: 244px;
  max-width: 290px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
  translate: calc(var(--mx, 0) * var(--z) * 1px) calc(var(--my, 0) * var(--z) * 1px);
  opacity: 0.92;
  transition: opacity 0.45s ease, scale 0.55s var(--ease-spring), filter 0.45s ease;
  animation: frag-entra 1s var(--ease-out) backwards, flota 7s ease-in-out infinite;
  animation-delay: calc(0.9s + var(--k, 0) * 0.1s), calc(var(--k, 0) * -1.1s);
}
@keyframes frag-entra {
  from {
    opacity: 0;
    scale: 0.85;
  }
}
.frag .ficha,
.frag .cara {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.frag .cara {
  --t: 36px;
  border-radius: 50%;
  box-shadow: none;
}
.frag .ficha .ico {
  width: 18px;
  height: 18px;
}
.ficha--logo {
  overflow: hidden;
}
.ficha--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frag b {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frag small {
  grid-column: 2;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--ink-500);
  white-space: nowrap;
}
.frag .monto {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.frag--logo {
  display: block;
  width: 66px;
  height: 66px;
  padding: 8px;
  border-radius: 22px;
}
.frag--logo img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
}
.frag--caras {
  display: flex;
  width: auto;
  padding: 8px 10px;
  border-radius: 999px;
}
.frag--caras .cara {
  --t: 40px;
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 3px #fff;
}
.frag--caras .cara + .cara {
  margin-left: -10px;
}
.frag:nth-child(1) { --k: 0; top: 12%; left: var(--lado); }
.frag:nth-child(2) { --k: 1; top: 38%; left: var(--lado); }
.frag:nth-child(3) { --k: 2; top: 13%; right: var(--lado); }
.frag:nth-child(4) { --k: 3; top: 37%; right: var(--lado); }
.frag:nth-child(5) { --k: 4; top: 25%; left: calc(var(--lado) + 92px); }
.frag:nth-child(6) { --k: 5; top: 24.5%; right: calc(var(--lado) + 96px); }
.frag:nth-child(7) { --k: 6; bottom: 7%; right: calc(var(--lado) + 30px); }
.frag:nth-child(8) { --k: 7; bottom: 7%; left: calc(var(--lado) + 40px); }
.c-venta {
  background: var(--aqua);
  color: #1f6f6c;
}
.c-calc {
  background: var(--cream);
  color: #7a5d00;
}
.pregunta[data-foco] .frag {
  opacity: 0.22;
  filter: saturate(0.4);
}
.pregunta[data-foco='negocio'] .frag[data-de~='negocio'],
.pregunta[data-foco='personal'] .frag[data-de~='personal'],
.pregunta[data-foco='familia'] .frag[data-de~='familia'],
.pregunta[data-foco='todo'] .frag {
  opacity: 1;
  filter: none;
  scale: 1.07;
}

/* ---- El encabezado de cada camino ---- */

.perfil-ceja {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.perfil-ceja img {
  width: 34px;
  height: 34px;
  view-transition-name: perfil-icono;
}
.portada h1 .linea--chica {
  font-size: 0.6em;
  margin-top: 0.3em;
  letter-spacing: -0.03em;
}
.portada--negocio .portada__brillo {
  filter: hue-rotate(95deg);
}
.portada--familia .portada__brillo {
  filter: hue-rotate(-48deg) saturate(1.3);
}
.portada--todo .portada__brillo {
  filter: hue-rotate(-20deg);
}

/* Familia: las caras flotan y los avisos se apilan. */
.escena--familia .orbita--cab .cara {
  --t: 60px;
  animation: flota 6s ease-in-out infinite;
  z-index: 3;
}
.escena--familia .orbita--cab .cara--ana {
  animation-delay: -2s;
}
.escena--familia .orbita--cab .cara--cata {
  animation-delay: -4s;
}
.pila-avisos {
  position: absolute;
  z-index: 5;
  top: 9%;
  left: 50%;
  width: min(300px, 94%);
  translate: -50% 0;
}
.noti {
  --k: 0;
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px 11px 11px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
  transform: translateY(calc(var(--k) * 13px)) scale(calc(1 - var(--k) * 0.06));
  opacity: calc(1 - var(--k) * 0.3);
  z-index: calc(10 - var(--k));
  transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
}
.noti > * {
  transition: opacity 0.3s ease;
}
.noti:not(:first-child) > * {
  opacity: 0;
}
.noti:not(:first-child) {
  background: rgb(250 250 250 / 0.97);
}
.noti.entra {
  transform: translateY(-28px) scale(0.94);
  opacity: 0;
}
.noti.sale {
  opacity: 0;
}
.noti .cara {
  --t: 38px;
  box-shadow: none;
}
.noti .ficha {
  grid-row: auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex: none;
}
.noti .ficha .ico {
  width: 18px;
  height: 18px;
}
.noti span:nth-child(2) {
  min-width: 0;
}
.noti b {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.noti small {
  display: block;
  color: var(--ink-500);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.noti .monto {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Negocio: lo que se vende hoy, flotando junto al punto de venta. */
.escena--negocio .pila-avisos {
  top: 7%;
}
.kpi-flota {
  position: absolute;
  z-index: 4;
  right: calc(50% - var(--w) * 0.5 - 96px);
  bottom: 13%;
  width: 224px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
  animation: flota 7s ease-in-out -2s infinite;
}
.kpi-flota small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.kpi-flota b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.kpi-flota span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-500);
}
.mini-barras {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-top: 10px;
}
.mini-barras i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: var(--lime);
  transform-origin: bottom;
  animation: barra-sube 0.9s var(--ease-spring) backwards;
}
.mini-barras i:last-child {
  background: var(--ink);
}
.mini-barras i:nth-child(1) { animation-delay: 0.8s; }
.mini-barras i:nth-child(2) { animation-delay: 0.87s; }
.mini-barras i:nth-child(3) { animation-delay: 0.94s; }
.mini-barras i:nth-child(4) { animation-delay: 1.01s; }
.mini-barras i:nth-child(5) { animation-delay: 1.08s; }
.mini-barras i:nth-child(6) { animation-delay: 1.15s; }
.mini-barras i:nth-child(7) { animation-delay: 1.22s; }
@keyframes barra-sube {
  from {
    transform: scaleY(0);
  }
}

/* Todo: tres teléfonos que se abren en abanico. */
.abanico {
  --aw: 220px;
  position: relative;
  height: calc(var(--aw) * 2.42 + 60px);
  display: grid;
  place-items: center;
}
.abanico__tel {
  position: absolute;
  width: var(--aw);
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  transition: transform 0.7s var(--ease-spring);
}
.abanico__tel .tel {
  --w: var(--aw);
  width: var(--aw);
}
.abanico__tel figcaption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--hairline);
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.86rem;
}
.abanico__tel figcaption .ico {
  width: 15px;
  height: 15px;
}
.abanico__tel--a {
  transform: translateX(-60%) translateY(28px) rotate(-9deg);
}
.abanico__tel--c {
  transform: translateX(60%) translateY(28px) rotate(9deg);
}
.abanico__tel--b {
  z-index: 2;
}
.abanico:hover .abanico__tel--a {
  transform: translateX(-68%) translateY(34px) rotate(-12deg);
}
.abanico:hover .abanico__tel--c {
  transform: translateX(68%) translateY(34px) rotate(12deg);
}
.js .abanico__tel {
  animation: abanico-abre 1.1s var(--ease-out) backwards;
}
.js .abanico__tel--a,
.js .abanico__tel--c {
  animation-delay: 0.45s;
}
.js .abanico__tel--b {
  animation-delay: 0.25s;
}
@keyframes abanico-abre {
  from {
    opacity: 0;
    transform: translateY(70px) scale(0.92);
  }
}

@media (max-width: 760px) {
  .escena--familia .orbita--cab .cara {
    --t: 48px;
  }
  .pila-avisos {
    top: 3%;
  }
  .escena--negocio .pila-avisos {
    top: 2%;
  }
  .kpi-flota {
    right: 0;
    bottom: 5%;
    width: 178px;
    padding: 10px 12px;
  }
  .kpi-flota b {
    font-size: 1.3rem;
  }
  .kpi-flota span {
    font-size: 0.7rem;
  }
  .mini-barras {
    height: 30px;
  }
  .abanico {
    --aw: 150px;
  }
}

/* ---- Presupuestos (nueva) ---- */

.presupuestos {
  overflow: clip;
}
.presupuestos .rejilla-2 {
  align-items: center;
}
.pres {
  width: min(470px, 100%);
  padding: 22px 20px 18px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline);
}
.pres__cab {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.pres__cab small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.pres__cab b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.pres__total {
  text-align: right;
}
.pres__total b {
  display: block;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.pres__total small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.pres__area {
  position: relative;
  margin-top: 16px;
  height: 300px;
}
.pres__guias {
  position: absolute;
  inset: 14px 0 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pres__guias i {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-200) 12%, var(--ink-200) 88%, transparent);
}
.pres__barras {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.barra-p {
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}
.barra-p__col {
  position: relative;
  width: 100%;
  height: 100%;
  margin-bottom: 4px;
}
.barra-p__uso,
.barra-p__sil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px;
}
.barra-p__uso {
  height: calc(var(--uso) * 100%);
  background: linear-gradient(180deg, var(--color), color-mix(in srgb, var(--color) 72%, var(--tinta)));
  transform-origin: bottom;
  transform: scaleY(0);
  transition: height 0.9s var(--ease-spring), transform 1.2s var(--ease-out);
}
.es-visible .barra-p__uso {
  transform: none;
}
.barra-p__sil {
  z-index: 2;
  height: calc(var(--tope) * 100%);
  border: 2px dashed color-mix(in srgb, var(--tinta) 42%, transparent);
  pointer-events: none;
}
.barra-p__pct {
  position: absolute;
  left: 50%;
  bottom: calc(max(var(--uso), var(--tope)) * 100% + 6px);
  translate: -50% 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--tinta);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: bottom 0.9s var(--ease-spring);
}
.barra-p__ficha {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color);
  color: var(--tinta);
}
.barra-p__ficha .ico {
  width: 15px;
  height: 15px;
}
.barra-p small {
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.barra-p b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.barra-p.latido .barra-p__uso {
  animation: latido 0.5s var(--ease-spring);
}
@keyframes latido {
  40% {
    filter: brightness(1.08);
    transform: scaleX(1.06);
  }
}
.pres__chip {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-float);
}

/* ---- Metas de la casa (nueva) ---- */

.metas {
  background: linear-gradient(180deg, var(--page), #fbf3ec 50%, var(--page));
}
.metas__fila {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 860px) {
  .metas__fila {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.meta {
  display: grid;
  gap: 10px;
  padding: 26px 24px 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
}
.meta__aro {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
}
.meta__aro::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--color);
}
.meta__aro svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.meta__aro circle {
  fill: none;
  stroke-width: 6;
}
.meta__fondo {
  stroke: var(--ink-100);
}
.meta__avance {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 213.63;
  stroke-dashoffset: 213.63;
  transition: stroke-dashoffset 1.5s var(--ease-out) 0.35s;
}
.meta.es-visible .meta__avance {
  stroke-dashoffset: calc(213.63 * (1 - var(--p)));
}
.meta__aro img {
  position: relative;
  width: 42px;
  height: 42px;
}
.meta h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  margin-top: 6px;
}
.meta__cifras {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.meta__cifras b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.meta__cifras span {
  color: var(--ink-500);
  font-size: 0.92rem;
}
.meta__barra {
  height: 10px;
  border-radius: 99px;
  background: var(--ink-100);
  overflow: hidden;
}
.meta__barra i {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  border-radius: inherit;
  background: var(--lime);
  box-shadow: inset 0 -2px 0 var(--lime-edge);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.5s var(--ease-out) 0.35s;
}
.meta.es-visible .meta__barra i {
  transform: none;
}
.meta__pie {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-500);
}
.meta__pie span:first-child {
  color: var(--ink);
  font-weight: 800;
}

/* ---- Números del negocio (nueva) ---- */

.numeros {
  overflow: clip;
}
.numeros .rejilla-2 {
  align-items: center;
}
.numeros__escena {
  --w: 300px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px 0;
}
.numeros__escena .tel {
  --w: 300px;
}
.curva,
.fiado {
  position: absolute;
  z-index: 3;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
}
.curva {
  left: calc(50% + var(--w) * 0.5 - 70px);
  top: 16%;
  width: 250px;
  padding: 14px 16px 10px;
}
.curva small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.curva b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.curva svg {
  width: 100%;
  height: 60px;
  margin-top: 6px;
  overflow: visible;
}
.curva__linea {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.5s;
}
.curva.es-visible .curva__linea {
  stroke-dashoffset: 0;
}
.curva__area {
  opacity: 0;
  transition: opacity 0.9s ease 1.3s;
}
.curva.es-visible .curva__area {
  opacity: 1;
}
.fiado {
  right: calc(50% + var(--w) * 0.5 - 110px);
  bottom: 14%;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 272px;
  padding: 12px 16px 12px 12px;
}
.cara--fiado {
  --t: 40px;
  background: var(--butter);
  box-shadow: none;
}
.fiado b {
  display: block;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1.25;
}
.fiado small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-500);
}
.fiado .monto {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}
@media (min-width: 560px) {
  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.kpis > div {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
}
.kpis small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpis b {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .numeros__escena {
    --w: 250px;
  }
  .numeros__escena .tel {
    --w: 250px;
  }
  .curva {
    left: auto;
    right: 0;
    top: 4%;
    width: 196px;
    padding: 10px 12px 8px;
  }
  .curva b {
    font-size: 1.2rem;
  }
  .curva svg {
    height: 40px;
  }
  .fiado {
    right: auto;
    left: 0;
    bottom: 6%;
    width: 220px;
  }
}

/* ---- Cambiar de camino (nueva) ---- */

.otros__fila {
  display: grid;
  gap: 14px;
  margin-top: 44px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.otros .opcion {
  min-height: 200px;
  padding: 22px 20px;
}
.otros .opcion__3d {
  width: 64px;
  height: 64px;
}

/* ---- El paso de un camino a otro (View Transitions) ---- */

::view-transition-old(root) {
  animation: vt-sale 0.24s cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-entra 0.6s var(--ease-out) 0.08s both;
}
::view-transition-group(perfil-icono) {
  animation-duration: 0.72s;
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.25, 1.04);
}
/* La barra no se funde: se muestra viva y la pastilla lima se desliza con su propia transición. */
::view-transition-old(nav) {
  display: none;
}
::view-transition-new(nav) {
  animation: none;
}
@keyframes vt-sale {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}
@keyframes vt-entra {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .pregunta .opcion,
  .frag,
  .js .abanico__tel,
  .kpi-flota,
  .mini-barras i,
  .perfiles,
  .escena--familia .orbita--cab .cara {
    animation: none !important;
  }
  .js .pregunta [data-entra] {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .copiloto__puntos {
    display: none;
  }
  .copiloto__texto .l {
    opacity: 1;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Idiomas: menú en la barra, enlaces en el pie y comillas de cada idioma.
   -------------------------------------------------------------------------- */
.nav__acciones {
  display: flex;
  align-items: center;
  gap: 8px;
}
.idioma {
  position: relative;
}
.idioma summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  min-width: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--ink-600);
  background: rgb(255 255 255 / 0.78);
  box-shadow: inset 0 0 0 1px var(--hairline);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.idioma summary::-webkit-details-marker {
  display: none;
}
.idioma summary:hover,
.idioma[open] summary {
  color: var(--ink);
  background: var(--surface);
}
.idioma summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.idioma summary .ico {
  width: 17px;
  height: 17px;
}
.idioma__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 184px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 18px 40px -14px rgb(22 23 27 / 0.28);
  transform-origin: top right;
  animation: idioma-abre 0.18s var(--ease-out);
}
@keyframes idioma-abre {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}
.idioma__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-600);
}
.idioma__menu a:hover,
.idioma__menu a:focus-visible {
  background: var(--ink-100);
  color: var(--ink);
}
.idioma__menu a[aria-current] {
  color: var(--ink);
  font-weight: 800;
}
.idioma__menu .ico {
  width: 16px;
  height: 16px;
  color: var(--lime-edge);
}
@media (max-width: 419px) {
  .idioma summary {
    padding: 8px;
  }
  .idioma summary span {
    display: none;
  }
}
.pie__idiomas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pie__idiomas .ico {
  width: 16px;
  height: 16px;
}
.pie__idiomas a[aria-current] {
  color: var(--ink);
}

:lang(en) .portada__sub q,
:lang(pt) .portada__sub q {
  quotes: '“' '”';
}
:lang(en) .pedidos span::before,
:lang(pt) .pedidos span::before {
  content: '“';
}
:lang(en) .pedidos span::after,
:lang(pt) .pedidos span::after {
  content: '”';
}

@media (prefers-reduced-motion: reduce) {
  .idioma__menu {
    animation: none;
  }
}
