/* ============================================
   SERVY — Home v2
   Premium editorial · Tweakable palette
   ============================================ */

:root {
  /* Default palette: MIDNIGHT */
  --bg: #0E0F12;
  --search-glow: var(--ink);
  --bg-elev: #17181C;
  --ink: #F2EEE6;
  --ink-dim: rgba(242, 238, 230, 0.88);
  --ink-mute: rgba(242, 238, 230, 0.65);
  --line: rgba(242, 238, 230, 0.10);
  --line-strong: rgba(242, 238, 230, 0.22);
  --accent: #3CE6C5;
  --accent-2: #C6FF3C;
  --accent-ink: #0A0A0A;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --f-sans: "Geist", "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* BONE palette */
[data-palette="bone"] {
  --bg: #EEEAE0;
  --search-glow: var(--accent);
  --bg-elev: #E2DDD0;
  --ink: #0F1014;
  --ink-dim: rgba(15, 16, 20, 0.90);
  --ink-mute: rgba(15, 16, 20, 0.65);
  --line: rgba(15, 16, 20, 0.10);
  --line-strong: rgba(15, 16, 20, 0.22);
  --accent: #137A63;
  --accent-2: #E85A2A;
  --accent-ink: #EEEAE0;
}

/* CANDY palette — energético, tipo creativehut */
[data-palette="candy"] {
  --bg: #0F0E12;
  --bg-elev: #1A1920;
  --ink: #F7F3E8;
  --ink-dim: rgba(247, 243, 232, 0.68);
  --ink-mute: rgba(247, 243, 232, 0.38);
  --line: rgba(247, 243, 232, 0.10);
  --line-strong: rgba(247, 243, 232, 0.22);
  --accent: #D5FF4A;
  --accent-2: #FF5A3C;
  --accent-ink: #0F0E12;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* we lerp manually */
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  cursor: default;
  transition: background 0.7s var(--ease-out), color 0.7s var(--ease-out);
  position: relative;
  overscroll-behavior-y: none;
}

/* Logo watermark (S + tilde) — hand-drawn feel */
.brand-watermark {
  display: none;
  position: fixed;
  right: -8vw;
  top: 15vh;
  width: 48vw;
  height: 48vw;
  max-width: 720px;
  max-height: 720px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  transition: opacity 0.8s var(--ease-out);
  animation: watermarkFloat 22s var(--ease-in-out) infinite alternate;
}
[data-palette="bone"] .brand-watermark { opacity: 0.18; mix-blend-mode: multiply; }
.brand-watermark img { width: 100%; height: 100%; object-fit: contain; }
@keyframes watermarkFloat {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  100% { transform: translate(-3vw, 4vh) rotate(2deg); }
}
@media (max-width: 820px) {
  .brand-watermark { width: 120vw; height: 120vw; right: -30vw; top: 55vh; opacity: 0.04; }
  [data-palette="bone"] .brand-watermark { opacity: 0.06; }
}

/* Section ambient glow — a subtle color wash that moves between sections */
.section-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent) 55%, transparent) 0%,
    transparent 65%);
  animation: glowDrift 14s var(--ease-in-out) infinite alternate;
}
[data-palette="bone"] .section-glow {
  opacity: 0.9;
  background: radial-gradient(circle,
    color-mix(in srgb, #3CE6C5 70%, transparent) 0%,
    transparent 65%);
}
@keyframes glowDrift {
  0%   { transform: translate(-10%, -10%) scale(1); }
  100% { transform: translate(8%, 6%) scale(1.15); }
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============ CURSOR ============ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transition: opacity 0.25s var(--ease-out),
              width 0.35s var(--ease-out),
              height 0.35s var(--ease-out),
              background 0.35s var(--ease-out),
              mix-blend-mode 0s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor-dot {
  display: none;
  width: 6px; height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
  display: none !important;
}
.cursor-ready .cursor-dot,
.cursor-ready .cursor-ring { opacity: 1; }

.cursor-hover .cursor-dot { width: 0; height: 0; opacity: 0; }
.cursor-hover .cursor-ring {
  width: 74px; height: 74px;
  background: #fff;
  border-color: #fff;
}

.cursor-view .cursor-ring {
  width: 92px; height: 92px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
}
.cursor-view .cursor-dot { opacity: 0; }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--ease-in-out), opacity 0.6s ease 0.3s;
  transform: translateY(0);
}
.loader.gone {
  transform: translateY(-100%);
  pointer-events: none;
}
.loader-mark {
  font-family: var(--f-display);
  font-weight: 700;
  /* italic-removed */
  font-size: clamp(48px, 10vw, 96px);
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow: hidden;
}
.loader-mark span {
  display: inline-block;
  transform: translateY(110%);
  animation: loaderRise 0.9s var(--ease-out) forwards;
}
.loader-mark span:nth-child(1) { animation-delay: 0.05s; }
.loader-mark span:nth-child(2) { animation-delay: 0.12s; }
.loader-mark span:nth-child(3) { animation-delay: 0.19s; }
.loader-mark span:nth-child(4) { animation-delay: 0.26s; }
.loader-mark span:nth-child(5) { animation-delay: 0.33s; }
@keyframes loaderRise {
  to { transform: translateY(0); }
}
.loader-count {
  position: absolute;
  bottom: 40px; right: 48px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 32px;
  display: flex; justify-content: space-between; align-items: center;
  mix-blend-mode: difference;
}
.nav-brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  /* italic-removed */
  letter-spacing: -0.01em;
  color: #fff;
}
.nav-brand em {
  font-style: normal;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  color: #fff;
  opacity: 0.6;
  margin-left: 6px;
  vertical-align: 0.4em;
}
.nav-links {
  display: flex; gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-link {
  padding: 10px 16px;
  color: var(--ink);
  position: relative;
  opacity: 0.9;
  transition: opacity 0.25s;
}
.nav-link:hover { opacity: 1; }
.nav-link.active {
  opacity: 1 !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255,255,255,0.85);
}
[data-palette="bone"] .nav-link.active {
  color: var(--accent) !important;
  text-decoration-color: var(--accent);
}

