/*
 * Portada de HarmonFlow (body.home): portada, escaparate con móvil fijo y scroll (storytelling),
 * cuadrícula bento y pasos. Usa los tokens de landing.css (tema oscuro por defecto y claro si el sistema
 * lo pide). Solo afecta a la portada.
 */
.home {
  --glow: rgba(16, 185, 129, .10);
  --card-hover: rgba(16, 185, 129, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.home .wrap { max-width: 1200px; padding: 0 24px; }
.home svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home .glow { position: absolute; pointer-events: none; z-index: 0; }
.home .glow-hero { width: 720px; height: 720px; right: -160px; top: -220px; background: radial-gradient(closest-side, var(--glow), transparent); }
.home .glow-final { width: 520px; height: 520px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); }

/* Secciones: divisor con degradado */
.home section.block { border-top: 0; position: relative; padding: 104px 0; }
.home section.block::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent); }
.home .section-head { max-width: 760px; margin-bottom: 48px; }
.home .section-head h2 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.025em; line-height: 1.05; }

/* ------------------------------ Marco de móvil ------------------------------ */
.device {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #263142, #0b0f17 55%); border: 1px solid #334155;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.device picture, .device img { display: block; width: 100%; height: 100%; }
.device img { border-radius: 36px; object-fit: cover; background: #0b0f17; }
@media (prefers-color-scheme: light) {
  .device { background: linear-gradient(160deg, #e2e8f0, #cbd5e1 60%); border-color: #cbd5e1; box-shadow: 0 30px 60px rgba(15, 23, 42, .18); }
}

/* ------------------------------ Portada ------------------------------ */
.home .hero { position: relative; padding: 80px 0 40px; overflow: hidden; }
.home .hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.home .hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -.035em; margin: 14px 0 20px; }
.home .hero .copy { padding-bottom: 0; }
.home .trust { list-style: none; padding: 0; }
.home .trust li::before { content: "✓"; color: var(--accent-text); font-weight: 800; margin-right: 6px; }
.home .hero-device { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.home .hero-device { perspective: 1400px; }
.home .hero-device .device { max-width: 300px; transform: rotateY(-18deg) rotateX(8deg) rotateZ(-3deg); transform-origin: 50% 60%; will-change: transform; }
.home .float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
  animation: hf-float 6s ease-in-out infinite;
}
.home .float-card .fc-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.home .float-card .fc-ico svg { width: 19px; height: 19px; }
.home .float-card .fc-text { display: flex; flex-direction: column; line-height: 1.25; }
.home .float-card .fc-label { font-size: 12px; color: var(--muted-strong); }
.home .float-card strong { font-size: 16px; color: var(--accent-text); }
.home .fc-1 { left: -6%; top: 40%; }
.home .fc-2 { right: 0; bottom: 22%; animation-delay: -3s; }
@keyframes hf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ------------------------------ Funciones: tres composiciones ------------------------------
   A) primer plano alternando lado + zoom de detalle, B) escaparate central en tres planos, C) bento con
   fragmentos ampliados. Quieto sin JavaScript; home.js anima con GSAP (solo transform y opacity). */
.home .section-head.center { margin: 0 auto 40px; text-align: center; }
.home .section-head.center p { margin-left: auto; margin-right: auto; max-width: 40em; font-size: 19px; color: var(--muted-strong); }
.home .feat-intro { padding-bottom: 24px; }
.home .feat-intro .section-head h2 { font-size: clamp(36px, 6vw, 68px); }
.home .scene { position: relative; padding: 80px 0; overflow-x: clip; }

