/* ============================================================
   HTO Consulting — Corporate Light — css/corporate-light.css
   Landing corporativa en el sistema light del portal de
   recursos (resource-light.css). Standalone: no depende de
   main-v4.css. Geist + Geist Mono, blanco, acento verde.
============================================================ */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f8f6f1;
  --border:       #e6e8eb;
  --border-hover: #d0d5da;
  --text:         #0f172a;
  --text-sec:     #475569;
  --text-muted:   #94a3b8;
  --accent:       #6dd684;
  --accent-dark:  #48cb64;
  --accent-soft:  #bfedc9;
  --accent-tint:  #ebf9ee;
  --accent-text:  #15a34a;
  --gold:         #b45309;
  --cyan:         #0e7490;
  --violet:       #7c3aed;
  --rust:         #c2410c;
  --olive:        #4d7c0f;
  --font:         'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Geist Mono', 'SF Mono', Consolas, monospace;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo:    cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(109, 214, 132, 0.25); color: var(--text); }

img { max-width: 100%; display: block; }

/* ── Fondos: grid + auroras + grano (sistema del portal) ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(109, 214, 132, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 214, 132, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at center, black 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 75% at center, black 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  animation: grid-pulse 8s ease-in-out infinite;
  will-change: opacity;
  opacity: .5;
}
@keyframes grid-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 0.28; } }

.ambient-bg {
  position: fixed;
  inset: -14% 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(109, 214, 132, 0.05), transparent 65%);
  will-change: transform;
}
.ambient-bg::before,
.ambient-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
  pointer-events: none;
}
.ambient-bg::before {
  width: 620px; height: 620px;
  left: -10%; top: -8%;
  background: radial-gradient(circle, rgba(109, 214, 132, 0.20) 0%, rgba(109, 214, 132, 0.08) 35%, rgba(109, 214, 132, 0.03) 55%, transparent 68%);
  animation: aurora-a 28s ease-in-out infinite;
}
.ambient-bg::after {
  width: 540px; height: 540px;
  right: -6%; top: 22%;
  background: radial-gradient(circle, rgba(72, 203, 100, 0.16) 0%, rgba(72, 203, 100, 0.07) 35%, rgba(109, 214, 132, 0.03) 55%, transparent 68%);
  animation: aurora-b 34s ease-in-out infinite;
}
@media (max-width: 640px) {
  .ambient-bg::before { width: 440px; height: 440px; }
  .ambient-bg::after { width: 400px; height: 400px; }
}
@keyframes aurora-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  33%      { transform: translate(80px, 60px) scale(1.08); opacity: 0.95; }
  66%      { transform: translate(-40px, 120px) scale(0.95); opacity: 0.65; }
}
@keyframes aurora-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  40%      { transform: translate(-100px, 90px) scale(1.12); opacity: 0.95; }
  75%      { transform: translate(60px, -50px) scale(0.92); opacity: 0.6; }
}
.noise-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-brand .logo-mark { height: 16px; width: auto; display: block; }
.header-brand .logo-text { height: 17px; width: auto; display: block; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.header-nav a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-sec);
  text-decoration: none;
  letter-spacing: -.005em;
  transition: color .2s ease;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--accent-text); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: all .2s ease;
}
.lang-btn.active {
  background: var(--accent-text);
  color: #ffffff;
}

.header-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(180deg, #3ed47a 0%, #16a34a 60%, #0e7a3a 100%);
  border-radius: 10px;
  color: #ffffff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 3px 10px rgba(22, 163, 74, 0.25);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s;
  white-space: nowrap;
}
.header-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 6px 16px rgba(22, 163, 74, 0.32);
}

/* Back link (página legal) — flecha SOLO vía ::before */
.back-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sec);
  text-decoration: none;
  transition: color .2s ease;
}
.back-link::before {
  content: '←';
  font-size: 1rem;
  transition: transform .2s ease;
}
.back-link:hover { color: var(--accent-text); }
.back-link:hover::before { transform: translateX(-3px); }

/* ── Layout ── */
main { position: relative; z-index: 10; }
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}
section { position: relative; }
.section {
  padding: clamp(72px, 9vw, 116px) 0;
}
.section + .section { padding-top: 0; }

