/* ============================================================
   DESIGN TOKENS — SPHERE LOGISTICS
============================================================ */
:root {
  /* Colors */
  --color-navy:        #0F2557;
  --color-blue:        #2563EB;
  --color-blue-light:  #3B82F6;
  --color-blue-dim:    rgba(37, 99, 235, 0.12);
  --color-slate-dark:  #1E293B;
  --color-slate-mid:   #475569;
  --color-slate-light: #94A3B8;
  --color-white:       #F8FAFC;
  --color-black:       #09090B;
  --color-surface:     #111318;
  --color-surface-2:   #161B27;
  --color-eco:         #16A34A;
  --color-eco-dim:     rgba(22, 163, 74, 0.15);
  --bg:                #09090B;   /* alias para secciones dark */
  --accent:            #00AAFF;   /* azul Sphere wireframe */

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  7rem;

  /* Layout */
  --max-w:      1400px;
  --container:  clamp(1rem, 5vw, 5rem);

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   CUSTOM FONTS
============================================================ */
@font-face {
  font-family: 'Entirely';
  src: url('../assets/fonts/Entirely.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onoma';
  src: url('../assets/fonts/Onoma.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   TYPOGRAPHY BASE
============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem);   font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p  { color: var(--color-slate-light); max-width: 62ch; line-height: 1.75; }

/* ============================================================
   UTILITIES
============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container);
}

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue-light);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  background: var(--color-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(248, 250, 252, 0.2);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}
.btn-outline:hover {
  border-color: var(--color-blue-light);
  color: var(--color-blue-light);
  transform: translateY(-2px);
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
============================================================ */
/* ── Header shell ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(71, 85, 105, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease;
}
#navbar.scrolled {
  background: rgba(9, 9, 11, 0.98);
  border-bottom-color: rgba(71, 85, 105, 0.3);
}

/* ── Inner nav row ───────────────────────────────────────── */
.nav-inner {
  max-width: 64rem;
  margin: 0 auto;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

/* ── Logo ────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}
.nav-logo:hover .nav-logo-img { opacity: 0.7; }

/* ── Desktop links ───────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate-light);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-white);
}

/* ── Desktop CTA ─────────────────────────────────────────── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--color-blue-light); }

/* ── Hamburger button ────────────────────────────────────── */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(71, 85, 105, 0.35);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(71, 85, 105, 0.6);
}

/* MenuToggle SVG animation */
.nav-toggle-svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle-svg.open { transform: rotate(-45deg); }

.nav-toggle-path1 {
  stroke-dasharray: 12 63;
  stroke-dashoffset: 0;
  transition: stroke-dasharray 500ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle-path1.open {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* ── Sheet overlay ───────────────────────────────────────── */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sheet-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Sheet panel (slides from left) ─────────────────────── */
.nav-sheet {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 75%;
  max-width: 22rem;
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(71, 85, 105, 0.2);
  z-index: 99;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-sheet.open { transform: translateX(0); }

.sheet-links {
  display: grid;
  gap: 0.5rem;
  padding: 4.5rem 1rem 1.25rem;
  overflow-y: auto;
}
.sheet-link {
  display: flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-slate-light);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.sheet-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-white);
}

.sheet-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(71, 85, 105, 0.2);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sheet-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.sheet-cta:hover { background: var(--color-blue-light); }

/* ── Responsive breakpoint ───────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   HERO — canvas frame scrub
============================================================ */
#heroWrapper {
  height: 1000vh;
  position: relative;
}

#hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,9,11,0.72) 0%, rgba(9,9,11,0.35) 55%, rgba(9,9,11,0.10) 100%),
    linear-gradient(0deg,  rgba(9,9,11,0.55) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--container);
}

/* ── Shiny title — paso 2 & 3 ────────────────────────────── */
.hero__title--shiny {
  font-size: clamp(2rem, 4vw, 3.5rem);
  white-space: nowrap;
  margin: 0;
  opacity: 1 !important;
  animation: none !important;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #3b82f6 50%, #ffffff 60%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shiny-text 3s linear infinite !important;
}

@keyframes shiny-text {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;    /* controlled by GSAP — no CSS animation */
}
.hero-eyebrow .label { color: var(--color-blue-light); }
.hero-eyebrow .line {
  width: 32px;
  height: 1px;
  background: var(--color-blue);
  opacity: 0.6;
}

.hero-title {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}
.hero-title .accent { color: var(--color-blue-light); }

.hero-desc {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 52ch;
  opacity: 0;    /* controlled by GSAP — no CSS animation */
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;  /* individual buttons controlled by GSAP */
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-slate-light);
  transition: var(--transition-fast);
}
.btn-link:hover { color: var(--color-white); }
.btn-link .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn-link:hover .arrow { transform: translateX(4px); }

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: max(var(--container), calc((100vw - var(--max-w)) / 2 + var(--container)));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}
.hero-scroll span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-slate-light);
}
.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--color-blue);
  transform-origin: left;
  animation: lineGrow 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
  transform: scaleX(0);
}

