/* RosenLabs — estilos compartidos por la home y las páginas de proyecto.
   Sin build ni dependencias: el workflow copia hosting-rosenlabs/ tal cual. */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #08080b;
  --surface: #111116;
  --surface-2: #17171d;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .14);
  --ink: #f5f2ed;
  --ink-2: #a9a5b1;
  --ink-3: #6d6a76;
  --rose: #ff5c7c;
  --rose-2: #ff9bb0;
  --violet: #9b5cff;
  --indigo: #5a63d8;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 26px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Grano de película: le saca lo "plástico" a los degradés. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

::selection { background: var(--rose); color: #14060a; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------- Marca ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 115%;
  font-size: 1.22rem;
  letter-spacing: -.04em;
}
.brand svg { width: 30px; height: 30px; }
.spiral {
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.brand:hover .spiral { animation: twirl 1.2s var(--ease); transform-origin: 50% 50%; }
@keyframes twirl { from { transform: rotate(-200deg); } to { transform: rotate(0); } }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.site-header.is-scrolled {
  background: rgb(8 8 11 / .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgb(255 255 255 / .06); }
.nav .nav-cta {
  margin-left: 8px;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.nav .nav-cta:hover { border-color: var(--rose); background: rgb(255 92 124 / .1); }

/* ---------- Botones ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: #0c0b0f; }
.btn-primary:hover { box-shadow: 0 14px 40px -12px rgb(255 92 124 / .75); }

.btn-ghost {
  color: var(--ink);
  background: rgb(255 255 255 / .03);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .28); }

.btn-brand { background: var(--brand-2); color: #0c0b0f; }
.btn-brand:hover { box-shadow: 0 14px 40px -12px var(--brand-2); }

/* ---------- Pills de estado ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / .04);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-live { color: #86efac; background: rgb(74 222 128 / .08); border-color: rgb(74 222 128 / .22); }
.pill-live::before { animation: ping 2.2s infinite; }
.pill-building { color: #fcd34d; background: rgb(251 191 36 / .08); border-color: rgb(251 191 36 / .22); }
.pill-design { color: #c4b5fd; background: rgb(167 139 250 / .08); border-color: rgb(167 139 250 / .22); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(134 239 172 / .7); }
  70%, 100% { box-shadow: 0 0 0 7px rgb(134 239 172 / 0); }
}

/* ---------- Íconos y teléfonos ---------- */

.app-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 23%;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .1),
    0 12px 30px -10px color-mix(in oklab, var(--brand, #000) 80%, transparent);
}

.phone {
  --w: 260px;
  position: relative;
  width: var(--w);
  aspect-ratio: var(--ratio, 9 / 16.6);
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .15);
  background: linear-gradient(150deg, #3a3a44, #121217 32%, #0b0b0f 60%, #2b2b33);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .16),
    inset 0 0 0 calc(var(--w) * .014) #050507,
    0 50px 90px -40px rgb(0 0 0 / .9),
    0 40px 80px -36px color-mix(in oklab, var(--brand, #000) 70%, transparent);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--w) * .12);
  background: #000;
}
/* Cámara y reflejo del vidrio. */
.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(var(--w) * .062);
  left: 50%;
  width: calc(var(--w) * .038);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #050507;
  box-shadow: 0 0 0 2px rgb(255 255 255 / .05);
  transform: translateX(-50%);
}
.phone::after {
  content: "";
  position: absolute;
  inset: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .12);
  background: linear-gradient(118deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / .04) 26%, transparent 42%);
  pointer-events: none;
}
.phone-msd { --ratio: 9 / 18.6; }

/* ---------- Revelado al scrollear ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--rd, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 960px);
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  width: 62vw;
  height: 62vw;
  max-width: 920px;
  max-height: 920px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { --c: rgb(255 92 124 / .34); top: -24%; right: -14%; }
.aurora span:nth-child(2) { --c: rgb(155 92 255 / .28); top: 22%; right: 18%; animation-duration: 32s; animation-delay: -8s; }
.aurora span:nth-child(3) { --c: rgb(90 99 216 / .3); top: -36%; left: -22%; animation-duration: 38s; animation-delay: -16s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7%, 9%) scale(1.14); }
  100% { transform: translate(9%, -5%) scale(.94); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 220px;
  background: linear-gradient(transparent, var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: 32px;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 30px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .04);
  font-size: .9rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .3s, background-color .3s;
  animation: fadeUp 1s var(--ease) both;
}
.announce:hover { border-color: rgb(255 92 124 / .5); background: rgb(255 92 124 / .06); }
.announce .stack { display: flex; }
.announce .stack img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--bg);
}
.announce .stack img + img { margin-left: -6px; }
.announce b { color: var(--ink); font-weight: 600; }
.announce .arrow { transition: transform .3s var(--ease); }
.announce:hover .arrow { transform: translateX(3px); }

.hero h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.9rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: .94;
}
.word {
  display: inline-block;
  animation: wordIn 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 75ms + 120ms);
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(45%) rotate(3deg); filter: blur(14px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.nowrap { white-space: nowrap; }
.hl { position: relative; color: var(--rose); white-space: nowrap; }
.squiggle {
  position: absolute;
  left: -2%;
  bottom: -.16em;
  width: 104%;
  height: .26em;
  overflow: visible;
}
.squiggle path {
  fill: none;
  stroke: var(--rose);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s .95s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lead {
  margin-top: 30px;
  max-width: 31em;
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
  animation: fadeUp 1s .55s var(--ease) both;
}
.lead strong { color: var(--ink); font-weight: 600; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero .actions { animation: fadeUp 1s .7s var(--ease) both; }

/* Escenario 3D del hero: teléfonos + notificaciones en capas de profundidad. */
.stage {
  position: relative;
  height: 640px;
  perspective: 1500px;
  animation: fadeUp 1.4s .3s var(--ease) both;
}
.stage-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.stage .phone { position: absolute; animation: bob 9s ease-in-out infinite; }
.stage .ph-back {
  --w: 248px;
  --brand: #a43ac7;
  top: 3%;
  right: 3%;
  transform: translateZ(-90px) rotateY(-14deg) rotateZ(6deg);
  animation-delay: -4s;
}
.stage .ph-front {
  --w: 262px;
  --brand: #5a63d8;
  top: 11%;
  left: 7%;
  transform: translateZ(30px) rotateY(-14deg) rotateZ(-4deg);
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.float {
  position: absolute;
  width: 300px;
  padding: 13px 15px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgb(30 30 38 / .66);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .08);
  font-size: .86rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.cycle {
  opacity: 0;
  animation: notif 12s var(--d, 0s) infinite;
}
.notif {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 12px;
}
.notif > img { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; }
.notif-head { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; }
.notif-head b { color: var(--ink); font-weight: 600; }
.notif-head span { color: var(--ink-3); }
.notif p { color: var(--ink); }
.notif-action {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff8f3;
  font-weight: 600;
  font-size: .8rem;
}
.n1 { --d: 1.4s; top: 6%; left: -4%; transform: translateZ(150px); }
.n2 { --d: 5.4s; top: 46%; right: -6%; transform: translateZ(190px); }
.n3 { --d: 9.4s; bottom: 6%; left: 4%; transform: translateZ(170px); --brand: #c15f3c; }
@keyframes notif {
  0% { opacity: 0; translate: 0 22px; scale: .92; }
  5% { opacity: 1; translate: 0 0; scale: 1; }
  52% { opacity: 1; translate: 0 0; scale: 1; }
  60%, 100% { opacity: 0; translate: 0 -14px; scale: .97; }
}
.stat-head { display: flex; align-items: center; gap: 10px; font-size: .8rem; }
.stat-head img { width: 22px; height: 22px; border-radius: 7px; }
.stat-head b { color: var(--ink); font-weight: 600; }
.stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.stat-num {
  margin: 10px 0 4px;
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: #8cf0c9;
}
.stat-row svg { width: 96px; height: 34px; }
.stat-row path { fill: none; stroke: #8cf0c9; stroke-width: 2.4; stroke-linecap: round; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  animation: fadeUp 1s 1.6s var(--ease) both;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ink-2);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

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

.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.hero + .section, .p-hero + .section { padding-top: clamp(32px, 5vw, 64px); }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title { margin-top: 16px; font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.section-sub { margin-top: 18px; max-width: 34em; font-size: 1.12rem; color: var(--ink-2); }

/* ---------- Catálogo ---------- */

.catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  --mx: 50%;
  --my: -20%;
  --tx: 0deg;
  --ty: 0deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .6s var(--ease), border-color .4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx) var(--my), color-mix(in oklab, var(--brand) 24%, transparent), transparent 60%);
  opacity: .55;
  transition: opacity .5s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), var(--brand), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { margin-top: 30px; font-size: 1.75rem; }
.card-cat {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .02em;
  color: color-mix(in oklab, var(--brand) 60%, var(--ink));
}
.card-desc { margin-top: 16px; font-size: .98rem; color: var(--ink-2); }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--ink-3);
}
.card-foot b { color: var(--ink); font-weight: 500; }
.card-go {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--ink);
  transition: transform .4s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.card:hover .card-go { transform: rotate(-45deg); background: var(--brand); border-color: transparent; color: #0c0b0f; }
.card-soon { background: linear-gradient(var(--surface), var(--surface)) padding-box; }
.card-soon .card-desc { color: var(--ink-3); }

/* ---------- Showcases de cada app ---------- */

.showcase {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 62%;
  width: 900px;
  height: 900px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 30%, transparent), transparent);
  opacity: .6;
}
.showcase.flip::before { left: 38%; }
.showcase + .showcase { border-top: 1px solid var(--line); }

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.flip .showcase-copy { order: 2; }