.nav-time {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.7;
}
/* Nav burger — desktop hidden */
.nav-burger { display: none; }
.nav-logo img {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)) drop-shadow(0 0 4px rgba(255,255,255,0.15));
  transition: filter 0.5s;
}
[data-palette="bone"] .nav-logo img {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.55)) drop-shadow(0 0 8px rgba(0,0,0,0.25));
}
[data-palette="bone"] .nav {
  mix-blend-mode: normal;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
[data-palette="bone"] .nav-link,
[data-palette="bone"] .nav-time {
  color: #0F1014;
  opacity: 1;
}

@media (max-width: 820px) {
  .nav { padding: 18px 20px; position: relative; mix-blend-mode: normal; background: var(--bg); }
  .nav-links, .nav-time { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 0; z-index: 200;
  }
  .nav-links.open .nav-link { padding: 14px 24px; font-size: 15px; border-bottom: 1px solid var(--line); display: block; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px; margin-left: 8px;
  }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
  .nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ============ LAYOUT ============ */
main { position: relative; z-index: 1; }

.wrap {
  padding: 0 32px;
}
@media (max-width: 820px) { .wrap { padding: 0 20px; } }

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ============ HERO ============ */
.hero {
  min-height: 60svh;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 88px 32px 32px;
  position: relative;
}
@media (max-width: 820px) {
  .hero { padding: 40px 20px 24px; min-height: auto; }
}

.hero-tag {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  50%     { box-shadow: 0 0 0 10px transparent; }
}
.hero-tag .sep {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hero-tag-coords {
  color: var(--ink-mute);
}

.hero-core {
  margin-top: 8px;
  padding-top: 16px;
}
@media (max-width: 820px) {
  .hero-core { padding-top: 12px; }
}

.hero-eyebrow {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 100px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}
.hero-title .it { font-weight: 500; color: var(--ink-dim); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.loaded .hero-title .line > span { transform: translateY(0); }

.hero-title .accent-dot {
  display: inline-block;
  width: 0.42em; height: 0.42em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.08em;
  margin-left: 0.05em;
  transform: scale(0);
  transition: transform 0.7s var(--ease-out) 1.1s;
}
.loaded .hero-title .accent-dot { transform: scale(1); }

/* Rotating word variant */
.rotator {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: baseline;
  color: var(--accent);
}
.rotator .rot-slot {
  display: inline-block;
  position: relative;
  min-width: 5.5ch;
}
.rotator .rot-word {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.rotator .rot-word.out {
  position: absolute; left: 0; top: 0;
}

/* Hero search — gigante, centrado */
.search {
  margin: 24px auto 0;
  max-width: 900px;
  width: 100%;
  position: relative;
}
@media (max-width: 820px) {
  .search { margin-top: 28px; }
}
/* Animated glow behind the search — this is the CORE of the page */
.search::before {
  content: '';
  position: absolute;
  inset: -40px -20px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%,
    color-mix(in srgb, var(--accent) 60%, transparent) 0%,
    transparent 70%);
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) 1.5s;
  animation: searchBreath 4.5s var(--ease-in-out) infinite;
}
.loaded .search::before { opacity: 0.55; }
[data-palette="bone"] .loaded .search::before { opacity: 0.32; }
@keyframes searchBreath {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.08); }
}
.search-shell {
  display: flex; align-items: center;
  border-top: 1px solid var(--search-glow);
  border-bottom: 1px solid var(--search-glow);
  padding: 12px 0;
  gap: 20px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 1.1s, transform 0.8s var(--ease-out) 1.1s, border-color 0.35s;
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--search-glow) 6%, transparent) 100%);
}
.loaded .search-shell { opacity: 1; transform: translateY(0); }
.search-shell:focus-within {
  border-color: var(--search-glow);
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--search-glow) 12%, transparent) 100%);
}
/* Underline accent that grows on focus */
.search-shell::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 2px;
  background: var(--search-glow);
  transition: width 0.8s var(--ease-out);
}
.search-shell:focus-within::after { width: 100%; }