@keyframes lineGrow {
  to { transform: scaleX(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  #heroWrapper { height: 600vh; }
  .hero-content { max-width: 100%; padding-right: var(--container); }
  .hero-desc { font-size: 0.95rem; }
  .hero-scroll { display: none; }
  .hero__title--shiny { white-space: normal; }
}

/* ============================================================
   ABOUT — scroll-scrub wrapper + sticky section
============================================================ */
#aboutWrapper {
  position: relative;
  height: 280vh;   /* scroll travel para los 193 frames */
}

#about {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#about > .container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* ── About grid: video | textos / stats ─────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "video texts"
    "video stats";
  gap: 2.5rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  padding: var(--space-xl) 0 var(--space-xl) 0;
  margin-left: -2rem;   /* desplaza el video hacia la izquierda */
}

/* ── Video (canvas scroll-scrub) ─────────────────────────── */
.about-video-wrap {
  grid-area: video;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0f14;
}

/* Rotating gradient border — reutiliza --stat-angle y statBorderSpin */
.about-video-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  background: conic-gradient(
    from var(--stat-angle),
    transparent          0deg,
    rgba(37,99,235,0.9)  50deg,
    rgba(59,130,246,0.35) 90deg,
    transparent          140deg
  );
  animation: statBorderSpin 5s linear infinite;
  z-index: 0;
}

.about-video-wrap canvas {
  position: absolute;
  inset: 1px;   /* deja 1px de borde visible alrededor */
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  display: block;
  z-index: 1;
}

.about-video-overlay { z-index: 2; }
.about-video-hint    { z-index: 3; }

/* Subtle vignette on the placeholder */
.about-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,12,18,0.55) 100%);
  pointer-events: none;
}

/* Play icon — visible only while canvas has no frames loaded */
.about-video-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
  pointer-events: none;
}

.about-video-hint svg {
  width: 48px;
  height: 48px;
  color: var(--color-white);
}

/* ── Textos ──────────────────────────────────────────────── */
.about-texts {
  grid-area: texts;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0 0.5rem;
}

/* ── Stats fila ──────────────────────────────────────────── */
.about-stats-row {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.75rem;
}

.about-header { margin-bottom: 1.75rem; }
.about-header .label { margin-bottom: 0.75rem; }

/* ── About label with growing side-line ─────────────────── */
.about-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.about-label-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.about-label-text {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.about-header.ah-visible .about-label-line  { width: 28px; }
.about-header.ah-visible .about-label-text  { opacity: 1; transform: translateX(0); }

/* ── About title: split word clip reveal ─────────────────── */
.about-title {
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.at-row {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  flex-wrap: wrap;
}

.at-row--sub {
  margin-top: 0.05em;
}

.at-clip {
  overflow: hidden;
  display: inline-block;
}

/* Accent word: blue pill that wipes in */
.at-clip--accent {
  position: relative;
}

.at-clip--accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-blue);
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.1s + var(--i, 2) * 0.08s);
}

.about-header.ah-visible .at-clip--accent::after { transform: scaleX(1); }

.at-word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.08s + var(--i) * 0.09s);
  color: var(--color-white);
}