.app-chip { display: flex; align-items: center; gap: 14px; }
.app-chip b { display: block; font-size: 1.1rem; font-weight: 700; }
.app-chip span { display: block; font-size: .88rem; color: var(--ink-3); }

.showcase h2 { margin-top: 30px; font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.showcase h2 em { font-style: normal; color: var(--brand-2); }
.showcase-lead { margin-top: 20px; max-width: 30em; font-size: 1.12rem; color: var(--ink-2); }

.features { display: grid; gap: 16px; margin-top: 32px; }
.features li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; color: var(--ink-2); }
.features svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--brand-2) 14%, transparent);
  color: var(--brand-2);
}
.features b { color: var(--ink); font-weight: 600; }

.visual {
  position: relative;
  height: 660px;
}
.visual .phone { position: absolute; }
[data-parallax] { translate: 0 calc(var(--p, 0) * var(--depth, 40) * 1px); }
.v-1 { --w: 268px; top: 2%; left: 6%; rotate: -5deg; z-index: 2; }
.v-2 { --w: 250px; top: 14%; right: 4%; rotate: 6deg; }
.flip .v-1 { left: auto; right: 8%; rotate: 5deg; }
.flip .v-2 { right: auto; left: 2%; rotate: -6deg; }

.widget {
  position: absolute;
  z-index: 3;
  width: 320px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: rgb(19 19 25 / .9);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .95), inset 0 1px 0 rgb(255 255 255 / .08);
}
.w-pos { bottom: 4%; left: -2%; }
.flip .w-pos { left: auto; right: -2%; }