/* ── Etiquetas de sección ── */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.sec-label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.sec-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 22ch;
}
.sec-title em {
  font-style: normal;
  color: var(--accent-text);
}
.sec-intro {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-sec);
  max-width: 60ch;
}
.sec-head { margin-bottom: clamp(36px, 4.6vw, 56px); }
.sec-head.centered { text-align: center; }
.sec-head.centered .sec-title { margin-left: auto; margin-right: auto; }
.sec-head.centered .sec-intro { margin-left: auto; margin-right: auto; }

/* ── HERO ── */
.hero {
  padding: clamp(64px, 8vw, 108px) 0 clamp(48px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
  background: linear-gradient(transparent 68%, var(--accent-soft) 68%, var(--accent-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.7;
  color: var(--text-sec);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: .8rem;
  color: var(--text-muted);
}

/* Botones */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  height: 50px;
  background: linear-gradient(180deg, #3ed47a 0%, #16a34a 60%, #0e7a3a 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 14px rgba(22, 163, 74, 0.30);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s var(--ease-out);
}
.cta-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 7px 20px rgba(22, 163, 74, 0.38);
}
.cta-btn:active { transform: translateY(0); }
.cta-btn svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--ease-out);
}
.cta-btn:hover svg { transform: translateX(3px); }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-sec);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.ghost-btn:hover {
  border-color: var(--accent-soft);
  color: var(--accent-text);
  background: var(--accent-tint);
}

/* ── Foto founder ── */
.photo-frame {
  position: relative;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(150deg, rgba(72, 203, 100, 0.55), rgba(109, 214, 132, 0.18) 40%, var(--border) 100%) border-box;
  box-shadow: 0 8px 34px rgba(15, 23, 42, 0.07);
  padding: 10px;
}
.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-soft);
}
.photo-caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.photo-caption strong {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.photo-caption span {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-top: 3px;
}

/* ── Proof strip (hero) ── */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
}
.fact-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.fact-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.fact-lbl {
  font-size: .8rem;
  color: var(--text-sec);
  line-height: 1.55;
}

/* ── Qué hacemos: dos modos ── */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mode-card {
  padding: 30px 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-dark);
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  transition: transform .3s var(--ease-out), box-shadow .35s var(--ease-out);
}
.mode-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10); }
.mode-card:nth-child(2) { border-top-color: var(--cyan); }
.mode-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.mode-card:nth-child(2) .mode-tag { color: var(--cyan); }
.mode-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.mode-desc {
  font-size: .92rem;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 16px;
}
.mode-list { list-style: none; }
.mode-list li {
  font-size: .86rem;
  color: var(--text-sec);
  line-height: 1.6;
  padding: 5px 0 5px 20px;
  position: relative;
}
.mode-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-weight: 700;
}
.mode-card:nth-child(2) .mode-list li::before { color: var(--cyan); }