.at-word.at-light {
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.at-word.at-accent {
  color: var(--color-white);
  font-weight: 800;
  padding: 0.12em 0.45em;
  position: relative;
  z-index: 1;
}

.about-header.ah-visible .at-word { transform: translateY(0); }

.about-body { display: flex; flex-direction: column; gap: 1.25rem; }

.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.18) 0%,
    rgba(22,163,74,0.55)  40%,
    rgba(255,255,255,0.22) 60%,
    rgba(22,163,74,0.55)  100%
  );
  background-size: 250% auto;
  animation: ecoBadgeFade 3.5s ease-in-out infinite alternate;
  border: 1px solid rgba(22, 163, 74, 0.45);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-top: 0.5rem;
  width: fit-content;
}

@keyframes ecoBadgeFade {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}



/* ── Rotating-border custom property ────────────────────── */
@property --stat-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes statBorderSpin {
  to { --stat-angle: 360deg; }
}
@keyframes shimmerSweep {
  0%   { transform: translateX(-100%) rotate(35deg); }
  100% { transform: translateX(260%)  rotate(35deg); }
}

/* ── Stat card ───────────────────────────────────────────── */
.stat-item {
  position: relative;
  padding: 1.5rem 1.25rem 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
  cursor: default;
}

/* Rotating gradient border */
.stat-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: conic-gradient(
    from var(--stat-angle),
    transparent       0deg,
    rgba(37,99,235,0.9) 50deg,
    rgba(59,130,246,0.35) 90deg,
    transparent      140deg
  );
  animation: statBorderSpin 5s linear infinite;
  z-index: 0;
}

/* Inner fill — creates the 1px gradient border illusion */
.stat-item::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: var(--color-surface);
  z-index: 1;
}

/* Shimmer sweep on hover */
.stat-item .stat-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.stat-item .stat-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.06) 50%,
    transparent
  );
  transform: translateX(-100%) rotate(35deg);
  transition: none;
}
.stat-item:hover .stat-shimmer::after {
  animation: shimmerSweep 0.65s ease forwards;
}

/* Content above pseudo-elements */
.stat-item > :not(.stat-shimmer) {
  position: relative;
  z-index: 3;
}

/* Hover lift + glow */
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(37, 99, 235, 0.18),
    0 4px  12px rgba(0, 0, 0, 0.35);
}

/* Top accent bar */
.stat-item .stat-accent {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--color-slate-mid);
  margin-top: 0.5rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  #aboutWrapper { height: auto; }  /* sin wrapper tall en mobile */
  #about {
    position: static;
    height: auto;
    overflow: visible;
    padding: var(--space-2xl) 0;
  }
  #about > .container { height: auto; }
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "texts"
      "stats"
      "video";
    padding: 0;
    flex: none;
    min-height: auto;
    margin-left: 0;
    gap: 1.5rem;
  }
  .about-video-wrap { min-height: 260px; }
  .about-stats-row  { grid-template-columns: repeat(2, 1fr); }
  .at-row           { gap: 0.2em; }
  .about-title      { gap: 0.1em; }
}

@media (max-width: 480px) {
  .about-stats-row { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .stat-item       { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   SERVICES — FullScreen Scroll FX
============================================================ */
#services {
  position: relative;
  background: var(--color-black);
}

/* ── Scroll track (provides scroll height) ── */
.srv-fx-section {
  height: 700vh;
  position: relative;
}

/* ── Sticky viewport ── */
.srv-fx-fixed {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--color-black);
}

/* ── Backgrounds ── */
.srv-fx-bgs {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.srv-fx-bg {
  position: absolute;
  inset: 0;
}
.srv-fx-bg-img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 0;
  will-change: transform, opacity;
}
.srv-fx-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 14, 0.52);
  z-index: 2;      /* encima de .srv-fx-bgs (z-index:1), debajo del grid (z-index:3+) */
  pointer-events: none;
}

/* ── Top section label ── */
.srv-fx-label {
  position: absolute;
  top: 80px;
  left: var(--container);
  z-index: 4;
  color: var(--color-blue-light);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── 3-column grid ── */
.srv-fx-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  padding: 0 var(--container);
  gap: 2rem;
}