.widget-label {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.widget-big {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--brand-2);
}
.widget-note { margin-top: 14px; font-size: .74rem; color: var(--ink-3); }

.due { display: grid; gap: 12px; margin-top: 16px; }
.due li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .88rem; }
.due .name { color: var(--ink); font-weight: 500; }
.due .days { font-family: var(--mono); font-size: .76rem; color: var(--ink-2); }
.due .days.hot { color: #ff8a8a; }
.due .bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 99px;
  background: rgb(255 255 255 / .08);
  overflow: hidden;
}
.due .bar::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--pct) * 100%);
  border-radius: inherit;
  background: var(--fill, var(--brand-2));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease);
  transition-delay: calc(var(--rd, 0) * 140ms + 300ms);
}
.in .due .bar::after, .no-js .due .bar::after { transform: scaleX(1); }

.chart { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.chart .line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s var(--ease) .3s;
}
.chart .l-a { stroke: #9aa2ff; }
.chart .l-b { stroke: #f2b45c; stroke-width: 2.2; opacity: .9; transition-delay: .5s; }
.chart .area { opacity: 0; transition: opacity 1.4s ease 1.2s; }
.chart .end { opacity: 0; transition: opacity .4s ease 2s; }
.in .chart .line, .no-js .chart .line { stroke-dashoffset: 0; }
.in .chart .area, .in .chart .end, .no-js .chart .area, .no-js .chart .end { opacity: 1; }
.legend { display: flex; gap: 16px; margin-top: 12px; font-size: .78rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend span::before { content: ""; width: 12px; height: 3px; border-radius: 2px; background: var(--c); }

/* ---------- Contacto ---------- */

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--spin), rgb(255 255 255 / .08) 0deg, rgb(255 255 255 / .08) 200deg, var(--rose) 280deg, var(--violet) 320deg, rgb(255 255 255 / .08) 360deg) border-box;
  animation: spin 7s linear infinite;
  text-align: center;
}
@keyframes spin { to { --spin: 360deg; } }
.cta-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -70%;
  width: 900px;
  height: 600px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 92 124 / .32), rgb(155 92 255 / .12) 55%, transparent);
}
.cta-card h2 { margin: 18px auto 0; max-width: 12em; font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.cta-card > p:not(.kicker) { margin: 20px auto 0; max-width: 30em; font-size: 1.12rem; color: var(--ink-2); }

.mailbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 36px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(0 0 0 / .35);
}
.mailbox a {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: clamp(.8rem, 2.4vw, 1rem);
  text-decoration: none;
  white-space: nowrap;
}
.mailbox a:hover { color: var(--rose-2); }
.copy {
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #0c0b0f;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.copy:hover { background: var(--rose-2); }
.copy:active { transform: scale(.96); }
.copy.done { background: #86efac; }

/* ---------- Footer ---------- */

.site-footer { position: relative; padding-top: 40px; overflow: hidden; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-3);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.giant {
  --mx: 50%;
  --my: 50%;
  margin: 0;
  padding-top: 2vw;
  text-align: center;
  font-weight: 900;
  font-stretch: 100%;
  font-size: 17vw;
  line-height: .78;
  letter-spacing: -.065em;
  white-space: nowrap;
  color: transparent;
  background:
    radial-gradient(28vw circle at var(--mx) var(--my), rgb(255 92 124 / .95), rgb(155 92 255 / .4) 45%, transparent 70%),
    linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .015) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  translate: 0 .1em;
}

/* ---------- Página de proyecto ---------- */

.p-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 128px 0 clamp(64px, 9vw, 120px);
}
.p-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -16%;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 34%, transparent), transparent);
  animation: drift 30s ease-in-out infinite alternate;
}
.p-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 240px;
  background: linear-gradient(transparent, var(--bg));
}
.p-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 48px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-size: .95rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.back:hover { color: var(--ink); }
.back .arrow { transition: transform .3s var(--ease); }
.back:hover .arrow { transform: translateX(-4px); }