/* ── Servicios: 6 tarjetas ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid currentColor;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s var(--ease-out), box-shadow .35s var(--ease-out);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10); }
.services-grid article:nth-of-type(6n+1) { color: #15a34a; }
.services-grid article:nth-of-type(6n+2) { color: #0e7490; }
.services-grid article:nth-of-type(6n+3) { color: #7c3aed; }
.services-grid article:nth-of-type(6n+4) { color: #c2410c; }
.services-grid article:nth-of-type(6n+5) { color: #4d7c0f; }
.services-grid article:nth-of-type(6n)   { color: #b45309; }
.service-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, currentColor 9%, #ffffff);
  border: 1px solid color-mix(in srgb, currentColor 22%, #ffffff);
}
.service-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.015em;
  line-height: 1.3;
}
.service-desc {
  font-size: .84rem;
  color: var(--text-sec);
  line-height: 1.62;
}

/* ── Proceso: 4 pasos ── */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.process-step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid currentColor;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .3s var(--ease-out), box-shadow .35s var(--ease-out);
}
.process-step:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10); }
.process-flow > div:nth-of-type(4n+1) { color: #15a34a; }
.process-flow > div:nth-of-type(4n+2) { color: #0e7490; }
.process-flow > div:nth-of-type(4n+3) { color: #7c3aed; }
.process-flow > div:nth-of-type(4n)   { color: #c2410c; }
.process-num {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.process-num::after {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .45;
}
.process-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.015em;
}
.process-desc {
  font-size: .82rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Testimonios en vídeo (Wistia lazy) ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: clamp(28px, 3.6vw, 44px);
}
.video-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-soft) center / cover no-repeat;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  cursor: pointer;
}
.video-frame wistia-player {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.vp-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-play svg {
  width: 17px; height: 17px;
  fill: var(--accent-text);
  stroke: none;
  margin-left: 2px;
}
.video-frame .vp-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  cursor: pointer;
  transition: opacity .35s ease, transform .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-frame:not(.mounted):hover .vp-play {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-frame.mounted .vp-play {
  opacity: 0;
  pointer-events: none;
}
.video-caption { min-width: 0; }
.vc-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.45;
}
.vc-result { color: var(--accent-text); }
.vc-role {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Equipo ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.team-card {
  padding: 26px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: transform .3s var(--ease-out), box-shadow .35s var(--ease-out);
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10); }
.team-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.team-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team-role {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.team-desc {
  font-size: .8rem;
  color: var(--text-sec);
  line-height: 1.6;
}
.team-growth {
  margin-top: 20px;
  padding: 15px 22px;
  border-radius: 14px;
  border: 1px dashed var(--accent-soft);
  background: var(--accent-tint);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  text-align: center;
}

/* ── Casos de estudio en texto ── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 3vw, 36px);
}
.case-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: transform .3s var(--ease-out), box-shadow .35s var(--ease-out);
}
.case-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10); }
.case-name {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.case-sector {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.case-k {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.case-v {
  font-size: .82rem;
  color: var(--text-sec);
  line-height: 1.6;
}
.case-result {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.case-res-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.case-res-from {
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Founder ── */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.founder-copy p {
  font-size: .98rem;
  line-height: 1.75;
  color: var(--text-sec);
  margin-bottom: 1rem;
  max-width: 58ch;
}
.founder-copy p strong { color: var(--text); font-weight: 700; }

.timeline {
  position: relative;
  margin-top: 28px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-dark), var(--accent));
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1.3s var(--ease-expo) .1s;
}
.timeline.drawn::after { transform: scaleY(1); }
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.tl-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 4px;
}
.tl-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.tl-desc {
  font-size: .82rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── CTA final ── */
.cta-close {
  position: relative;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 64px);
  border-radius: 24px;
  text-align: center;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(150deg, rgba(72, 203, 100, 0.55), rgba(109, 214, 132, 0.18) 40%, var(--border) 100%) border-box;
  box-shadow: 0 8px 34px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}
.cta-close::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(109, 214, 132, 0.12), transparent 65%);
}
.cta-close .sec-label { justify-content: center; }
.cta-close h2 {
  position: relative;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1rem;
}
.cta-close p {
  position: relative;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--text-sec);
  max-width: 54ch;
  margin: 0 auto 1.8rem;
}
.cta-close .cta-btn { position: relative; }
.cta-close .cta-note {
  position: relative;
  margin: 18px 0 0;
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── Disclosure ── */
.disclosure {
  margin-top: 24px;
  font-size: .74rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 72ch;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  padding: clamp(44px, 5vw, 64px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand img { height: 22px; width: auto; margin-bottom: 14px; }
.footer-brand p {
  font-size: .82rem;
  line-height: 1.65;
  color: var(--text-sec);
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: .84rem;
  color: var(--text-sec);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--accent-text); }
.footer-col p {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-sec);
}
.footer-identity {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease, transform .25s var(--ease-out);
}
.footer-social a:hover {
  color: var(--accent-text);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 15px; height: 15px;
  fill: currentColor;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 18px;
}
.footer-links a {
  font-size: .78rem;
  color: var(--text-sec);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--accent-text); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-legal .disclaimer {
  font-size: .72rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-legal .copyright {
  font-size: .74rem;
  color: var(--text-muted);
}

/* ── Página legal ── */
.legal-page {
  padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 9vw, 116px);
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.4rem;
}
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 2.2rem 0 .7rem;
}
.legal-content p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text-sec);
  margin-bottom: .9rem;
}
.legal-content ul {
  margin: 0 0 1rem 1.2rem;
}
.legal-content li {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text-sec);
  margin-bottom: .3rem;
}
.legal-content strong { color: var(--text); font-weight: 600; }