.search-prompt {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  /* italic-removed */
  font-size: clamp(17px, 2.4vw, 30px);
  letter-spacing: -0.005em;
  padding: 8px 0;
  caret-color: var(--accent);
}
.search-input::placeholder { color: var(--ink-mute); }

.search-submit {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.search-submit:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Category tags under search */
.search-tags {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-out) 1.3s, transform 0.7s var(--ease-out) 1.3s;
}
.loaded .search-tags { opacity: 1; transform: translateY(0); }
.search-tags-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  margin-right: 2px;
}
.search-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, background 0.25s, opacity 0.25s;
  opacity: 0.65;
}
.search-tag:hover {
  color: var(--ink);
  border-color: var(--ink);
  opacity: 1;
}
.search-hint {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-top: 10px;
}

/* Hero bottom bar */
.hero-bottom {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .hero-bottom { margin-top: 32px; }
  .hero-bottom-col { font-size: 10px; }
}
.hero-bottom-col {
  max-width: 260px;
}
.hero-bottom-col b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-dim);
}
.scroll-cue .line-tall {
  width: 1px; height: 28px;
  background: var(--ink-dim);
  animation: scrollLine 2s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(0.3); opacity: 0.4; }
  50%     { transform: scaleY(1);   opacity: 1;   }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marq 38s linear infinite;
  width: max-content;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 82px);
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
  font-variation-settings: "opsz" 72;
}
.marquee-track .it { font-weight: 500; color: var(--accent); }
.marquee-track .dot {
  display: inline-block;
  width: 0.28em; height: 0.28em;
  border-radius: 50%;
  background: var(--ink-mute);
  vertical-align: 0.35em;
  margin: 0 0.1em;
}
@keyframes marq {
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section {
  padding: 56px 32px;
  position: relative;
}
@media (max-width: 820px) { .section { padding: 32px 20px; } }

.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
}
.section-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.section-num::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--ink-dim);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 14ch;
}
.section-title .it { /* italic-removed */ }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-mask { overflow: hidden; }
.reveal-mask > * {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.reveal-mask.in > * { transform: translateY(0); }

/* ============ HOW (3 steps) ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.step { min-height: 300px; max-height: 360px; }
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    border-top: none;
    gap: 8px;
  }
}
.step {
  padding: 40px 24px 40px 0;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}
.step:last-child { border-right: 0; }
@media (max-width: 820px) {
  .step {
    border-right: none;
    border-bottom: none;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    min-height: 140px;
  }
  .step:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 120px;
  }
  /* Disable reveal animation on mobile for steps */
  .step.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: background 0.4s !important;
  }
  .step.reveal.in {
    opacity: 1 !important;
    transform: none !important;
  }
}
.step-num {
  font-family: var(--f-mono);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.step-title {
  font-family: var(--f-display);
  font-weight: 700;
  /* italic-removed */
  font-size: clamp(39px, 5vw, 67px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-desc {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 28ch;
}
@media (max-width: 820px) {
  .step-title { font-size: 25px !important; line-height: 1; margin-bottom: 0; }
  .step-desc { font-size: 17px !important; line-height: 1.4; max-width: none; }
  .step-num { width: auto; margin-bottom: 0; flex-shrink: 0; }
}

/* ============ PROVIDERS CAROUSEL ============ */
.providers-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.providers-track {
  display: flex;
  gap: 2px;
  background: var(--line);
  padding: 1px 0;
  width: max-content;
  animation: providersScroll 55s linear infinite;
  will-change: transform;
}
.providers-carousel:hover .providers-track { animation-play-state: paused; }
@keyframes providersScroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.provider {
  background: var(--bg);
  padding: 28px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
  width: 280px;
  flex: 0 0 280px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: background 0.45s var(--ease-out);
}
.provider:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elev));
}
@media (max-width: 820px) {
  .provider { width: 220px; flex: 0 0 220px; min-height: 190px; padding: 20px 18px; }
}