/* ── Side columns ── */
.srv-fx-col {
  height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.srv-fx-left-col  { align-items: flex-start; }
.srv-fx-right-col { align-items: flex-end; }

.srv-fx-track { will-change: transform; }

/* ── List items ── */
.srv-fx-item {
  color: rgba(245, 245, 245, 0.92);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.9rem, 1.8vw, 1.5rem);
  line-height: 1;
  padding: 7px 0;
  opacity: 0.28;
  cursor: pointer;
  user-select: none;
  position: relative;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease;
}
.srv-fx-item.active { opacity: 1; }

/* Left active: indent + dot */
.srv-fx-left-item.active {
  padding-left: 18px;
}
.srv-fx-left-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-blue);
  border-radius: 50%;
}

/* Right active: indent + dot */
.srv-fx-right-item { text-align: right; }
.srv-fx-right-item.active {
  padding-right: 18px;
}
.srv-fx-right-item.active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-blue);
  border-radius: 50%;
}

/* ── Center: featured titles ── */
.srv-fx-center {
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.srv-fx-featured {
  position: absolute;
  width: 100%;
  padding: 0 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.srv-fx-featured.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.srv-fx-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 900;
  color: rgba(245, 245, 245, 0.95);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.srv-fx-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: rgba(245, 245, 245, 0.5);
  line-height: 1.7;
  max-width: 38ch;
  margin: 0 auto;
  text-transform: none;
  letter-spacing: 0;
}

/* Word-mask slide animation */
.srv-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}
.srv-word {
  display: inline-block;
  vertical-align: middle;
  will-change: transform, opacity;
}

/* ── Progress bar ── */
.srv-fx-progress {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
}
.srv-fx-nums {
  display: flex;
  justify-content: space-between;
  width: 200px;
  color: rgba(245, 245, 245, 0.45);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.srv-fx-bar {
  width: 200px;
  height: 1px;
  background: rgba(245, 245, 245, 0.15);
  position: relative;
}
.srv-fx-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--color-blue);
  transition: width 0.45s ease;
}

/* ── Responsive mobile — layout estático sin pin ── */
@media (max-width: 768px) {
  .srv-fx-section { height: auto; }

  .srv-fx-fixed {
    position: relative !important;
    top: auto;
    height: auto !important;
    min-height: 0;
    overflow: visible;
    background: var(--color-black);
    padding: 4rem 0;
  }

  .srv-fx-bgs,
  .srv-fx-overlay,
  .srv-fx-progress { display: none; }

  .srv-fx-label {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    padding: 0 var(--container);
    margin-bottom: 2rem;
  }

  .srv-fx-grid {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    padding: 0 var(--container);
    grid-template-columns: unset;
  }

  .srv-fx-col { display: none; }

  .srv-fx-center {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    display: block;
    text-align: left;
  }

  .srv-fx-featured {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }
  .srv-fx-featured:last-child { border-bottom: none; }

  .srv-word {
    transform: none !important;
    opacity: 1 !important;
    display: inline !important;
  }

  .srv-fx-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }

  .srv-fx-subtitle {
    display: block !important;
    font-size: 0.875rem;
    max-width: 100%;
    text-align: left;
  }
}

/* ============================================================
   RESULTADOS — Ticker + Logos wall
============================================================ */
.resultados {
  padding: 80px 0 100px;
  background: var(--bg);
  overflow: hidden;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(0,170,255,0.2);
  border-bottom: 1px solid rgba(0,170,255,0.2);
  padding: 18px 0;
  margin-bottom: 80px;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  padding: 0 40px;
}

.ticker-sep {
  color: #00AAFF;
  margin-left: 40px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logos-wall {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.logos-wall.visible {
  opacity: 1;
  transform: translateY(0);
}

.logos-label {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 0.45rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: var(--radius-sm);
}

.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 auto;
}

.logo-item {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) brightness(0.4);
  transition: filter 0.3s ease;
  cursor: default;
}

.logo-item:hover {
  filter: grayscale(0) brightness(1);
}

/* ============================================================
   CTA — Pulse Beams + Expandable Overlay
============================================================ */
#cta {
  position: relative;
  background: var(--color-blue);
  overflow: hidden;
}

