/* ═══════════ Praxis Redesign — Hypelab demo ═══════════
   Tema claro (izo-like) por defecto · tema oscuro vía [data-theme="dark"] */
:root {
  --bg: #ffffff;
  --bg-2: #f4f9f6;
  --surface: #ffffff;
  --surface-2: #e9f3ee;
  --line: rgba(34, 48, 43, 0.1);
  --green: #75b9a6;
  --green-hover: #8fd0bc;
  --green-dark: #617f7a;
  --accent-ink: #37806b;
  --text: #26312c;
  --muted: #5f6f68;
  --nav-bg: rgba(255, 255, 255, 0.86);
  --chip-bg: rgba(255, 255, 255, 0.95);
  --shadow-card: 0 24px 60px rgba(34, 48, 43, 0.1);
  --shadow-float: 0 14px 40px rgba(34, 48, 43, 0.14);
  --shadow-drop: 0 24px 60px rgba(34, 48, 43, 0.16);
  --marquee-ink: rgba(38, 49, 44, 0.32);
  --chart-grid: rgba(34, 48, 43, 0.08);
  --chart-line: #3f917b;
  --stat-number: #4fa88e;
  --scroll-hint: rgba(38, 49, 44, 0.3);
  --ghost-border: rgba(38, 49, 44, 0.28);
  --ghost-hover: rgba(38, 49, 44, 0.06);
  --orb-1: rgba(117, 185, 166, 0.4);
  --orb-2: rgba(214, 236, 228, 0.95);
  --orb-3: rgba(246, 238, 221, 0.95);
  --orb-blur: 60px;
  --btn-ink: #14231e;
  --warm: #f6eedd;
  --warm-2: #f1e4c8;
  --warm-ink: #a98a4b;
  --dot: rgba(34, 48, 43, 0.12);
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #0d1412;
  --bg-2: #111a17;
  --surface: #16211d;
  --surface-2: #1b2925;
  --line: rgba(117, 185, 166, 0.14);
  --accent-ink: #93dcc7;
  --text: #eef4f1;
  --muted: #93a49d;
  --nav-bg: rgba(13, 20, 18, 0.82);
  --chip-bg: rgba(27, 41, 37, 0.92);
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-drop: 0 24px 60px rgba(0, 0, 0, 0.45);
  --marquee-ink: rgba(238, 244, 241, 0.35);
  --chart-grid: rgba(238, 244, 241, 0.06);
  --chart-line: #93dcc7;
  --stat-number: #75b9a6;
  --scroll-hint: rgba(238, 244, 241, 0.25);
  --ghost-border: rgba(238, 244, 241, 0.25);
  --ghost-hover: rgba(238, 244, 241, 0.07);
  --orb-1: rgba(117, 185, 166, 0.5);
  --orb-2: rgba(97, 127, 122, 0.55);
  --orb-3: rgba(147, 220, 199, 0.25);
  --orb-blur: 90px;
  --dot: rgba(147, 220, 199, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Shared ── */
.eyebrow {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 20px; letter-spacing: -0.02em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--green);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}
.btn:hover {
  background: var(--green-hover); border-color: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(117, 185, 166, 0.45);
}
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--ghost-border);
}
.btn--ghost:hover { background: var(--ghost-hover); box-shadow: none; border-color: var(--text); transform: translateY(-2px); }
.btn--invert { background: #14231e; color: #a7e6d3; border-color: #14231e; }
.btn--invert:hover { background: #1d312a; border-color: #1d312a; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3); }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: 1160px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.nav__logo img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__link {
  background: none; border: none;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); font-size: 15px; font-weight: 500; font-family: var(--font-body);
  padding: 8px 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__item--drop { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 14px); left: -24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 300px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  box-shadow: var(--shadow-drop);
}
.nav__item--drop:hover .nav__dropdown,
.nav__item--drop:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__droptitle {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 6px;
}
.nav__droplink {
  display: block; padding: 5px 0; font-size: 14.5px; color: var(--text);
  transition: color 0.25s, transform 0.25s var(--ease);
}
.nav__droplink:hover { color: var(--accent-ink); transform: translateX(4px); }
.nav__droplink--active { color: var(--accent-ink); font-weight: 600; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--ghost-border);
  color: var(--text);
  transition: background 0.3s, transform 0.3s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--ghost-hover); transform: rotate(15deg); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav__burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; display: block; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 132px 0 48px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.5;
}
.orb { position: absolute; border-radius: 50%; filter: blur(var(--orb-blur)); opacity: 0.55; }
.orb--1 {
  width: 480px; height: 480px; top: -140px; right: -80px;
  background: radial-gradient(circle, var(--orb-1), transparent 70%);
  animation: drift1 14s ease-in-out infinite alternate;
}
.orb--2 {
  width: 420px; height: 420px; bottom: -120px; left: -100px;
  background: radial-gradient(circle, var(--orb-2), transparent 72%);
  animation: drift2 18s ease-in-out infinite alternate;
}
.orb--3 {
  width: 300px; height: 300px; top: 38%; left: 40%;
  background: radial-gradient(circle, var(--orb-3), transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, -40px) scale(1.1); } }