/* ============ LOGO MARKS ============ */
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  isolation: isolate;
  mix-blend-mode: normal;
}
.nav-logo img {
  height: 40px; width: auto; display: block; max-width: 160px;
}
.nav-logo-text {
  font-family: var(--f-display);
  font-weight: 700;
  /* italic-removed */
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.01em;
}
@media (max-width: 520px) {
  .nav-logo-text { display: none; }
}

.footer-logo-img {
  height: 48px; width: auto; display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
}
[data-palette="bone"] .footer-logo-img {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}
[data-palette="bone"] .loader-logo-img { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.loader-logo-img {
  height: 88px; width: auto; display: block;
  animation: loaderLogo 1.1s var(--ease-out) forwards;
  opacity: 0;
  transform: scale(0.8);
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.35));
}
@keyframes loaderLogo {
  to { opacity: 1; transform: scale(1); }
}

.provider-top {
  display: flex; justify-content: space-between; align-items: start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.provider-verified {
  color: var(--accent);
}
.provider-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 24px;
}
.provider-name em {
  /* italic-removed */
  color: var(--ink-dim);
  display: block;
  font-size: 0.6em;
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.provider-bottom {
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-top: 24px;
}
.provider-stars {
  color: #F5B731;
  letter-spacing: 0.15em;
}

/* ============ WHY (checklist) ============ */
.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } }

.why-item {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 820px) {
  .why-item {
    grid-template-columns: 40px 1fr 28px;
    gap: 12px;
    padding: 24px 0;
  }
}
.why-item {
  transition: padding-left 0.4s var(--ease-out);
  cursor: default;
}
.why-item:hover { padding-left: 16px; }
.why-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (max-width: 820px) {
  .why-item:nth-last-child(-n+2) { border-bottom: 0; }
  .why-item:last-child { border-bottom: 1px solid var(--line); }
}

.why-num {
  font-family: var(--f-mono);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  padding-top: 6px;
}
.why-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.why-text em { /* italic-removed */ color: var(--accent); }
.why-check {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--accent);
  text-align: right;
  padding-top: 6px;
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 64px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.stat:last-child { border-right: 0; }
@media (max-width: 820px) {
  .stats {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
  }
  .stats::-webkit-scrollbar { display: none; }
  .stat {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    border-right: 1px solid var(--line);
    border-bottom: none;
    padding: 40px 24px;
  }
  .stat:last-child { border-right: 0; }
}
.stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat-num .it { /* italic-removed */ color: var(--accent); font-weight: 400; }
.stat-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============ CTA ============ */
.cta {
  padding: 80px 32px 56px;
  text-align: left;
  position: relative;
}
@media (max-width: 820px) { .cta { padding: 72px 20px 56px; } }

.cta-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 40px;
}
.cta-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 16ch;
}
.cta-title .it { /* italic-removed */ }
.cta-title .accent { color: var(--accent); /* italic-removed */ }