/* ── Beam neon filters ─────────────────────────────────────── */
.beam-white {
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px rgba(255,255,255,0.7));
}
.beam-dark {
  filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 8px rgba(0,0,0,0.9));
}

/* ── Beams wrapper ─────────────────────────────────────────── */
.cta-beams-wrap {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-beams-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 858px;
  height: 434px;
  pointer-events: none;
  flex-shrink: 0;
}

/* ── Central button ────────────────────────────────────────── */
.cta-pulse-btn {
  position: relative;
  z-index: 10;
  width: 320px;
  height: 120px;
  border-radius: 9999px;
  border: none;
  padding: 1px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 24px 60px rgba(0,0,0,0.45);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.cta-pulse-btn:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 24px 60px rgba(0,0,0,0.45);
  transform: translateY(-1px);
}
.cta-pulse-btn:active { transform: translateY(0); }

.cta-btn-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(75% 100% at 50% 0%, rgba(56,189,248,0.55) 0%, rgba(56,189,248,0) 75%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.cta-pulse-btn:hover .cta-btn-glow { opacity: 1; }

.cta-btn-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #06090f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.cta-btn-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #d4d4d4 0%, #737373 50%, #d4d4d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Expandable overlay ────────────────────────────────────── */
.cta-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.05s ease;
}

.cta-overlay.open {
  transform: scale(1);
  border-radius: 0;
  pointer-events: all;
  opacity: 1;
}

.cta-overlay-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}
.cta-overlay-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.cta-overlay-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.4s ease 0.22s, transform 0.4s ease 0.22s;
}
.cta-overlay.open .cta-overlay-inner {
  opacity: 1;
  transform: translateY(0);
}

.cta-label          { color: rgba(255,255,255,0.55); margin-bottom: 1rem; }
.cta-overlay-left h2 { color: var(--color-white); margin-bottom: 1.25rem; }
.cta-overlay-left p  { color: rgba(255,255,255,0.65); margin-bottom: 0; }

/* ── Form (inside overlay) ─────────────────────────────────── */
.cta-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.form-field input,
.form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding: 0.6rem 0;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus { border-color: rgba(255,255,255,0.7); }

.form-field input::placeholder { color: rgba(255,255,255,0.28); }

.form-field select option {
  background: #1d4ed8;
  color: var(--color-white);
}

.form-field .field-error {
  font-size: 0.78rem;
  color: #fca5a5;
  display: none;
}
.form-field.has-error .field-error { display: block; }
.form-field.has-error input,
.form-field.has-error select       { border-color: #fca5a5; }

.form-submit {
  background: var(--color-white);
  color: var(--color-blue);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: var(--transition-smooth);
}
.form-submit:hover  { background: rgba(255,255,255,0.88); transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }

.form-success {
  display: none;
  padding: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: 0.95rem;
  text-align: center;
  animation: fadeUp 0.5s ease forwards;
}
.form-success.visible { display: block; }

@media (max-width: 900px) {
  .cta-beams-svg         { display: none; }
  .cta-beams-wrap        { min-height: 50vh; }
  .cta-overlay-inner     { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-overlay-left      { display: none; }
}
@media (max-width: 480px) {
  .cta-pulse-btn { width: 260px; height: 96px; }
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: var(--color-black);
  border-top: 1px solid rgba(71, 85, 105, 0.12);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 24ch;
  margin-bottom: 1.25rem;
}

.footer-eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.18) 0%,
    rgba(22,163,74,0.55)  40%,
    rgba(255,255,255,0.22) 60%,
    rgba(22,163,74,0.55)  100%
  );
  background-size: 250% auto;
  animation: ecoBadgeFade 3.5s ease-in-out infinite alternate;
  border: 1px solid rgba(22, 163, 74, 0.45);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-slate-light);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--color-slate-mid);
  transition: var(--transition-fast);
}
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(71, 85, 105, 0.12);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-slate-mid);
  max-width: none;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.78rem;
  color: var(--color-slate-mid);
  transition: var(--transition-fast);
}
.footer-legal-links a:hover { color: var(--color-white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