/* ── Enhancements: progreso + back-to-top + reveals ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  z-index: 100;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  box-shadow: 0 0 6px rgba(72, 203, 100, 0.35);
}
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--accent-text);
  font-size: 1rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.18);
}
.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease-expo), transform .75s var(--ease-expo);
}
.js .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-on-scroll, .js .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .grid-bg, .ambient-bg::before, .ambient-bg::after { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; gap: 26px; }
  .video-card { max-width: 560px; margin: 0 auto; width: 100%; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { max-width: 560px; margin: 0 auto; width: 100%; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-visual { max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .header-nav { display: none; }
}
@media (max-width: 720px) {
  .mode-grid { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 20px; }
  .site-header { padding: 0 20px; }
  .header-brand .logo-text { display: none; }
  .header-inner { gap: 10px; }
  .header-cta { padding: 0 14px; font-size: .76rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .ghost-btn { width: 100%; justify-content: center; }
  .hero-actions .cta-btn { width: 100%; justify-content: center; }
  .photo-caption { left: 16px; bottom: 16px; padding: 8px 13px; }
}

/* ════════════════════════════════════════════════════════════
   MOTION SYSTEM — coreografía premium (v2)
   Solo transform/opacity. Gated tras html.js.
   Reduced motion: todo desactivado al final del bloque.
════════════════════════════════════════════════════════════ */

/* ── Hero: coreografía de entrada ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-photo {
  from { opacity: 0; transform: translateY(36px) scale(.965); }
  to   { opacity: 1; transform: none; }
}
.js .hero-eyebrow { animation: rise .7s var(--ease-expo) .05s both; }
.js .hero-lead    { animation: rise .8s var(--ease-expo) .52s both; }
.js .hero-actions { animation: rise .8s var(--ease-expo) .64s both; }
.js .hero-note    { animation: rise .8s var(--ease-expo) .78s both; }
.js .hero-visual  { animation: hero-photo 1s var(--ease-expo) .35s both; }
.js .hero .photo-caption { animation: rise .7s var(--ease-expo) .95s both; }

/* H1: reveal por palabras con máscara (JS hace el split) */
.js .hero h1 { opacity: 0; }
.js .hero h1.split { opacity: 1; }
.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .06em .01em .18em 0;
  margin: -.06em -.01em -.18em 0;
}
.hero h1 .wi {
  display: inline-block;
  transform: translateY(118%);
  transition: transform .85s var(--ease-expo);
  transition-delay: var(--wd, 0s);
  will-change: transform;
}
.hero h1.in .wi { transform: translateY(0); }

/* ── Section headings: reveal con máscara ── */
.ttl-mask { margin-bottom: 1rem; }
.ttl-mask > .sec-title, .ttl-mask > h2 { margin-bottom: 0; }
.js .ttl-mask { overflow: hidden; }
.js .ttl-mask > * {
  transform: translateY(115%);
  transition: transform .9s var(--ease-expo) .08s;
  will-change: transform;
}
.js .visible .ttl-mask > *,
.js .ttl-mask.visible > * { transform: translateY(0); }

/* sec-head: el contenedor no se desvanece, los hijos entran escalonados */
.js .sec-head.animate-on-scroll { opacity: 1; transform: none; transition: none; }
.js .sec-head .sec-label {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-expo), transform .6s var(--ease-expo);
}
.js .sec-head .sec-intro {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-expo) .2s, transform .7s var(--ease-expo) .2s;
}
.js .sec-head.visible .sec-label,
.js .sec-head.visible .sec-intro { opacity: 1; transform: none; }

/* founder-copy: mismo tratamiento */
.js .founder-copy.animate-on-scroll { opacity: 1; transform: none; transition: none; }
.js .founder-copy .sec-label {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-expo), transform .6s var(--ease-expo);
}
.js .founder-copy > p {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease-expo), transform .65s var(--ease-expo);
}
.js .founder-copy > p:nth-of-type(1) { transition-delay: .22s; }
.js .founder-copy > p:nth-of-type(2) { transition-delay: .34s; }
.js .founder-copy > p:nth-of-type(3) { transition-delay: .46s; }
.js .founder-copy.visible .sec-label,
.js .founder-copy.visible > p { opacity: 1; transform: none; }

/* CTA close: la tarjeta sube entera, el interior escalona */
.js .cta-close p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease-expo) .3s, transform .7s var(--ease-expo) .3s;
}
.js .cta-close.visible p { opacity: 1; transform: none; }
.js .cta-close .ttl-mask > * { transition-delay: .18s; }