.p-head { display: flex; align-items: center; gap: 22px; }
.p-head .app-icon { width: 92px; height: 92px; }
.p-head h1 { margin-top: 12px; font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -.045em; }
.p-tagline {
  margin-top: 34px;
  max-width: 18em;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--brand-2);
}
.p-lead { margin-top: 18px; max-width: 34em; font-size: 1.1rem; color: var(--ink-2); }

.p-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.p-visual .phone { --w: 280px; rotate: 4deg; }
.orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 440px);
  aspect-ratio: 1;
}
.orbit::before, .orbit::after, .orbit span {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--brand) 40%, transparent);
  animation: pulse 4.5s ease-out infinite;
}
.orbit::after { animation-delay: -1.5s; }
.orbit span { animation-delay: -3s; }
@keyframes pulse {
  0% { transform: scale(.35); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.orbit img {
  position: relative;
  width: 40%;
  height: auto;
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 100px -20px var(--brand);
  animation: bob 8s ease-in-out infinite;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px dashed color-mix(in oklab, var(--brand) 45%, var(--line-2));
  background: color-mix(in oklab, var(--brand) 6%, var(--surface));
}
.notice h2 { font-size: 1.35rem; font-stretch: 105%; letter-spacing: -.02em; }
.notice p { margin-top: 6px; color: var(--ink-2); }
.legal { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; }
.legal a { color: var(--ink-2); text-underline-offset: 4px; }
.legal a:hover { color: var(--ink); }

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.more-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease);
}
.more-item:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--brand) 55%, var(--line)); }
.more-item .app-icon { width: 44px; height: 44px; }
.more-item b { display: block; font-weight: 700; }
.more-item small { display: block; font-size: .84rem; color: var(--ink-3); }