.cta-actions {
  margin-top: 48px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 30px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.3s;
}
.pill:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pill.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.pill.primary:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pill .arr {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s;
}
.pill .arr::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.pill:hover .arr { width: 24px; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 32px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.footer > div:nth-child(3) { text-align: right; }
.footer-logo-img { margin-left: auto; }
@media (max-width: 820px) {
  .footer { display: flex; justify-content: center; padding: 20px; }
  .footer > div:nth-child(2),
  .footer > div:nth-child(3) { display: none; }
  .footer > div:first-child .footer-title { display: none; }
  .footer > div:first-child > div:nth-child(2) { display: none; }
  .footer > div:first-child { text-align: center; }
}
.footer-title {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  font-size: 11px;
}
.footer a { color: var(--ink); }
.footer a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--f-display);
  font-weight: 700;
  /* italic-removed */
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px;
  color: var(--ink-mute);
}

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 300;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 260px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
}
.tweaks.open { display: flex; }
.tweaks-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  font-size: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.tweak-group { display: flex; flex-direction: column; gap: 6px; }
.tweak-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-size: 10px;
}
.tweak-options {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.tweak-opt {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: all 0.25s;
  cursor: pointer;
  flex: 1;
  text-align: center;
}
.tweak-opt.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tweak-opt:hover:not(.active) {
  color: var(--ink);
  border-color: var(--ink);
}


/* ============ PLAYFUL ADDITIONS ============ */
/* Sticker-style eyebrow badge */
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
}
.hero-eyebrow .sticker {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transform: rotate(-2deg);
  transition: transform 0.3s var(--ease-out);
}
.hero-eyebrow .sticker:hover { transform: rotate(2deg) scale(1.05); }
.hero-eyebrow .sticker .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EF4444;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.6); }
}

/* Colored search tags */
.search-tag {
  background: transparent;
  transition: all 0.2s;
}
.search-tag:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-2px) rotate(-1.5deg);
}
.search-tag:nth-child(3n):hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px) rotate(1.5deg); }

/* Theme toggle switch */
.theme-toggle {
  width: 52px; height: 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-elev);
  cursor: pointer;
  position: relative;
  margin-left: 16px;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.3s;
  overflow: hidden;
}
.theme-toggle .toggle-moon,
.theme-toggle .toggle-sun {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  font-size: 11px; line-height: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}
.theme-toggle .toggle-moon { left: 5px; }
.theme-toggle .toggle-sun  { right: 5px; }
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
  z-index: 1;
}
[data-palette="bone"] .theme-toggle::after {
  transform: translateX(26px);
}
/* Nav login — solo visible en menú hamburguesa mobile */
.nav-login { display: none; }
@media (max-width: 820px) {
  .nav-links.open .nav-login {
    display: flex !important;
    align-items: center; gap: 8px;
    margin-top: 4px;
    background: rgba(60, 230, 197, 0.06);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent) !important;
    opacity: 0.55 !important;
    cursor: not-allowed;
    pointer-events: none;
    font-size: 14px;
  }
}
/* Steps carousel mobile */
@media (max-width: 820px) {
  .steps {
    position: relative;
    min-height: 200px;
    overflow: hidden;
  }
  .step {
    position: absolute; top: 0; left: 0; right: 0;
    opacity: 0 !important;
    transform: translateX(28px) !important;
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
    pointer-events: none;
  }
  .step.active {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }
  .steps-dots {
    display: none;
  }
}
@media (min-width: 821px) { .steps-dots { display: none; } }
.steps-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.2s;
}
.steps-dot.active { background: var(--accent); transform: scale(1.3); }

/* Section kicker as sticker */
.section-kicker {
  display: inline-flex;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  margin-bottom: 18px;
}

/* Emphasize accent bits in titles */
.hero-title .accent-bg {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.15em 0.02em;
  border-radius: 0.08em;
  display: inline-block;
  transform: rotate(-1.5deg);
}

/* Stat-num + section-title with tighter tracking + heavier weight */
.stat-num, .section-title, .cta-title {
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
}