/* ── Service / mode cards: glow que sigue el cursor ── */
.service-card { --glowc: color-mix(in srgb, currentColor 11%, transparent); }
.mode-card { position: relative; --glowc: rgba(72, 203, 100, 0.13); }
.mode-card:nth-child(2) { --glowc: rgba(14, 116, 144, 0.11); }
.service-card::after,
.mode-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--glowc), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}
.service-card:hover::after,
.mode-card:hover::after { opacity: 1; }
.service-card {
  transition: transform .45s var(--ease-expo), box-shadow .5s var(--ease-expo),
              border-bottom-color .35s ease, border-left-color .35s ease, border-right-color .35s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-bottom-color: color-mix(in srgb, currentColor 28%, var(--border));
  border-left-color: color-mix(in srgb, currentColor 28%, var(--border));
  border-right-color: color-mix(in srgb, currentColor 28%, var(--border));
}
.service-icon { transition: transform .4s var(--ease-spring); }
.service-card:hover .service-icon { transform: translateY(-2px) rotate(-4deg) scale(1.07); }

/* (el conector del proceso ahora usa las flechas del Acelerador — ver FLOW SYSTEM) */

/* ── Timeline founder: dibujo progresivo ── */
.js .tl-item {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .6s var(--ease-expo), transform .6s var(--ease-expo);
}
.js .tl-item::before {
  transform: scale(0);
  transition: transform .45s var(--ease-spring);
}
.js .tl-item:nth-child(1), .js .tl-item:nth-child(1)::before { transition-delay: .12s; }
.js .tl-item:nth-child(2), .js .tl-item:nth-child(2)::before { transition-delay: .38s; }
.js .tl-item:nth-child(3), .js .tl-item:nth-child(3)::before { transition-delay: .64s; }
.js .tl-item:nth-child(4), .js .tl-item:nth-child(4)::before { transition-delay: .9s; }
.js .timeline.drawn .tl-item { opacity: 1; transform: none; }
.js .timeline.drawn .tl-item::before { transform: scale(1); }

/* ── Micro-interacciones ── */
/* Nav: subrayado animado */
.header-nav a { position: relative; }
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--ease-expo);
}
.header-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
/* Footer links: mismo subrayado */
.footer-col a {
  position: relative;
  display: inline-block;
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .4s var(--ease-expo);
}
.footer-col a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* Lang toggle: pastilla deslizante (JS la posiciona) */
.lang-toggle { position: relative; }
.lang-ind {
  position: absolute;
  top: 3px; left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--accent-text);
  z-index: 0;
  transition: transform .45s var(--ease-expo), width .45s var(--ease-expo);
  will-change: transform;
}
.lang-btn { position: relative; z-index: 1; transition: color .3s ease; }
.lang-toggle.has-ind .lang-btn.active { background: transparent; }

/* Botones: spring (el efecto magnético lo pone JS con transform inline) */
.ghost-btn { transition: border-color .25s ease, color .25s ease, background .25s ease, transform .5s var(--ease-spring); }
.back-to-top { transition: opacity .25s ease, transform .45s var(--ease-spring), border-color .25s ease, box-shadow .3s ease; }

/* ── Reduced motion: todo se desactiva limpiamente ── */
@media (prefers-reduced-motion: reduce) {
  .js .hero-eyebrow, .js .hero-lead, .js .hero-actions, .js .hero-note,
  .js .hero-visual, .js .hero .photo-caption { animation: none; }
  .js .hero h1 { opacity: 1; }
  .hero h1 .wi { transform: none !important; transition: none !important; }
  .js .ttl-mask > * { transform: none; transition: none; }
  .js .sec-head .sec-label, .js .sec-head .sec-intro,
  .js .founder-copy .sec-label, .js .founder-copy > p,
  .js .cta-close p, .js .tl-item { opacity: 1; transform: none; transition: none; }
  .js .tl-item::before { transform: none; transition: none; }
  .timeline::after { transform: none; transition: none; }
  .service-card::after, .mode-card::after { display: none; }
  .service-card, .service-icon, .header-nav a::after, .footer-col a::after, .lang-ind { transition: none; }
  .service-card:hover, .mode-card:hover, .process-step:hover,
  .related-box:hover, .cta-btn:hover, .header-cta:hover { transform: none; }
}