/* Bloque A: texto y móvil, alternando lado */
.home .scene-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.home .scene-grid.flip .scene-copy { order: 2; }
.home .scene-copy h3 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; margin: 12px 0 18px; }
.home .scene-copy p { font-size: 20px; color: var(--muted-strong); max-width: 30em; margin: 0; }
.home .stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 32px 0 0; }
.home .stats dt { font-size: clamp(34px, 3.8vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.home .stats dd { margin: 8px 0 0; font-size: 14px; color: var(--muted-strong); max-width: 13em; }
.home .scene-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.home .a1-phone, .home .a2-phone { width: min(330px, 78vw, calc((100vh - 150px) * 390 / 844)); max-width: none; will-change: transform; }
.home .a2-track { height: 210vh; }
.home .a2-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.home .a2-screen { position: absolute; inset: 10px; border-radius: 36px; overflow: hidden; background: #0b0f17; }
.home .a2-zoom { position: absolute; inset: 0; transform-origin: 50% 33%; will-change: transform; }
.home .a2-zoom picture { position: absolute; inset: 0; }
/* Tarjeta «Viaje» en relieve */
.home .relief { position: absolute; z-index: 3; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line);
  border-radius: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04) inset; will-change: transform, opacity; }
.home .a2-goal { right: -6%; top: 36%; width: min(320px, 82%); padding: 18px; display: grid; gap: 6px; }
.home .rg-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 19px; }
.home .rg-pct { font-size: 26px; font-weight: 800; color: var(--accent-text); letter-spacing: -.02em; }
.home .rg-sub { font-size: 13px; color: var(--muted-strong); }
.home .rg-bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 6px 0 8px; }
.home .rg-bar i { display: block; height: 100%; width: 63%; border-radius: 4px; background: var(--accent); transform-origin: 0 50%; }
.home .rg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home .rg-split > span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.home .rg-split em { font-style: normal; font-size: 12px; color: var(--muted-strong); }
.home .rg-split b { font-size: 17px; }
.home .rg-split b.free { color: var(--accent-text); }