.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 60px; align-items: center; position: relative;
}
.hero__title {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero__title em { font-style: normal; color: var(--accent-ink); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero__title .line span {
  display: block; transform: translateY(110%);
  animation: lineUp 0.9s var(--ease) forwards;
}
.hero__title .line:nth-child(1) span { animation-delay: 0.1s; }
.hero__title .line:nth-child(2) span { animation-delay: 0.22s; }
.hero__title .line:nth-child(3) span { animation-delay: 0.34s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__sub { font-size: 19px; color: var(--muted); max-width: 440px; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual */
.hero__visual { position: relative; }
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.chart-card__head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 14px;
  font-family: var(--font-head);
}
.chart-card__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--chart-line);
  box-shadow: 0 0 0 0 rgba(117, 185, 166, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(117, 185, 166, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(117, 185, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(117, 185, 166, 0); }
}
.chart { width: 100%; height: auto; }
.chart__gridlines line { stroke: var(--chart-grid); stroke-width: 1; }
.chart__line {
  stroke: var(--chart-line); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: draw 2.4s var(--ease) 0.7s forwards;
}
.chart__area { opacity: 0; animation: fadeIn 1.4s ease 1.6s forwards; }
.chart__point {
  fill: var(--chart-line); opacity: 0;
  animation: fadeIn 0.5s ease 2.7s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.chart-card__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.chart-card__stats strong {
  font-family: var(--font-head); font-size: 26px; color: var(--accent-ink);
  display: block;
}
.chart-card__stats span:not(.count) { font-size: 12.5px; color: var(--muted); }
.chart-card__stats strong .count, .chart-card__stats strong.count { font-size: inherit; color: inherit; }

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-float);
}
.float-chip svg { color: var(--accent-ink); flex-shrink: 0; }
.float-chip--1 { top: -22px; right: 8px; animation: floaty 5s ease-in-out infinite; }
.float-chip--2 { bottom: -20px; left: -14px; animation: floaty 6s ease-in-out 1.2s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid var(--scroll-hint);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 7px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 4px; background: var(--green);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ═══════════ STAT SECTION ═══════════ */
.stat-section { padding: 110px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-section__inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 70px; align-items: center;
}
.bignum {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(110px, 14vw, 180px);
  line-height: 1; letter-spacing: -0.04em;
  color: var(--stat-number);
  display: flex; align-items: baseline;
}
.bignum__pct { font-size: 0.42em; color: var(--accent-ink); }
.bignum__bar {
  height: 8px; border-radius: 8px; background: var(--surface-2);
  margin-top: 22px; overflow: hidden; max-width: 320px;
}
.bignum__bar span {
  display: block; height: 100%; width: 0; border-radius: 8px;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  transition: width 1.6s var(--ease) 0.3s;
}
.stat-section.is-visible .bignum__bar span { width: 10%; min-width: 34px; }
.stat-section__copy h2 { font-size: clamp(24px, 3vw, 33px); margin-bottom: 30px; letter-spacing: -0.01em; }

.checklist { list-style: none; }
.checklist li {
  position: relative; padding: 13px 0 13px 44px;
  font-size: 17px; border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(117, 185, 166, 0.16);
  border: 1px solid rgba(117, 185, 166, 0.45);
}
.checklist li::after {
  content: ""; position: absolute; left: 8px; top: 22px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}

/* ═══════════ STEPS ═══════════ */
.steps { padding: 120px 0; }
.steps__track {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; margin-top: 70px;
}
.steps__line {
  position: absolute; top: 27px; left: 3%; right: 3%;
  height: 2px; background: var(--surface-2); z-index: 0;
}
.steps__line span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  transition: width 1.2s var(--ease);
}
.step { position: relative; z-index: 1; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  background: var(--surface-2); color: var(--accent-ink);
  border: 1px solid var(--line);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s, color 0.4s;
}
.step:hover .step__num {
  transform: scale(1.12); background: var(--green); color: var(--btn-ink);
  box-shadow: 0 8px 30px rgba(117, 185, 166, 0.45);
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ═══════════ TRACKING ═══════════ */
.tracking { padding: 120px 0 100px; background: var(--bg-2); border-top: 1px solid var(--line); }
.tracking__head { max-width: 720px; }
.tracking__intro { color: var(--muted); font-size: 18px; margin-top: 6px; }

.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 60px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(117, 185, 166, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(117, 185, 166, 0.5);
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(117, 185, 166, 0.14);
  color: var(--accent-ink);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; margin-bottom: 10px; color: var(--accent-ink); }
.card p { color: var(--muted); font-size: 15px; position: relative; }

.tracking__for {
  margin-top: 70px;
  background: linear-gradient(135deg, rgba(117, 185, 166, 0.12), rgba(97, 127, 122, 0.06));
  border: 1px solid rgba(117, 185, 166, 0.3);
  border-radius: 20px;
  padding: 44px 48px;
}
.tracking__for h3 { font-size: 26px; margin-bottom: 10px; }
.tracking__for p:last-child { color: var(--muted); font-size: 17px; max-width: 640px; }

/* ═══════════ TESTIMONIALS ═══════════ */
.testimonials { padding: 120px 0 40px; }
.tslider { max-width: 820px; margin: 50px auto 0; }
.tslider__viewport { position: relative; min-height: 320px; }
.tslide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.tslide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.tslide blockquote {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55; font-weight: 400;
  color: var(--text);
  margin-bottom: 30px;
}
.tslide footer { display: flex; align-items: center; gap: 16px; }
.tslide__avatar {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; font-family: var(--font-head); font-weight: 700;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--surface); box-shadow: var(--shadow-float);
}
.tslide__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tslide footer strong { display: block; font-family: var(--font-head); }
.tslide footer span:not(.tslide__avatar) { color: var(--muted); font-size: 14px; }

.tslider__nav { display: flex; gap: 10px; margin-top: 40px; }
.tslider__dot {
  width: 34px; height: 5px; border-radius: 5px; border: none;
  background: var(--surface-2);
  transition: background 0.3s, width 0.3s var(--ease);
}
.tslider__dot.is-active { background: var(--green); width: 52px; }

/* Marquee */
.marquee { margin-top: 90px; padding: 44px 0; border-top: 1px solid var(--line); overflow: hidden; }
.marquee__label {
  text-align: center; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px; font-family: var(--font-head);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__group span {
  font-family: var(--font-head); font-weight: 600;
  font-size: 26px; color: var(--marquee-ink);
  padding: 0 44px; white-space: nowrap;
  transition: color 0.3s;
}
.marquee__group span:hover { color: var(--accent-ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════ CTA ═══════════ */
.cta { padding: 60px 0 120px; }
.cta__inner {
  background: linear-gradient(120deg, var(--green), var(--green-dark));
  border-radius: 26px;
  padding: 70px 60px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); filter: blur(60px);
  top: -120px; right: -60px;
  animation: drift1 10s ease-in-out infinite alternate;
}
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); color: #14231e; margin-bottom: 12px; letter-spacing: -0.02em; position: relative; }
.cta p { color: rgba(20, 35, 30, 0.75); font-size: 18px; margin-bottom: 32px; position: relative; }

/* ═══════════ CONTACT ═══════════ */
.contact { padding: 40px 0 120px; }
.contact__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.contact__copy > p { color: var(--muted); font-size: 17px; }
.contact__data { list-style: none; margin-top: 36px; }
.contact__data li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15px;
}
.contact__data strong {
  display: block; color: var(--text); font-family: var(--font-head);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 4px;
}
.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  box-shadow: var(--shadow-card);
}
.field { display: flex; flex-direction: column; gap: 7px; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(117, 185, 166, 0.18);
}
.contact__form .btn { grid-column: span 2; justify-content: center; border: none; }

/* ═══════════ FOOTER ═══════════ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding: 70px 24px 50px;
}
.footer__brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; max-width: 240px; }
.footer__col h4 {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 16px;
}
.footer__col p { color: var(--muted); font-size: 14.5px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--muted);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.footer__social a:hover { background: var(--green); color: var(--btn-ink); transform: translateY(-3px); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px 24px; text-align: center;
  color: var(--muted); font-size: 13px;
}

/* ═══════════ TEAM PAGE ═══════════ */
.page-hero { position: relative; padding: 150px 0 70px; overflow: hidden; }
.page-hero .hero__inner { align-items: center; }
.page-hero__copy { position: relative; }
.page-hero h1 {
  font-size: clamp(38px, 5.4vw, 62px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 22px;
}
.page-hero h1 em { font-style: normal; color: var(--accent-ink); }
.page-hero__sub { font-size: 19px; color: var(--muted); max-width: 580px; }

/* ── Hero collage (mosaico de fotos del equipo) ── */
.hero-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-collage__col { display: flex; flex-direction: column; gap: 16px; }
.hero-collage__col--down { margin-top: 40px; }
.hero-collage__ph {
  border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.hero-collage__ph img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.6s var(--ease);
}
.hero-collage__ph:hover img { transform: scale(1.05); }

/* ── Mosaico del hero: dos columnas en carrusel vertical (arriba/abajo) ── */
.team-collage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  height: clamp(400px, 44vw, 520px); overflow: hidden;
  border-radius: 20px;
}
.team-collage__col { overflow: hidden; }
.team-collage__col--down { margin-top: -34px; }
.team-collage__track { display: flex; flex-direction: column; will-change: transform; }
.team-collage__col--up .team-collage__track { animation: collageUp 30s linear infinite; }
.team-collage__col--down .team-collage__track { animation: collageDown 30s linear infinite; }
.team-collage:hover .team-collage__track { animation-play-state: paused; }
@keyframes collageUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes collageDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.team-collage__ph {
  border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4;
  margin-bottom: 16px; background: #fff;
  border: 1px solid rgba(15, 23, 20, 0.12); box-shadow: none;
}
.team-collage__ph img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.5s var(--ease);
}
.team-collage__link {
  display: block; position: relative; width: 100%; height: 100%;
  cursor: pointer;
}
.team-collage__link:hover img { transform: scale(1.06); }
.team-collage__link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.team-collage__cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: #fff; background: rgba(15, 23, 20, 0.72);
  padding: 5px 9px; border-radius: 8px; text-align: center;
  opacity: 0; transform: translateY(5px); pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.team-collage__link:hover .team-collage__cap,