/* ---------- Página de proyecto: secciones de contenido ---------- */

.steps, .bento, .sources { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sources { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.step, .bento li, .sources li {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--brand-2);
}
.step h3 { margin-top: 22px; font-size: 1.45rem; line-height: 1.08; }
.step p { margin-top: 12px; color: var(--ink-2); }

.f-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.f-row + .f-row { margin-top: clamp(96px, 12vw, 160px); }
.f-row.flip .f-copy { order: 2; }
.f-row h2 { margin-top: 16px; font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.f-visual { position: relative; isolation: isolate; display: grid; place-items: center; }
.f-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(560px, 130%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 32%, transparent), transparent);
}
.f-visual .phone { --w: 280px; rotate: -3deg; }
.flip .f-visual .phone { rotate: 3deg; }

/* Carrusel de capturas: sale del .wrap y arranca alineado con el contenido. */
.gallery {
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  padding: 12px var(--edge) 56px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.shot { flex: none; width: 230px; scroll-snap-align: start; }
.shot .phone { --w: 230px; }
.shot figcaption { margin-top: 20px; font-size: .92rem; color: var(--ink-2); }
.shot figcaption b { display: block; color: var(--ink); font-weight: 600; }

.bento svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 13px;
  background: color-mix(in oklab, var(--brand-2) 12%, transparent);
  color: var(--brand-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bento h3 { margin-top: 22px; font-size: 1.3rem; line-height: 1.1; }
.bento p { margin-top: 10px; font-size: .98rem; color: var(--ink-2); }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid color-mix(in oklab, var(--brand-2) 40%, transparent);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--brand-2);
}

.sources li { display: flex; flex-direction: column; }
.source-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sources h3 { margin-top: 10px; font-size: 2rem; color: var(--brand-2); }
.sources li > p:not(.source-label) { margin-top: 12px; font-size: .98rem; color: var(--ink-2); }
.sources small {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--ink-3);
}
.sources small a { color: var(--ink-2); text-underline-offset: 3px; }
.sources small a:hover { color: var(--brand-2); }