/* Bloque B: tarjeta conjunta, móvil recortado en perspectiva y liquidación */
.home .b-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: 16px; }
.home .b-phone-wrap { position: relative; height: 560px; overflow: hidden; perspective: 1400px; z-index: 1;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.home .b-phone { width: 330px; max-width: none; transform: rotateX(16deg); transform-origin: 50% 0; will-change: transform; }
.home .b-card { position: relative; z-index: 2; width: min(340px, 100%); padding: 20px; display: grid; gap: 10px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45); will-change: transform, opacity; }
.home .b-left { justify-self: end; margin-right: -70px; }
.home .b-right { justify-self: start; margin-left: -70px; }
.home .bc-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.home .bc-cap { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-strong); margin-top: 4px; }
.home .bc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.home .bc-row.big b { font-size: 26px; letter-spacing: -.02em; }
.home .bc-row.pill { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.home .bc-row i { font-style: normal; color: var(--muted-strong); }
.home .bc-row b.pos { color: var(--accent-text); }
.home .bc-row.hot { border-color: rgba(16, 185, 129, .6); box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); font-weight: 700; }
.home .bc-row.hot b, .home .b-right .bc-row b { color: #fca5a5; }
.home .bc-btn { display: block; text-align: center; padding: 11px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; }

/* Bloque C: bento asimétrico */
.home .c-bento { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.home .c-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px;
  display: flex; flex-direction: column; gap: 22px; }
.home .c-notice { grid-row: span 2; }
.home .c-text h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; }
.home .c-text p { margin: 0; color: var(--muted-strong); font-size: 16.5px; }
.home .c-macro { position: relative; height: 300px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #0b0f17; container-type: inline-size; }
.home .macro-crop { position: absolute; left: 0; top: 0; width: 200%; transform-origin: 7.7% 8.1%; will-change: transform; }
.home .macro-crop picture, .home .macro-crop img { display: block; width: 100%; height: auto; border-radius: 0; }
.home .macro-ring { position: absolute; left: 15.4cqw; top: 34.9cqw; width: 22cqw; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 3px solid #f87171; animation: hf-ping 1.6s var(--ease) infinite; }
@keyframes hf-ping { 0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .55); } 100% { box-shadow: 0 0 0 18px rgba(248, 113, 113, 0); } }
.home .c-notice .c-macro { flex: 1; min-height: 300px; height: auto; }
.home .c-noticecard { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0, 0, 0, .35); margin-top: -64px; position: relative; z-index: 1; will-change: transform, opacity; }
.home .nc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.home .nc-ico svg { width: 21px; height: 21px; }
.home .nc-body { display: grid; gap: 3px; min-width: 0; }
.home .nc-title { font-weight: 800; font-size: 17px; }
.home .nc-title em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; background: var(--accent-soft); color: var(--accent-text); vertical-align: 2px; }
.home .nc-sub { font-size: 13px; color: var(--muted-strong); line-height: 1.35; }
.home .nc-amt { font-size: 17px; }
/* Buscador */
.home .s-mock { display: grid; gap: 10px; margin-top: auto; }
.home .s-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--accent); background: var(--surface-2); font-size: 18px; }
.home .s-bar svg { width: 20px; height: 20px; color: var(--muted-strong); }
.home .s-caret { width: 2px; height: 22px; background: var(--accent); animation: hf-blink 1s steps(1) infinite; }
@keyframes hf-blink { 50% { opacity: 0; } }
.home .s-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.home .s-results li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n a" "m a"; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.home .s-results b { grid-area: n; font-size: 15px; } .home .s-results span { grid-area: m; font-size: 12.5px; color: var(--muted-strong); }
.home .s-results em { grid-area: a; align-self: center; font-style: normal; font-weight: 800; color: #fca5a5; }
.home .s-results [hidden] { display: none; }
.home .s-results li.wait { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.home .s-results li.wait.in { opacity: 1; transform: none; }
/* Inversión */
.home .i-figs { display: grid; gap: 6px; margin-top: auto; }
.home .i-big { font-size: clamp(48px, 6vw, 72px); line-height: 1; letter-spacing: -.04em; color: var(--accent-text); }
.home .i-sub { color: var(--muted-strong); font-size: 14px; }
.home .i-calc { margin: 14px 0 0; display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.home .i-calc > div { display: flex; justify-content: space-between; font-size: 14.5px; }
.home .i-calc dt { color: var(--muted-strong); } .home .i-calc dd { margin: 0; font-weight: 700; }
.home .i-calc dd.neg { color: #fca5a5; }
.home .i-calc .net { padding-top: 8px; border-top: 1px solid var(--line); }
.home .i-calc .net dt { color: var(--ink); font-weight: 700; } .home .i-calc .net dd { color: var(--accent-text); font-size: 17px; }
@media (prefers-color-scheme: light) {
  .home .bc-row.hot b, .home .b-right .bc-row b, .home .s-results em, .home .i-calc dd.neg { color: #b91c1c; }
}

/* ------------------------------ Bento ------------------------------ */
.home .bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.home .bento-card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.home .bento-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(16, 185, 129, .10), transparent 60%); }
.home .bento-card:hover { transform: translateY(-4px); border-color: var(--card-hover); box-shadow: 0 24px 48px rgba(0, 0, 0, .22); }
.home .bento-card:hover::after { opacity: 1; }
.home .bento-card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; margin: 14px 0 8px; }
.home .bento-card p { color: var(--muted-strong); margin: 0; font-size: 16px; }
.home .b-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text);
  transition: transform .4s var(--ease); }
.home .bento-card:hover .b-ico { transform: rotate(-8deg) scale(1.06); }
.home .b-sync { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.home .b-sync h3 { font-size: clamp(24px, 2.6vw, 32px); }
.home .b-lang, .home .b-speed { grid-column: span 1; }
.home .b-privacy { grid-column: span 2; }
.home .b-reports { grid-column: span 4; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico title fmt" "ico text fmt"; column-gap: 24px; align-items: center; }
.home .b-reports .b-ico { grid-area: ico; }
.home .b-reports h3 { grid-area: title; margin: 0 0 4px; align-self: end; }
.home .b-reports p { grid-area: text; align-self: start; max-width: 46em; }
.home .b-reports .formats { grid-area: fmt; margin-top: 0; }

.home .sync-visual { margin-top: auto; padding-top: 32px; display: flex; align-items: center; justify-content: center; gap: 0; }
.home .sv-dev, .home .sv-cloud { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted-strong); flex: none; }
.home .sv-cloud { width: 78px; height: 78px; border-radius: 50%; color: var(--accent-text); background: var(--accent-soft); border-color: rgba(16, 185, 129, .45); }
.home .sv-cloud svg { width: 30px; height: 30px; animation: hf-spin 6s linear infinite; }
.home .sv-dev svg { width: 28px; height: 28px; }
.home .sv-line { position: relative; flex: 1; max-width: 120px; height: 2px; background: var(--line); overflow: hidden; }
.home .sv-line i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--accent); animation: hf-flow 2.4s var(--ease) infinite; }
.home .sv-line.rev i { animation-direction: reverse; }
@keyframes hf-flow { to { left: 100%; } }
@keyframes hf-spin { to { transform: rotate(360deg); } }