.team-collage__link:focus-visible .team-collage__cap { opacity: 1; transform: translateY(0); }

/* Resalte de la ficha destino al llegar desde el mosaico */
.tm--flash .tm__photo { animation: tmFlash 2.6s var(--ease); }
@keyframes tmFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(55, 128, 107, 0); }
  12%, 60% { box-shadow: 0 0 0 4px rgba(55, 128, 107, 0.6); }
}

/* ── Visual abstracto del hero (sin personas) ── */
.connect { width: 100%; height: auto; display: block; margin: 6px 0 2px; }
.connect__link { stroke: var(--green); stroke-width: 1.6; opacity: 0.4; }
.connect__node { fill: var(--surface); stroke: var(--green); stroke-width: 2.5; animation: nodePulse 3s ease-in-out infinite; }
.connect__hub { fill: var(--green); }
.connect__heart { fill: #fff; }
@keyframes nodePulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.chart-card .connect-stats strong { font-size: 15px; }

/* ── Creemos ── */
.belief { padding: 76px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.belief__inner { max-width: 920px; margin: 0 auto; text-align: center; }
.belief blockquote {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(27px, 4vw, 44px); line-height: 1.22; letter-spacing: -0.02em;
}
.belief blockquote em { font-style: normal; color: var(--accent-ink); }
.belief__note { color: var(--muted); font-size: 18px; margin-top: 18px; }

/* ── Team grid ── */
.team { padding: 100px 0 120px; }
.team__head { max-width: 720px; margin-bottom: 56px; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 30px; }

.tm { display: flex; flex-direction: column; }
.tm__photo {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 5; background: #fff; border: 1px solid var(--line);
}
.tm__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.6s var(--ease), filter 0.5s;
}
.tm:hover .tm__photo img { transform: scale(1.05); filter: brightness(0.92); }

.tm__bio {
  position: absolute; inset: 0; padding: 30px 28px;
  display: flex; align-items: center;
  background: linear-gradient(165deg, rgba(240, 247, 244, 0.975), rgba(214, 236, 228, 0.975));
  color: var(--accent-ink); font-size: 15px; line-height: 1.62;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.tm:hover .tm__bio, .tm:focus-within .tm__bio, .tm.is-open .tm__bio {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.tm__bio p { margin: 0; }
.tm__bio-list { margin: 0; padding-left: 1.15em; }
.tm__bio-list li { margin-bottom: 0.6em; }
.tm__bio-list li:last-child { margin-bottom: 0; }
.tm__photo[role="button"] { cursor: pointer; }

.tm__toggle {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--chip-bg); color: var(--accent-ink);
  font-size: 22px; line-height: 1; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}
.tm:hover .tm__toggle, .tm.is-open .tm__toggle { transform: rotate(45deg); background: var(--green); color: var(--btn-ink); }

.tm__meta { padding: 18px 4px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tm__name { font-size: 20px; color: var(--accent-ink); margin-bottom: 3px; }
.tm__role { font-size: 14.5px; color: var(--muted); }
.tm__li {
  margin-top: 13px; width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--muted);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.tm__li:hover { background: #0a66c2; color: #fff; transform: translateY(-2px); }

/* Foto placeholder (miembro sin imagen aún) */
.tm__photo--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.tm__avatar { font-family: var(--font-head); font-weight: 700; font-size: 92px; color: #fff; opacity: 0.92; }
.tm__flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--chip-bg); color: var(--accent-ink);
  padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-float);
}

/* ── Líderes (destacados) ── */
.leads { padding: 100px 0 30px; }
.leads__head { max-width: 720px; margin-bottom: 50px; }
.leads__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.leads .tm__name { font-size: 22px; }
.leads .tm__photo { box-shadow: var(--shadow-card); }

/* ── Carrusel del resto del equipo ── */
.teamcar { padding: 30px 0 120px; }
.teamcar__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.teamcar__head .section-title { margin-bottom: 0; }
.teamcar__nav { display: flex; gap: 12px; flex-shrink: 0; }
.teamcar__btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--ghost-border); background: transparent; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.teamcar__btn:hover { background: var(--green); border-color: var(--green); color: var(--btn-ink); transform: translateY(-2px); }
.teamcar__btn svg { width: 20px; height: 20px; }
.teamcar__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -24px; padding: 6px 24px 10px;
}
.teamcar__viewport::-webkit-scrollbar { display: none; }
.teamcar__track { display: flex; gap: 26px; width: max-content; }
.teamcar__track .tm { flex: 0 0 clamp(228px, 25vw, 264px); scroll-snap-align: start; }
/* En el carrusel no se muestra la bio al hover (solo foto, nombre y cargo) */
.teamcar__track .tm__bio, .teamcar__track .tm__toggle { display: none; }