.privacy {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 32px 64px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 60%),
    var(--surface);
}
.privacy h2 { margin-top: 16px; font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.privacy h2 + p { margin-top: 18px; max-width: 26em; color: var(--ink-2); }
.privacy .legal { margin-top: 28px; }
.privacy .features { margin-top: 0; }

.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .3s;
}
.faq details[open] { border-color: color-mix(in oklab, var(--brand) 50%, var(--line)); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  color: var(--brand-2);
  transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq h3 { font-size: 1.12rem; font-weight: 650; font-stretch: 104%; line-height: 1.3; letter-spacing: -.01em; }
.faq .answer { max-width: 46em; padding: 0 24px 22px; color: var(--ink-2); }

.cta-card .actions { justify-content: center; }

/* ---------- Página de proyecto: efectos (cada página los activa con sus clases) ---------- */

/* Hero vivo: un teléfono y tarjetas que aparecen de a una; reusa .stage, .float y .cycle de la home. */
.p-stage { width: min(100%, 500px); height: 640px; }
.p-stage .phone {
  --w: 280px;
  top: 4%;
  left: calc(50% - var(--w) / 2);
  rotate: none;
  transform: translateZ(30px) rotateY(-12deg) rotateZ(3deg);
}
.p-stage .float { width: 280px; }
.p-stage .n1 { top: 10%; left: -6%; }
.p-stage .n2 { top: 42%; right: -16%; }
.p-stage .n3 { bottom: 6%; left: -4%; }
.p-stage .stat-num { color: var(--brand-2); }

/* Relato con teléfono fijo: los pasos scrollean y site.js marca cuál está en el centro. */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 80px);
}
.story-step { display: flex; flex-direction: column; justify-content: center; min-height: 54vh; }
.story-step h2 { margin-top: 16px; font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.js .story-step .f-copy { opacity: .3; transition: opacity .5s var(--ease); }
.js .story-step.is-active .f-copy { opacity: 1; }
.story-inline { display: none; }
/* El margen negativo deja que el teléfono fijo use el padding de abajo de la sección:
   así sigue quieto con el último paso centrado sin sumar scroll. */
.story-visual { margin-bottom: -100px; }
.story-sticky {
  position: sticky;
  top: max(84px, calc(50vh - 290px));
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 580px;
}
.story-sticky::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(560px, 130%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 32%, transparent), transparent);
}
.story-phone { --w: 260px; rotate: 3deg; }
.story-phone img { transition: opacity .6s var(--ease), scale .8s var(--ease); }
.story-phone img:not(:first-child) {
  position: absolute;
  top: calc(var(--w) * .032);
  left: calc(var(--w) * .032);
  width: calc(100% - var(--w) * .064);
  height: calc(100% - var(--w) * .064);
}
.story-phone img:not(:first-child):not(.is-on) { opacity: 0; scale: 1.04; }
.story-w {
  left: -8%;
  bottom: 7%;
  width: 300px;
  opacity: 0;
  translate: 0 18px;
  transition: opacity .5s var(--ease), translate .7s var(--ease);
  pointer-events: none;
}
.story-w.is-on { opacity: 1; translate: none; }
/* Con JS, cada widget espera a estar en pantalla para entrar y arrancar sus contadores. */
.js .story-w.is-on:not(.in) { opacity: 0; translate: 0 18px; }
.receipt { display: grid; gap: 6px; margin: 12px 0 16px; font-size: .84rem; }
.receipt li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.receipt li span:last-child { font-family: var(--mono); color: var(--ink); }
.widget-sub { margin-top: 4px; font-size: .82rem; color: var(--ink-2); }
.story-dots {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-dots li {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--line-2);
  transition: height .4s var(--ease), background-color .4s;
}
.story-dots li.is-on { height: 22px; background: var(--brand-2); }