.home .langs { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.home .langs li { text-align: center; padding: 6px 0; border-radius: 10px; border: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--muted-strong);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.home .b-lang:hover .langs li { border-color: rgba(16, 185, 129, .45); }
.home .b-lang:hover .langs li:nth-child(odd) { background: var(--accent-soft); color: var(--accent-text); }

.home .checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.home .checks li { position: relative; padding-left: 26px; color: var(--ink); font-size: 15px; }
.home .checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 900; }

.home .b-stat { display: flex; flex-direction: column; gap: 4px; margin-top: 4px !important; }
.home .b-stat strong { font-size: 40px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.home .b-stat span { font-size: 14px; }

.home .formats { display: flex; gap: 8px; margin-top: 18px; }
.home .fmt { padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; letter-spacing: .04em; border: 1px solid var(--line); transition: transform .3s var(--ease); }
.home .fmt.pdf { color: #fca5a5; } .home .fmt.xlsx { color: #6ee7b7; } .home .fmt.csv { color: #93c5fd; }
@media (prefers-color-scheme: light) { .home .fmt.pdf { color: #b91c1c; } .home .fmt.xlsx { color: #047857; } .home .fmt.csv { color: #1d4ed8; } }
.home .b-reports:hover .fmt { transform: translateY(-3px); }
.home .b-reports:hover .fmt.xlsx { transition-delay: .05s; } .home .b-reports:hover .fmt.csv { transition-delay: .1s; }

/* Pasos y cierre */
.home .steps { list-style: none; padding: 0; margin: 0; }
.home .step { position: relative; border-radius: 20px; }
.home .final .final-card { position: relative; overflow: hidden; border-radius: 28px; }
/* El resplandor sigue flotando (absoluto); solo el contenido se coloca por encima de él */
.home .final .final-card > *:not(.glow) { position: relative; z-index: 1; }

/* Aparición escalonada */
.js .home .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.js .home .reveal.in { opacity: 1; transform: none; }

/* ------------------------------ Tableta ------------------------------ */
@media (max-width: 1100px) {
  .home .bento { grid-template-columns: repeat(2, 1fr); }
  .home .b-sync, .home .b-privacy { grid-column: span 2; }
  .home .b-reports { grid-column: span 2; grid-template-columns: auto 1fr; grid-template-areas: "ico title" "text text" "fmt fmt"; row-gap: 8px; }
  .home .b-reports .formats { justify-self: start; }
  .home .b-sync { grid-row: auto; }
}

/* ------------------------------ Móvil: galería con pestañas (sin scroll fijo) ------------------------------ */
@media (max-width: 899px) {
  .home .hero { padding-top: 48px; }
  .home .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .home .hero-device .device { max-width: 240px; }
  .home .fc-1 { left: 2%; } .home .fc-2 { right: 2%; }
  .home section.block { padding: 72px 0; }

  .home .bento { grid-template-columns: 1fr; }
  .home .b-sync, .home .b-privacy, .home .b-reports, .home .b-lang, .home .b-speed { grid-column: auto; }
  .home .b-reports { grid-template-columns: 1fr; grid-template-areas: "ico" "title" "text" "fmt"; }
  .home .checks { grid-template-columns: 1fr; }
  .home .sync-visual { padding-top: 24px; }
  .home .sv-line { max-width: 60px; }
}

/* ------------------------------ Funciones en móvil (< 768 px): todo apilado, sin solapes ------------------------------ */
@media (max-width: 767px) {
  .home .scene { padding: 56px 0; }
  .home .scene-grid { grid-template-columns: 1fr; gap: 36px; }
  .home .scene-grid.flip .scene-copy { order: 0; }
  .home .scene-copy h3 { font-size: 32px; }
  .home .scene-copy p, .home .section-head.center p { font-size: 17px; }
  .home .stats { gap: 18px 28px; }
  .home .stats dt { font-size: 32px; }
  .home .a1-phone, .home .a2-phone { width: min(270px, 72vw); }
  .home .a2-track { height: auto; }
  .home .a2-sticky { position: static; height: auto; }
  .home .a2-goal { right: auto; left: calc(50% - min(150px, 43vw)); top: auto; bottom: -24px; width: min(300px, 86vw); padding: 14px; }
  .home .scene-a2 .scene-visual { padding-bottom: 60px; }
  .home .b-stage { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .home .b-left, .home .b-right { justify-self: center; margin: 0; width: min(340px, 100%); }
  .home .b-left { order: 0; margin-bottom: -70px; }
  .home .b-phone-wrap { order: 1; height: 360px; }
  .home .b-phone { width: min(270px, 72vw); }
  .home .b-right { order: 2; margin-top: -150px; }
  .home .c-bento { grid-template-columns: 1fr; }
  .home .c-notice { grid-row: auto; }
  .home .c-card { padding: 22px; }
  .home .c-macro, .home .c-notice .c-macro { height: 240px; min-height: 240px; flex: none; }
  .home .nc-sub { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .home .macro-ring, .home .s-caret { animation: none; }
  .home .float-card, .home .sv-cloud svg, .home .sv-line i { animation: none; }
}

/* ---------------- Tarjetas prepago (1.0.3): tarjeta animada ---------------- */
.home .pp-grid { margin-top: 28px; }
.home .pp-tiles { display: grid; gap: 14px; }
.home .pp-stage { display: grid; place-items: center; }
.home .pp-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .16); display: grid; gap: 16px; }
.home .pp-head { display: flex; gap: 12px; align-items: center; }
.home .pp-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.home .pp-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.home .pp-name { display: grid; gap: 2px; min-width: 0; }
.home .pp-name strong { font-size: 17px; }
.home .pp-name em { font-style: normal; font-size: 13px; color: var(--muted-strong); }
.home .pp-bal { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.home .pp-bal span { font-size: 13px; color: var(--muted-strong); }
.home .pp-amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home .pp-moves { list-style: none; margin: 0; padding: 0; display: grid; }
.home .pp-moves li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.home .pp-moves li:last-child { border-bottom: 0; }
.home .pp-moves li > span { display: grid; gap: 1px; min-width: 0; }
.home .pp-moves b { font-size: 15px; }
.home .pp-moves small { font-size: 12px; color: var(--muted-strong); }
.home .pp-moves em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.home .pp-moves .pin em { color: var(--accent-text); }
.home .pp-moves .pout em { color: #e5484d; }
.home .pp-btn { display: block; text-align: center; padding: 11px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; }
/* Con JavaScript: los movimientos entran uno a uno y el saldo se va actualizando (sin JS se ve el estado final) */
.home .pp-card.pp-anim .pp-moves li { opacity: 0; transform: translateY(12px); }
.home .pp-card.pp-anim.play .pp-moves li { animation: ppIn .5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * .7s + .25s); }
.home .pp-card.pp-anim.play .pp-btn { animation: ppPulse 1.6s ease-in-out 2.6s 2; }
@keyframes ppIn { to { opacity: 1; transform: none; } }
@keyframes ppPulse { 0%, 100% { transform: none; } 50% { transform: scale(1.03); } }
@media (max-width: 860px) { .home .pp-grid { gap: 28px; } }