/* ═══════════ NAV LOGO (ampliado tras feedback reunión 05-08) ═══════════ */
.nav__logo img { height: 42px; width: auto; }

/* ═══════════ HERO — carrusel de logos en la parte baja ═══════════ */
.hero__inner { width: 100%; }
.hero__logos { position: relative; width: 100%; max-width: 1160px; margin: clamp(40px, 6vh, 76px) auto 0; padding: 0 24px; }
.hero__logos-label {
  text-align: center; font-family: var(--font-head);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.logos-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-marquee__track { display: flex; width: max-content; animation: marquee 64s linear infinite; }
.logos-marquee:hover .logos-marquee__track { animation-play-state: paused; }
.logos-marquee__group { display: flex; align-items: center; }
.logos-marquee__group img {
  height: 50px; width: auto; margin: 0 clamp(26px, 3.4vw, 46px);
  object-fit: contain; filter: grayscale(1); opacity: 0.5;
  transition: opacity 0.3s, filter 0.3s;
}
.logos-marquee__group img:hover { opacity: 0.95; filter: grayscale(0); }
:root[data-theme="dark"] .logos-marquee__group img { filter: brightness(0) invert(1); opacity: 0.55; }
:root[data-theme="dark"] .logos-marquee__group img:hover { opacity: 0.95; }

/* ═══════════ PATRONES DE FONDO (secciones claras) ═══════════ */
.bg-pattern { position: relative; isolation: isolate; }
.bg-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.8;
  -webkit-mask-image: radial-gradient(ellipse 100% 85% at 50% 0%, #000 14%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 85% at 50% 0%, #000 14%, transparent 78%);
  background-position: 50% var(--dot-shift, 0px);
  will-change: background-position;
}
.bg-dots::before {
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.6px);
  background-size: 34px 34px;
}