/* Tarjeta para compartir de la app, recreada en HTML. Siempre en tema claro, como la imagen real. */
.share-card { width: 280px; max-width: 100%; }
.share-card.story-w { position: absolute; z-index: 3; left: -12%; bottom: 2%; width: 270px; rotate: -4deg; }
.sc {
  overflow: hidden;
  border-radius: 22px;
  background: #fbfaff;
  color: #1c1b22;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .95), 0 0 0 1px rgb(255 255 255 / .12);
  font-size: .8rem;
  line-height: 1.35;
}
.sc-body { padding: 18px 18px 14px; }
.sc-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.sc-head img { width: 24px; height: 24px; border-radius: 7px; }
.sc-label {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b6878;
}
.sc-big {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: #1d7a4a;
}
.sc-verdict { margin-top: 4px; color: #3b3946; }
.sc-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sc-chips span { padding: 7px 9px; border-radius: 10px; background: #efedf7; font-size: .66rem; color: #6b6878; }
.sc-chips b { display: block; font-family: var(--mono); font-size: .86rem; font-weight: 600; color: #1c1b22; }
.sc .chart { margin-top: 10px; }
.sc .sc-net { stroke: #7c4ddb; }
.sc .sc-infl { stroke: #c58a2a; stroke-width: 2.4; }
.sc-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .58rem; color: #8a8796; }
.sc-source { margin-top: 8px; font-size: .62rem; color: #8a8796; }
.sc-foot { padding: 10px 18px; background: #4a52c4; color: #fff; font-size: .78rem; font-weight: 600; }
.share-card .widget-note { margin-top: 10px; }

/* Calculadora de sueldo real: primera sección después del hero, a todo el ancho. */
.calc-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px 64px;
}
.calc-head .kicker { grid-column: 1 / -1; }
.calc-block h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.calc-copy > p:not(.kicker) { margin-top: 18px; max-width: 32em; color: var(--ink-2); }
.calc-head .calc-copy > p:first-child { margin-top: 0; }
.calc-copy .calc-formula {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: .8rem;
}
.calc-form { display: grid; gap: 14px; }
.calc-block .calc-form {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--brand-2) 12%, transparent), transparent 55%),
    rgb(17 17 22 / .85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 50px 90px -50px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .06);
}
/* Adentro de la tarjeta: a la izquierda los campos en dos filas ("Hoy cobrás" abajo; el de
   inflación a mano reemplaza al del mes si falla la API) y a la derecha el resultado, de la
   misma altura. */
.calc-block .calc-out { display: flex; flex-direction: column; justify-content: center; margin-top: 0; }
.calc-block .calc-app-cta, .calc-block .calc-ahora { grid-column: 1 / -1; }
.calc-app-cta { font-size: .9rem; color: var(--ink-2); }
.calc-app-cta a { color: var(--brand-2); font-weight: 600; text-underline-offset: 3px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; }
.field { display: grid; gap: 8px; }
.field[hidden] { display: none; }
.field > span:first-child { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background-color: rgb(0 0 0 / .3);
  color: var(--ink);
  font: inherit;
  font-family: var(--mono);
  font-size: 1.05rem;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 14px;
}
.field select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9a5b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
}
.field select option { background: var(--surface-2); color: var(--ink); }
.calc-selects { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
.money, .pct { position: relative; display: block; }
.money::before, .pct::after {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--mono);
  color: var(--ink-3);
  pointer-events: none;
}
.money::before { content: "$"; left: 16px; }
.money input { padding-left: 32px; }
.pct::after { content: "%"; right: 16px; }
.pct input { padding-right: 36px; }
.calc-out {
  margin-top: 6px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgb(0 0 0 / .25);
}
.calc-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.calc-big {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--ink-3);
  transition: color .4s;
}
.calc-big.is-up { color: var(--brand-2); }
.calc-big.is-down { color: #ff8a8a; }
.calc-detail { margin-top: 10px; font-size: .95rem; color: var(--ink-2); }
.calc-detail b { color: var(--ink); font-weight: 600; }
.no-js .calc-form { display: none; }

/* Tarjetas con luz que sigue al cursor e inclinación: class="glow" data-tilt (site.js pone --mx, --my, --tx y --ty). */
@property --glow {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 8%;
}
.glow[data-tilt] {
  --mx: 50%;
  --my: -20%;
  --tx: 0deg;
  --ty: 0deg;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklab, var(--brand) var(--glow), transparent), transparent 60%),
    var(--surface);
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .6s var(--ease), --glow .5s;
}
.glow[data-tilt]:hover { --glow: 26%; }
.glow[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--brand-2), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.glow[data-tilt]:hover::after { opacity: .7; }
/* Acá la entrada al scrollear usa translate, así transform queda libre para la inclinación. */
.js .glow[data-tilt][data-reveal] {
  translate: 0 28px;
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty));
  transition:
    opacity 1s var(--ease) calc(var(--rd, 0) * 90ms),
    translate 1.1s var(--ease) calc(var(--rd, 0) * 90ms),
    transform .6s var(--ease),
    --glow .5s;
}
.js .glow[data-tilt][data-reveal].in { translate: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 112px; }
  .hero-grid, .showcase-grid, .p-grid { grid-template-columns: 1fr; }
  .stage { height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  .flip .showcase-copy { order: 0; }
  .visual { height: 600px; max-width: 560px; width: 100%; margin: 0 auto; }
  .showcase::before, .showcase.flip::before { top: 70%; left: 50%; }
  .p-visual { min-height: 0; padding: 20px 0; }
  .scroll-hint { display: none; }
  .steps, .f-row, .privacy { grid-template-columns: 1fr; }
  .f-row.flip .f-copy { order: 0; }
  .bento, .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story, .calc-head, .calc-block .calc-form { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .story-step { min-height: 0; }
  .story-step + .story-step { margin-top: clamp(80px, 12vw, 120px); }
  .js .story-step .f-copy { opacity: 1; }
  .story-inline { --w: 260px; display: block; margin: 40px auto 0; rotate: -3deg; }
  .story-step:nth-child(even) .story-inline { rotate: 3deg; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: min(2.25rem, 9.2vw); }
  .nav .nav-app { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .stage { height: 470px; }
  .stage .ph-front { --w: 200px; left: 4%; }
  .stage .ph-back { --w: 184px; right: 2%; }
  .float { width: 252px; font-size: .8rem; padding: 11px 13px; }
  .n1 { left: 0; top: 2%; }
  .n2 { right: 0; top: 50%; }
  .n3 { left: 2%; bottom: 2%; }
  .stat-num { font-size: 1.4rem; }
  .visual { height: 520px; }
  .v-1 { --w: 200px; left: 2%; }
  .v-2 { --w: 186px; right: 0; }
  .flip .v-1 { right: 2%; }
  .flip .v-2 { left: 0; }
  .widget { width: min(300px, 92%); padding: 15px; }
  .w-pos, .flip .w-pos { left: 50%; right: auto; bottom: 0; translate: -50% calc(var(--p, 0) * var(--depth, 40) * 1px); }
  .widget-big { font-size: 1.6rem; }
  .p-head .app-icon { width: 72px; height: 72px; }
  .p-head h1 { font-size: min(2.8rem, 9vw); }
  .p-visual .phone { --w: 230px; }
  .more { grid-template-columns: 1fr; }
  .notice { padding: 22px; }
  .bento, .sources { grid-template-columns: 1fr; }
  .step, .bento li, .sources li { padding: 22px; }
  .f-visual .phone { --w: 240px; }
  .gallery { gap: 20px; }
  .shot { width: 200px; }
  .shot .phone { --w: 200px; }
  .faq summary { padding: 18px 20px; }
  .faq .answer { padding: 0 20px 20px; }
  .p-stage { height: 520px; }
  .p-stage .phone { --w: 220px; }
  .p-stage .float { width: 250px; }
  .p-stage .stat-head span { display: none; }
  .p-stage .n1 { top: 24%; left: 0; }
  .p-stage .n2 { top: 46%; right: 0; }
  .p-stage .n3 { bottom: 4%; left: 2%; }
  .story-inline { --w: 230px; }
  .calc-row { grid-template-columns: 1fr; }
  .mailbox { flex-direction: column; gap: 10px; width: 100%; padding: 16px; border-radius: 22px; }
  .mailbox a { font-size: .74rem; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .copy { width: 100%; }
}

@media (max-width: 380px) {
  .nav a { padding: 8px 10px; }
  .float { width: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .cycle { animation: none; opacity: 1; }
  .n3 { display: none; }
}