/* ============ FLOATING SEARCH ============ */
.search-float {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  z-index: 300;
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
  pointer-events: none;
  width: min(620px, calc(100% - 40px));
}
.search-float.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.search-float-pill {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 20px 36px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
}
.search-float-pill:hover { background: var(--ink); transform: translateY(-2px); }
@media (max-width: 820px) {
  .search-float { bottom: 20px; left: 16px; right: 16px; transform: translateY(90px); width: auto; }
  .search-float.visible { transform: translateY(0); }
  .search-float-pill { font-size: 15px; padding: 18px 24px; }
}

/* Provider cards: a slight rotate on hover for fun */
.provider { transition: background 0.45s var(--ease-out), transform 0.3s var(--ease-out); }
.provider:hover { transform: translateY(-3px) rotate(-0.3deg); }

/* ============ MOBILE IMPROVEMENTS ============ */
@media (max-width: 820px) {

  /* Nav logo: mas grande en mobile */
  .nav-logo img {
    height: 50px;
    max-width: 200px;
  }

  /* Hero title */
  .hero-title { font-size: clamp(52px, 14vw, 72px); }

  /* Search: aspecto de campo de búsqueda obvio */
  .search-shell {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px 0;
    border: 2px solid var(--accent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  }
  .search-shell::after { display: none; } /* ocultar underline animado */
  .search-prompt { display: none; }
  .search-input { font-size: 17px; width: 100%; }
  .search-submit {
    flex: 0 0 100%;
    border-radius: 10px;
    padding: 16px;
    font-size: 15px;
    margin: 4px 0 8px;
    justify-content: center;
    text-align: center;
  }

  /* Tags + microcopy: mas legibles */
  .search-tags-label { font-size: 13px; color: var(--ink-dim); }
  .search-tag { font-size: 13px; padding: 8px 15px; opacity: 1; }
  .search-hint { font-size: 15px; color: var(--ink); opacity: 0.85; margin-top: 14px; }

  /* Hero bottom: ocultar todo (Recomendaciones reales, Gratis, Desplazar) */
  .hero-bottom { display: none; }

  /* Secciones */
  .section-num { font-size: 13px; }
  .section-title { font-size: clamp(40px, 11vw, 60px); }
  .step-title { font-size: clamp(42px, 11vw, 56px); }
  .step-desc { font-size: 18px; max-width: 100%; }
  .why-text { font-size: clamp(20px, 5.5vw, 28px); }
  .why-num { font-size: 18px; }

  /* Stats: grid 3 columnas compacto */
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .stat {
    flex: none;
    width: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 28px 12px;
  }
  .stat:last-child { border-right: 0; }
  .stat-num { font-size: clamp(28px, 8vw, 48px); letter-spacing: -0.03em; }
  .stat-label { font-size: 10px; }

  /* CTA final */
  .cta-title { font-size: clamp(38px, 10vw, 56px); max-width: 100%; }
  .cta-actions { flex-direction: column; }
  .pill {
    font-size: 15px;
    padding: 18px 24px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Footer */
  .footer { font-size: 14px; }
  .footer-title { font-size: 13px; }
}

/* WhatsApp pill: borde verde característico */
.pill[href*="wa.me"] { border-color: #25D366 !important; }
.pill[href*="wa.me"]:hover { background: rgba(37,211,102,0.08); }

/* ========== VANTA: opacity + light theme ========== */
#hero-vanta canvas {
  opacity: 0.38 !important;
  transition: opacity 0.8s;
}
[data-palette="bone"] #hero-vanta canvas { opacity: 1 !important; mix-blend-mode: normal; }

/* Hero explicit bg so it matches page in all palettes */
.hero { background: var(--bg); }

/* ========== CTA buttons: gradiente de peso ========== */
.cta-actions .pill:nth-child(1) {
  background: rgba(242,238,230,0.18);
  border-color: rgba(242,238,230,0.40);
  color: var(--ink);
}
.cta-actions .pill:nth-child(1):hover {
  background: rgba(242,238,230,0.28);
  color: var(--ink);
}
.cta-actions .pill:nth-child(2) {
  background: rgba(242,238,230,0.08);
  border-color: rgba(242,238,230,0.22);
  color: var(--ink-dim);
}
.cta-actions .pill:nth-child(2):hover {
  background: rgba(242,238,230,0.14);
  color: var(--ink);
}
.cta-actions .pill:nth-child(3) {
  background: rgba(242,238,230,0.03);
  border-color: rgba(242,238,230,0.12);
  color: var(--ink-mute);
}
.cta-actions .pill:nth-child(3):hover {
  background: rgba(242,238,230,0.09);
  color: var(--ink-dim);
}

/* ========== Bone palette: CTA pill buttons ========== */
[data-palette="bone"] .cta-actions .pill {
  background: rgba(15,16,20,0.05) !important;
  border-color: rgba(15,16,20,0.22) !important;
  color: var(--ink) !important;
}
[data-palette="bone"] .cta-actions .pill:hover {
  background: rgba(15,16,20,0.10) !important;
  color: var(--ink) !important;
}
[data-palette="bone"] .cta-actions .pill.primary {
  background: rgba(15,16,20,0.08) !important;
  border-color: rgba(15,16,20,0.32) !important;
  color: var(--ink) !important;
}

/* ========== WhatsApp button — global (all themes) ========== */
.pill-wa {
  border-color: rgba(37,211,102,.45) !important;
  color: #25d366 !important;
  background: transparent !important;
}
.pill-wa:hover {
  background: rgba(37,211,102,.08) !important;
  border-color: rgba(37,211,102,.7) !important;
  color: #25d366 !important;
}
[data-palette="bone"] .wiz-wa-share,
[data-palette="bone"] .rec-wa-share {
  border-color: rgba(37,211,102,.5) !important;
  color: #25d366 !important;
}

/* ========== Bone palette: tres pasos step-desc stays white ========== */
[data-palette="bone"] .step-content .step-desc,
[data-palette="bone"] .step-content .step-title,
[data-palette="bone"] .step-content .step-num {
  color: #fff !important;
}

/* ========== Mobile: ocultar chips de oficios ========== */
@media (max-width: 820px) {
  .search-tags { display: none; }
  .search-hint { display: none; }
}

/* ========== fu-anim: títulos con blur stagger ========== */
.fu-wrap { position: relative; }
.fu-ghost { visibility: hidden; pointer-events: none; }
.fu-anim {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}
@keyframes fuIn {
  from { opacity: 0; filter: blur(10px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}
.fw {
  display: inline-block;
  opacity: 0;
}
.fu-wrap.in .fw {
  animation: fuIn 0.6s var(--ease-out) both;
}
.fu-wrap.in .a0 { animation-delay: 0.04s; }
.fu-wrap.in .a1 { animation-delay: 0.13s; }
.fu-wrap.in .a2 { animation-delay: 0.22s; }
.fu-wrap.in .a3 { animation-delay: 0.31s; }
.fu-wrap.in .a4 { animation-delay: 0.40s; }
.fu-wrap.in .a5 { animation-delay: 0.49s; }
.fw.accent { color: var(--accent); }
.fw.accent-bg {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 6px;
  border-radius: 4px;
}
/* fu-wrap also fades in like reveal but faster */
.fu-wrap {
  opacity: 0;
  transition: opacity 0.3s;
}
.fu-wrap.in { opacity: 1; }

/* ========== Tres pasos: cards con foto ========== */
.steps {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  border-top: 1px solid var(--line);
  gap: 0;
  min-height: 340px;
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; min-height: auto; }
}
.step {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  cursor: default;
}
.step:last-child { border-right: 0; }
@media (max-width: 820px) {
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}
.step-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) blur(3px) brightness(0.35);
  transform: scale(1.05);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.step:hover .step-bg {
  filter: grayscale(0) blur(0) brightness(0.55);
  transform: scale(1.0);
}
.step-content {
  position: relative;
  z-index: 1;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #fff;
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}
@media (max-width: 820px) {
  .step { min-height: 150px !important; max-height: none !important; }
  .step-content {
    padding: 22px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    height: auto !important;
    gap: 2px 10px;
  }
}
.step-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: auto;
}
@media (max-width: 820px) {
  .step-num { margin-bottom: 0; order: 1; font-size: 12px; line-height: 30px; }
}
.step-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 48px;
  margin-bottom: 12px;
}
@media (max-width: 820px) {
  .step-title { font-size: 26px; line-height: 30px; margin-top: 0; order: 2; flex: 1; min-width: 0; }
}
@media (max-width: 820px) {
  .step-desc { order: 3; flex-basis: 100%; margin-top: 10px; font-size: 13px; max-width: none; }
}
.step-desc {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 28ch;
}