/* ════════════════════════════════════════════════════════════
   V3 — HERO CENTRADO + FLOW SYSTEM (flechas del Acelerador)
   Conectores SVG que se dibujan (stroke-dashoffset) con chevron
   que cae/entra al final. Mismo lenguaje que go.htoconsulting.pro:
   gradiente #3ecf7a→#16a34a, stroke 2.5, one-shot al revelar.
════════════════════════════════════════════════════════════ */

/* ── Hero centrado, headline protagonista ── */
.hero { padding: clamp(76px, 9.5vw, 132px) 0 clamp(56px, 7vw, 92px); }
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.hero-inner .hero-eyebrow { margin-bottom: 30px; }
.hero-inner h1 {
  font-size: clamp(2.5rem, 5.9vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin: 0 auto 1.5rem;
  max-width: 20ch;
}
.hero-inner .hero-lead {
  margin: 0 auto 2.2rem;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}
.hero-inner .hero-actions { justify-content: center; }
.hero-inner .hero-note { margin-top: 18px; }

/* ── FLOW SYSTEM: piezas comunes ── */
.fl-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 650ms cubic-bezier(0.4, 0, 0.2, 1);
}
.fl-tip {
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity 320ms ease-out 520ms, transform 320ms cubic-bezier(0.22, 1, 0.36, 1) 520ms;
}
.fl-tip-h {
  opacity: 0;
  transform: translateX(-7px);
  transition: opacity 300ms ease-out, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Conectores verticales (móvil): curva que cruza + chevron que cae */
.flow-v {
  display: none;
  justify-content: center;
  padding: 2px 0;
}
.flow-v svg { width: 170px; height: 53px; }
.flow-v.drawn .fl-line { stroke-dashoffset: 0; }
.flow-v.drawn .fl-tip { opacity: 1; transform: none; }

/* Conector entre filas de servicios (desktop): receta exacta del Acelerador */
.flow-row {
  display: none;
  grid-column: 1 / -1;
  justify-content: center;
  padding: 4px 0;
}
.flow-row.drawn .fl-line { stroke-dashoffset: 0; }
.flow-row.drawn .fl-tip { opacity: 1; transform: none; }

/* Flechas horizontales entre tarjetas (desktop) */
.svc-arrow {
  display: none;
  position: absolute;
  top: 50%;
  right: -33px;
  width: 30px;
  height: 16px;
  margin-top: -8px;
  z-index: 3;
  pointer-events: none;
}
.svc-arrow .fl-line { transition-delay: var(--ad, .5s); transition-duration: 550ms; }
.svc-arrow .fl-tip-h {
  transition-delay: calc(var(--ad, .5s) + 380ms), calc(var(--ad, .5s) + 380ms);
}
.service-card.visible .svc-arrow .fl-line,
.process-step.visible .svc-arrow .fl-line { stroke-dashoffset: 0; }
.service-card.visible .svc-arrow .fl-tip-h,
.process-step.visible .svc-arrow .fl-tip-h { opacity: 1; transform: none; }

/* Ritmo paso a paso: cada flecha se enciende después de la anterior */
.services-grid article:nth-of-type(1) .svc-arrow { --ad: .55s; }
.services-grid article:nth-of-type(2) .svc-arrow { --ad: .85s; }
.services-grid article:nth-of-type(4) .svc-arrow { --ad: .7s; }
.services-grid article:nth-of-type(5) .svc-arrow { --ad: 1s; }
.process-flow > div:nth-of-type(1) .svc-arrow { --ad: .5s; }
.process-flow > div:nth-of-type(2) .svc-arrow { --ad: .85s; }
.process-flow > div:nth-of-type(3) .svc-arrow { --ad: 1.2s; }

/* Activación por breakpoint */
@media (min-width: 981px) {
  .services-grid { column-gap: 36px; }
  .process-flow { column-gap: 36px; }
  .svc-arrow { display: block; }
  .flow-row { display: flex; }
}
@media (max-width: 560px) {
  .flow-v { display: flex; }
}

/* Reduced motion: flechas en estado final, sin animación */
@media (prefers-reduced-motion: reduce) {
  .fl-line, .svc-arrow .fl-line { stroke-dashoffset: 0; transition: none; }
  .fl-tip, .fl-tip-h { opacity: 1; transform: none; transition: none; }
}