/* ═══════════ HUMAN EXPERIENCE ═══════════ */
.hx {
  position: relative; overflow: hidden;
  padding: 104px 0;
  background: linear-gradient(135deg, var(--warm) 0%, var(--bg-2) 60%, var(--surface-2) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .hx {
  background: linear-gradient(135deg, rgba(169, 138, 75, 0.16) 0%, var(--bg-2) 55%, var(--surface-2) 100%);
}
.hx__pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 50% var(--dot-shift, 0px);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 85% 30%, black 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 90% at 85% 30%, black 10%, transparent 70%);
  opacity: 0.7;
  will-change: background-position;
}

@media (prefers-reduced-motion: reduce) {
  .bg-pattern::before, .hx__pattern { --dot-shift: 0px; will-change: auto; }
}
.hx__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hx__title { font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -0.02em; margin-bottom: 20px; }
.hx__title em { font-style: normal; color: var(--accent-ink); }
.hx__lead { color: var(--muted); font-size: 18px; max-width: 540px; }
.hx__pillars { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.hx__pillars li {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-float);
}
.hx__pill-ico {
  font-size: 22px; line-height: 1; color: var(--accent-ink);
  flex-shrink: 0; margin-top: 2px;
}
.hx__pillars strong { display: block; font-family: var(--font-head); font-size: 16px; margin-bottom: 2px; }
.hx__pillars div { font-size: 14.5px; color: var(--muted); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
  .hx__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 70px; }
  .hero { min-height: auto; padding-top: 120px; }
  .stat-section__inner, .contact__inner { grid-template-columns: 1fr; gap: 50px; }
  .steps__track { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .steps__line { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .tslider__viewport { min-height: 420px; }
  .team__grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════ REDUCED MOTION (al final para ganar en cascada) ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line span { transform: none; }
  .chart__line { stroke-dashoffset: 0; }
  .chart__area, .chart__point { opacity: 1; }
  .steps__line span { width: 100%; }
  .stat-section .bignum__bar span { width: 10%; min-width: 34px; }
}

@media (max-width: 700px) {
  .nav__menu {
    position: fixed; inset: 0; top: 70px;
    background: var(--bg);
    flex-direction: column; justify-content: flex-start;
    padding: 40px 24px; gap: 26px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__burger { display: flex; }
  .nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 12px 0 0 12px; min-width: 0;
  }
  .nav.is-open-mobile { background: var(--bg); }
  .cards { grid-template-columns: 1fr; }
  .steps__track { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
  .logos-marquee__group img { height: 40px; margin: 0 24px; }
  .field--half { grid-column: span 2; }
  .cta__inner { padding: 50px 28px; }
  .tracking__for { padding: 32px 26px; }
  .tslider__viewport { min-height: 560px; }
  .float-chip { display: none; }
  .team__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .hero-collage { display: none; }
  .leads__grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .teamcar__head { flex-direction: column; align-items: flex-start; }
  .teamcar__track .tm { flex-basis: 78vw; }
}
