/* ===============================================
   AM EQUIPO DIGITAL — Design System v1.0
   Style: Aurora UI + Vibrant Creative (Dark)
   Fonts: Space Grotesk + Inter
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── FUENTES CUSTOM — AM Equipo Digital ──────────────────────────
   Colocá los archivos de fuente en  assets/fonts/
   Formatos recomendados: .woff2 (principal) y .woff (respaldo).
   El "local(...)" + la lista de respaldo evita que el sitio se trabe
   si los archivos aún no están subidos.
   ───────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Amoura Rosbele";
  src: local("Amoura Rosbele"),
       url("../fonts/amoura-rosbele.woff2") format("woff2"),
       url("../fonts/amoura-rosbele.woff")  format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: local("Caviar Dreams"),
       url("../fonts/caviar-dreams.woff2") format("woff2"),
       url("../fonts/caviar-dreams.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: local("Caviar Dreams Bold"),
       url("../fonts/caviar-dreams-bold.woff2") format("woff2"),
       url("../fonts/caviar-dreams-bold.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── 1. RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── 2. TOKENS ──────────────────────────────── */
:root {
  /* Backgrounds — dark con tinte verde muy sutil */
  --bg:         #060E08;
  --surface-1:  #0B1510;
  --surface-2:  #101A14;
  --surface-3:  #172118;

  /* Borders */
  --border:     rgba(61, 170, 82, 0.22);
  --border-dim: rgba(255, 255, 255, 0.07);

  /* Brand colors — Logo AM Equipo Digital */
  --purple:       #3DAA52;   /* verde logo AM      */
  --purple-dim:   #2D8040;
  --purple-light: #6BCF7A;
  --cyan:         #F0B429;   /* dorado logo </>    */
  --cyan-light:   #F7D06A;
  --orange:       #F97316;
  --pink:         #EC4899;
  --green:        #3DAA52;

  /* Text */
  --text:        #F1F5F9;
  --text-2:      #CBD5E1;
  --text-muted:  #94A3B8;
  --text-subtle: #475569;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #3DAA52 0%, #F0B429 100%);
  --grad-warm:    linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  --grad-full:    linear-gradient(135deg, #3DAA52 0%, #F0B429 50%, #F97316 100%);

  /* Typography */
  --ff-heading: 'Space Grotesk', sans-serif;
  --ff-body:    'Inter', sans-serif;

  /* Shadows */
  --shadow-glow-purple: 0 0 60px rgba(61, 170, 82, 0.22);
  --shadow-glow-cyan:   0 0 60px rgba(240, 180, 41, 0.2);
  --shadow-card:        0 8px 40px rgba(0, 0, 0, 0.5);

  /* Layout */
  --nav-h:     72px;
  --max-w:     1200px;
  --section-y: 6rem;

  /* Radii */
  --r-sm:   6px;
  --r:      12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t:      0.25s ease;
  --t-slow: 0.45s ease;
}

/* ── 3. BASE ────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 4. LAYOUT ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-y) 0; }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── 5. TYPOGRAPHY ──────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 6. BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(61, 170, 82, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 170, 82, 0.55);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-dim);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(61, 170, 82, 0.12);
  border-color: var(--border);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ── 7. BADGES ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-1 { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.badge-2 { background: rgba(240,180,41,0.12); color: var(--cyan-light); border: 1px solid rgba(240,180,41,0.25); }
.badge-3 { background: rgba(61,170,82,0.15); color: var(--purple-light); border: 1px solid rgba(61,170,82,0.3); }

/* ── 8. CARD (Glassmorphism) ────────────────── */
.card {
  background: rgba(13, 13, 36, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
}

/* ── 9. SITE HEADER ──────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), border-color var(--t);
}
.site-header.scrolled {
  background: rgba(7, 7, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  position: relative;
  z-index: 210;
}
.header-logo__text em { color: var(--text-muted); font-style: normal; font-weight: 400; }

/* nav__logo-mark reused for logo badge */
.nav__logo-mark {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

/* Menu trigger button */
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: var(--r-full);
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem 1.125rem;
  font-family: var(--ff-body);
  position: relative;
  z-index: 210;
  transition: border-color var(--t), background var(--t);
  min-height: 44px;
}
.nav-trigger:hover {
  border-color: var(--border);
  background: rgba(61,170,82,0.1);
}

/* Label text-swap (Menú ↔ Cerrar) */
.nav-trigger__label {
  position: relative;
  height: 1.2em;
  overflow: hidden;
  min-width: 3.25rem;
  text-align: left;
}
.nav-trigger__label span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2em;
  transition: transform 0.55s cubic-bezier(0.65, 0.01, 0.05, 0.99);
  white-space: nowrap;
}
.nav-trigger__label span:nth-child(2) {
  position: absolute;
  top: 100%; left: 0;
}
/* Slide label up on open */
.nav-open .nav-trigger__label span:nth-child(1) { transform: translateY(-100%); }
.nav-open .nav-trigger__label span:nth-child(2) { transform: translateY(-100%); }

/* Plus → × icon */
.nav-trigger__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.nav-trigger__icon svg {
  width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(0.65, 0.01, 0.05, 0.99);
}
.nav-open .nav-trigger__icon svg { transform: rotate(315deg); }

/* ── 9b. FULLSCREEN NAV ───────────────────────── */
.fs-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  pointer-events: none;
}
.fs-nav.is-visible {
  display: block;
  pointer-events: auto;
}

/* Dark overlay (left side / behind panel) */
.fs-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}
.fs-nav.is-open .fs-nav__overlay { opacity: 1; }

/* Sliding panel (right side) */
.fs-nav__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(580px, 100vw);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Three stacked background layers (creates depth on slide) */
.fs-nav__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.fs-bg-layer {
  position: absolute;
  inset: 0;
  transform: translateX(101%);
  transition: transform 0.575s cubic-bezier(0.65, 0.01, 0.05, 0.99);
}
.fs-bg-layer--1 { background: var(--surface-3); transition-delay: 0.24s; }
.fs-bg-layer--2 { background: var(--surface-2); transition-delay: 0.12s; }
.fs-bg-layer--3 { background: var(--surface-1); transition-delay: 0s; }

.fs-nav.is-open .fs-bg-layer { transform: translateX(0); }

/* Closing: reverse stagger */
.fs-nav.is-closing .fs-bg-layer--3 { transform: translateX(101%); transition-delay: 0s; }
.fs-nav.is-closing .fs-bg-layer--2 { transform: translateX(101%); transition-delay: 0.1s; }
.fs-nav.is-closing .fs-bg-layer--1 { transform: translateX(101%); transition-delay: 0.2s; }

/* Ambient SVG shapes */
.fs-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fs-shape {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.fs-shape.is-active { opacity: 1; }

.fs-shape .shape-el {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.35s ease;
}
.fs-shape.is-active .shape-el:nth-child(1)  { transform:scale(1); opacity:1; transition-delay:0.00s,0.00s; }
.fs-shape.is-active .shape-el:nth-child(2)  { transform:scale(1); opacity:1; transition-delay:0.06s,0.06s; }
.fs-shape.is-active .shape-el:nth-child(3)  { transform:scale(1); opacity:1; transition-delay:0.12s,0.12s; }
.fs-shape.is-active .shape-el:nth-child(4)  { transform:scale(1); opacity:1; transition-delay:0.18s,0.18s; }
.fs-shape.is-active .shape-el:nth-child(5)  { transform:scale(1); opacity:1; transition-delay:0.05s,0.05s; }
.fs-shape.is-active .shape-el:nth-child(6)  { transform:scale(1); opacity:1; transition-delay:0.10s,0.10s; }
.fs-shape.is-active .shape-el:nth-child(7)  { transform:scale(1); opacity:1; transition-delay:0.15s,0.15s; }
.fs-shape.is-active .shape-el:nth-child(8)  { transform:scale(1); opacity:1; transition-delay:0.04s,0.04s; }
.fs-shape.is-active .shape-el:nth-child(9)  { transform:scale(1); opacity:1; transition-delay:0.09s,0.09s; }
.fs-shape.is-active .shape-el:nth-child(10) { transform:scale(1); opacity:1; transition-delay:0.14s,0.14s; }
.fs-shape.is-active .shape-el:nth-child(11) { transform:scale(1); opacity:1; transition-delay:0.19s,0.19s; }
.fs-shape.is-active .shape-el:nth-child(12) { transform:scale(1); opacity:1; transition-delay:0.03s,0.03s; }
.fs-shape.is-active .shape-el:nth-child(13) { transform:scale(1); opacity:1; transition-delay:0.08s,0.08s; }
.fs-shape.is-active .shape-el:nth-child(14) { transform:scale(1); opacity:1; transition-delay:0.16s,0.16s; }

/* Nav content layer */
.fs-nav__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: calc(var(--nav-h) + 2rem) 3rem 2.5rem;
  overflow: hidden;
}

/* Menu list */
.fs-nav__list { list-style: none; padding: 0; margin: 0; }
.fs-nav__item { overflow: hidden; }

.fs-nav__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0.75rem 0.35rem 0;
  cursor: pointer;
  border-radius: var(--r);
  width: 100%;
}

/* Big animated link text */
.fs-nav__link-text {
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: block;
  transform: translateY(140%) rotate(10deg);
  transition: transform 0.65s cubic-bezier(0.65, 0.01, 0.05, 0.99),
              color 0.2s ease;
  will-change: transform;
}
/* Stagger slide-up per item */
.fs-nav__item:nth-child(1) .fs-nav__link-text { transition-delay: 0.35s, 0s; }
.fs-nav__item:nth-child(2) .fs-nav__link-text { transition-delay: 0.43s, 0s; }
.fs-nav__item:nth-child(3) .fs-nav__link-text { transition-delay: 0.51s, 0s; }
.fs-nav__item:nth-child(4) .fs-nav__link-text { transition-delay: 0.59s, 0s; }

.fs-nav.is-open .fs-nav__link-text { transform: translateY(0) rotate(0); }

/* Closing: snap back */
.fs-nav.is-closing .fs-nav__link-text {
  transform: translateY(140%) rotate(10deg);
  transition-delay: 0s !important;
  transition-duration: 0.3s;
}

/* Gradient text on hover / active page */
.fs-nav__link:hover .fs-nav__link-text,
.fs-nav__link.active .fs-nav__link-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover strip bg */
.fs-nav__link-bg {
  position: absolute;
  inset: 0;
  background: rgba(61,170,82,0.07);
  border-radius: var(--r);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}
.fs-nav__link:hover .fs-nav__link-bg { opacity: 1; }

/* Footer bar inside menu */
.fs-nav__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dim);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s ease 0.6s, transform 0.45s ease 0.6s;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.fs-nav.is-open .fs-nav__footer { opacity: 1; transform: translateY(0); }
.fs-nav.is-closing .fs-nav__footer { opacity: 0; transition-delay: 0s; }

.fs-nav__footer-links { display: flex; gap: 1.5rem; }
.fs-nav__footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.fs-nav__footer-link:hover { color: var(--text); }

/* Mobile panel = full width */
@media (max-width: 540px) {
  .fs-nav__panel { width: 100vw; }
  .fs-nav__content { padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2rem; }
  .fs-nav__link-text { font-size: clamp(2.25rem, 12vw, 3rem); }
}

/* ── 10. HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Animated aurora orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
}
.hero__orb--1 {
  width: 75vw; height: 75vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(ellipse, rgba(61,170,82,0.3) 0%, transparent 65%);
  top: -20%; left: -15%;
  animation: floatOrb1 9s ease-in-out infinite alternate;
}
.hero__orb--2 {
  width: 65vw; height: 65vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(ellipse, rgba(240,180,41,0.18) 0%, transparent 65%);
  bottom: -15%; right: -15%;
  animation: floatOrb2 11s ease-in-out infinite alternate;
}
.hero__orb--3 {
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(ellipse, rgba(61,170,82,0.1) 0%, transparent 65%);
  top: 30%; left: 40%;
  animation: floatOrb1 13s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(4%,3%) scale(1.08); }
}
@keyframes floatOrb2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-4%,-3%) scale(1.1); }
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(61, 170, 82, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 2rem;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}

.hero__title {
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero__stat-num {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.hero__stat-sep {
  width: 1px; height: 44px;
  background: var(--border-dim);
  flex-shrink: 0;
}

/* ── 10b. HERO FULLSCREEN (index.html) ────────── */
.hf {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* ── CONTENT AREA ── */

.hf__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.875rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #34D399;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hf__badge-dot {
  width: 6px; height: 6px;
  background: #34D399;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

.hf__desc {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 28ch;
  margin: 0 auto 1.5rem;
}

@media (min-width: 768px) {
  .hf__desc { margin: 0 0 1.5rem; }
}

.hf__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-base);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s, text-decoration-color 0.2s;
  margin-bottom: 2.5rem;
}

.hf__cta:hover {
  color: var(--purple-light);
  text-decoration-color: var(--purple-light);
}

.hf__mini-stats {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hf__mini-stats { justify-content: flex-start; }
}

.hf__mini-stat-num {
  font-family: var(--ff-heading);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hf__mini-stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  white-space: nowrap;
}


/*
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 0.625rem;
}

.hf__ui-nav::before {
  content: '';
  width: 32px; height: 7px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.hf__ui-nav::after {
  content: '';
  width: 20px; height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-left: auto;
}

/* Fake hero area */
.hf__ui-hero {
  height: 60px;
  background: linear-gradient(135deg, rgba(61, 170, 82, 0.16), rgba(240, 180, 41, 0.09));
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.625rem;
  gap: 0.35rem;
}

.hf__ui-hero::before {
  content: '';
  position: absolute;
  right: -8px; top: -8px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(61, 170, 82, 0.18);
  filter: blur(10px);
  pointer-events: none;
}

.hf__ui-line {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}
.hf__ui-line--wide { width: 72%; }
.hf__ui-line--mid  { width: 52%; }
.hf__ui-line--slim {
  width: 28%;
  background: rgba(61, 170, 82, 0.55);
}

/* Fake cards */
.hf__ui-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hf__ui-card {
  height: 52px;
  background: var(--surface-3);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.5rem 0.5rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}

.hf__ui-card::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(61, 170, 82, 0.45), rgba(240, 180, 41, 0.3));
}

.hf__ui-card::after {
  content: '';
  width: 65%; height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

/* Fake progress bars */
.hf__ui-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hf__ui-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.hf__ui-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

/* Floating live badge */
.hf__live-badge {
  position: absolute;
  top: -14px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  background: rgba(7, 7, 26, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #34D399;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.15);
  animation: hfFadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both;
}

.hf__live-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #34D399;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

/* ── RIGHT: giant heading ── */
.hf__right {
  z-index: 20;
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hfFadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

.hf__title {
  font-family: var(--ff-heading);
  font-size: clamp(3.25rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
}

.hf__title-line1 { color: var(--text-base); }

.hf__title-line2 {
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

── FOOTER ROW (legacy block end) ── */
.hf__footer--legacy-placeholder {
  display: none;
}

.hf__socials {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.hf__social-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}

.hf__social-link:hover { color: rgba(255, 255, 255, 0.8); }

.hf__location {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes hfFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hfScaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

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

/* ── 11. SERVICES (Process Section) ─────────── */
.ps { padding: 5rem 0; }

.ps__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .ps__inner {
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: center;
  }
}

@media (min-width: 1024px) { .ps__inner { gap: 5rem; } }

/* Left column */
.ps__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .ps__left { align-items: flex-start; text-align: left; }
}

.ps__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
}

.ps__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.ps__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* 2×2 cards grid */
.ps__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 540px) {
  .ps__cards { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}

/* ── Process card ── */
.ps-card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-dim);
  background: var(--surface-2);
  padding: 1.75rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.3s;
}

.ps-card:hover {
  border-color: rgba(61, 170, 82, 0.55);
  box-shadow: 0 16px 48px rgba(61, 170, 82, 0.18), 0 4px 16px rgba(0,0,0,0.3);
  background: var(--surface-3);
  transform: translateY(-4px);
}

/* Decorative line — left edge (desktop only) */
.ps-card::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: var(--border-dim);
  transition: background 0.3s;
  display: none;
}

@media (min-width: 768px) { .ps-card::before { display: block; } }
.ps-card:hover::before { background: rgba(61, 170, 82, 0.65); }

/* Decorative line — top edge (mobile only) */
.ps-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 50%;
  background: var(--border-dim);
  border-radius: 99px;
  transition: background 0.3s;
}

@media (min-width: 768px) { .ps-card::after { display: none; } }
.ps-card:hover::after { background: rgba(61, 170, 82, 0.5); }

/* Icon */
.ps-card__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  border: 1px solid var(--border-dim);
  background: rgba(61,170,82,0.07);
  margin-bottom: 1.375rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}

.ps-card__icon--purple { color: #6BCF7A; }
.ps-card__icon--cyan   { color: #F7D06A; }
.ps-card__icon--orange { color: #FB923C; }
.ps-card__icon--pink   { color: #F472B6; }

.ps-card:hover .ps-card__icon {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.ps-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-base);
}

.ps-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── 12. ABOUT (HOME) ────────────────────────── */
.about-home__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-home__text p {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-home__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(61,170,82,0.06);
  border: 1px solid var(--border-dim);
  border-radius: var(--r);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.value-item:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.value-item__icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(61,170,82,0.15);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-light);
}
.value-item__title { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.value-item__desc  { font-size: 0.8125rem; color: var(--text-muted); }

/* Visual card stack */
.about-home__visual { position: relative; height: 420px; }
.acard {
  position: absolute;
  padding: 1.25rem 1.5rem;
  background: rgba(13,13,36,0.85);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.acard:hover {
  border-color: var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}
.acard:nth-child(1) { top: 0; left: 0; right: 0; }
.acard:nth-child(2) { top: 130px; left: 24px; right: -24px; background: rgba(19,19,46,0.9); }
.acard:nth-child(3) { top: 265px; left: -16px; right: 32px; background: rgba(26,26,58,0.9); }
.acard__label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.75rem;
}
.tech-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-pill {
  padding: 0.25rem 0.75rem;
  background: rgba(61,170,82,0.08);
  border: 1px solid rgba(61,170,82,0.18);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  color: var(--text-2);
  transition: all var(--t-fast);
}
.tech-pill:hover { border-color: var(--border); color: var(--text); background: rgba(61,170,82,0.1); }

/* ── 13. PROJECTS PREVIEW (HOME) ─────────────── */
.projects-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.pcard {
  padding: 1.75rem;
}
.pcard__category {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}
.pcard__title {
  font-family: var(--ff-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}
.pcard__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.pcard__levels { display: flex; flex-direction: column; gap: 0.5rem; }

.level-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--r);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
}
.level-row:hover {
  border-color: var(--border);
  background: rgba(61,170,82,0.08);
}
.level-row__label { flex: 1; font-weight: 500; }
.level-row__arrow {
  font-size: 0.75rem;
  color: var(--text-subtle);
  transition: color var(--t-fast), transform var(--t-fast);
}
.level-row:hover .level-row__arrow { color: var(--purple-light); transform: translateX(2px); }

/* ── 14. CTA SECTION ─────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(61,170,82,0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta-section__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.cta-section__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 15. FOOTER ──────────────────────────────── */
.footer {
  padding: 4rem 0 2rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,170,82,0.5) 30%, rgba(240,180,41,0.4) 70%, transparent);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 260px;
  line-height: 1.7;
}
.footer__col-title {
  font-family: var(--ff-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dim);
  font-size: 0.875rem;
  color: var(--text-subtle);
}
.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social-link {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--t);
  text-decoration: none;
  cursor: pointer;
}
.footer__social-link:hover {
  background: rgba(61,170,82,0.15);
  border-color: var(--border);
  color: var(--text);
}

/* ── 16. PAGE HERO (inner pages) ─────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 450px;
  background: radial-gradient(ellipse, rgba(61,170,82,0.13) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.page-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.page-hero__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 17. NOSOTROS PAGE ───────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.team-card { text-align: center; padding: 2rem 1.5rem; }
.team-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--grad-primary);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-heading);
  font-size: 1.5rem; font-weight: 700; color: #fff;
}
.team-card__name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.team-card__role { font-size: 0.9rem; color: var(--text-muted); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.skill-item {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--r);
}
.skill-item__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.skill-item__name { font-size: 0.9375rem; font-weight: 500; }
.skill-item__pct  { font-size: 0.875rem; color: var(--text-muted); }
.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar__fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1);
}
.skill-bar__fill.animated { transform: scaleX(1); }

/* ── 17b. TEAM SHOWCASE (21st.dev style) ────── */

/* Stats strip above the showcase */
.team-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.team-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 2rem;
  border-right: 1px solid var(--border-dim);
}
.team-stat:last-child { border-right: none; }
.team-stat__num {
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.team-stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Container */
.team-showcase {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .team-showcase {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}

/* ── Photo grid ── */
.team-showcase__photos {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
  align-items: flex-start;
  user-select: none;
}

.team-showcase__col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.team-showcase__col--offset-lg { margin-top: 3.25rem; }
.team-showcase__col--offset-md { margin-top: 1.5rem; }

/* ── Photo card ── */
.team-photo {
  width: 110px;
  height: 122px;
  border-radius: var(--r-lg);
  overflow: visible;          /* allow glow ring to bleed outside */
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: opacity 0.35s ease;
}
/* Inner wrapper clips the image, ring sits on outer */
.team-photo__avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.9);
  transition:
    filter 0.5s ease,
    box-shadow 0.4s ease;
  filter: saturate(0) brightness(0.65);
  position: relative;
  z-index: 1;
}
.team-photo--lg { width: 126px; height: 140px; }
.team-photo--md { width: 118px; height: 130px; }

/* Dimmed / active */
.team-showcase.has-hover .team-photo        { opacity: 0.5; }
.team-showcase.has-hover .team-photo.is-active { opacity: 1; }
.team-photo.is-active .team-photo__avatar {
  filter: saturate(1) brightness(1);
  box-shadow: 0 0 0 2px var(--purple), 0 0 24px rgba(61,170,82,0.4);
}

/* ── Avatar color variants — brand-aligned ── */
.team-photo__avatar--primary {
  background: linear-gradient(145deg, var(--purple) 0%, var(--cyan) 100%);
}
/* UX designer — warm gold tint */
.team-photo__avatar--warm {
  background: linear-gradient(145deg, #2D6A3F 0%, var(--cyan) 100%);
  font-size: 0;
  color: rgba(255,255,255,0.75);
}
/* "Join us" slot */
.team-photo__avatar--open {
  background: var(--surface-2);
  border: 2px dashed rgba(61,170,82,0.4);
  color: var(--purple-light);
  font-size: 0;
}
/* Growth — teal-green */
.team-photo__avatar--cyan {
  background: linear-gradient(145deg, #1A4A2A 0%, #3DAA52 100%);
  font-size: 0;
  color: rgba(255,255,255,0.75);
}
/* DevOps — gold-amber */
.team-photo__avatar--pink {
  background: linear-gradient(145deg, #3D3000 0%, var(--cyan) 100%);
  font-size: 0;
  color: rgba(255,255,255,0.75);
}

.team-photo__avatar svg { opacity: 0.8; display: block; }

/* ── Member name list ── */
.team-showcase__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  flex: 1;
  padding-top: 0.25rem;
}

/* ── Single row ── */
.team-member-row {
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.team-member-row:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

.team-showcase.has-hover .team-member-row        { opacity: 0.4; }
.team-showcase.has-hover .team-member-row.is-active { opacity: 1; }

/* Header: bar + name + socials */
.team-member-row__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* Animated indicator bar */
.team-member-row__bar {
  display: block;
  width: 14px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: background 0.35s ease, width 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.team-member-row.is-active .team-member-row__bar {
  background: var(--grad-primary);
  width: 24px;
}

/* Member name */
.team-member-row__name {
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(241,245,249,0.65);
  line-height: 1.2;
  transition: color 0.25s ease;
}
.team-member-row.is-active .team-member-row__name { color: var(--text); }

/* Social icons — slide in */
.team-member-row__socials {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.125rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.team-member-row.is-active .team-member-row__socials {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Individual social icon */
.team-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  min-width: 44px; min-height: 44px;  /* touch target */
  border-radius: var(--r-sm);
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dim);
  transition: color 0.15s, background 0.15s, transform 0.15s, border-color 0.15s;
  text-decoration: none;
  cursor: pointer;
}
.team-social-link:hover {
  color: var(--purple-light);
  background: rgba(61,170,82,0.12);
  border-color: rgba(61,170,82,0.4);
  transform: scale(1.1);
}
.team-social-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* Role label */
.team-member-row__role {
  margin-top: 0.3rem;
  padding-left: calc(14px + 0.625rem);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
  transition: color 0.25s ease;
}
.team-member-row.is-active .team-member-row__role { color: var(--text-muted); }

/* ── Mobile ── */
@media (max-width: 699px) {
  .team-showcase__photos {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .team-showcase__photos::-webkit-scrollbar { display: none; }
  .team-photo     { width: 90px;  height: 100px; }
  .team-photo--lg { width: 102px; height: 114px; }
  .team-photo--md { width: 96px;  height: 108px; }
  .team-showcase__col--offset-lg { margin-top: 2.5rem; }
  .team-showcase__col--offset-md { margin-top: 1.125rem; }
  .team-stats { gap: 0; }
  .team-stat { padding: 0.5rem 1.25rem; }
}

/* ── 17c. INTERACTIVE HOVER LINKS — TRABAJOS ── */

.ihl-section {
  padding: 4rem 0 3.5rem;
}

.ihl-links {
  display: block;
  margin-top: 3rem;
}

/* ── Single row ── */
.ihl-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-dim);
  text-decoration: none;
  color: inherit;
  overflow: hidden;           /* contain floating image + background glow */
  cursor: pointer;
  transition: border-color 0.4s ease;
  /* Animated bottom border grows via ::after */
}
.ihl-link:first-child { border-top: 1px solid var(--border-dim); }
.ihl-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

/* Brand-colored bottom border on hover */
.ihl-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad-primary);
  transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
}
.ihl-link:hover::after { width: 100%; }

/* Subtle row glow on hover */
.ihl-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(61,170,82,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ihl-link:hover::before { opacity: 1; }

@media (min-width: 768px) {
  .ihl-link { padding: 2rem 0; }
}

/* ── Left block ── */
.ihl-link__left {
  position: relative;
  z-index: 10;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Container slides left, letters slide right → ripple wave */
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ihl-link:hover .ihl-link__left { transform: translateX(-14px); }

/* Row number */
.ihl-link__num {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 0.375rem;
  transition: color 0.4s ease;
}
.ihl-link:hover .ihl-link__num { color: var(--purple-light); }

/* Heading — NO overflow hidden (would clip letter animation) */
.ihl-link__heading {
  display: block;
  font-family: var(--ff-heading);
  font-size: clamp(1.875rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-muted);
  transition: color 0.45s ease;
  /* CRITICAL: no overflow, no white-space — would break letter animation */
}
.ihl-link:hover .ihl-link__heading { color: var(--text); }

/* Per-letter span — injected by JS — delay set inline */
.ihl-letter {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ihl-link:hover .ihl-letter { transform: translateX(14px); }

/* Meta row: subheading + levels badge */
.ihl-link__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ihl-link__sub {
  font-size: 0.875rem;
  color: var(--text-subtle);
  transition: color 0.45s ease;
  line-height: 1.5;
}
.ihl-link:hover .ihl-link__sub { color: var(--text-muted); }

/* "3 niveles" badge */
.ihl-link__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.625rem;
  background: rgba(61,170,82,0.1);
  border: 1px solid rgba(61,170,82,0.25);
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-light);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.ihl-link:hover .ihl-link__badge {
  background: rgba(61,170,82,0.18);
  border-color: rgba(61,170,82,0.45);
}

/* ── Floating image ── */
.ihl-link__img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 130px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.7),
    0 0 0 1px rgba(61,170,82,0.12),
    0 0 40px rgba(61,170,82,0.08);
  pointer-events: none;
  /* top/left stay fixed at 50% — parallax uses --ix/--iy via transform only (no reflow) */
  transform: translate(calc(-50% + var(--ix, 0px)), calc(-50% + var(--iy, 0px))) scale(0) rotate(-12.5deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.ihl-link:hover .ihl-link__img {
  transform: translate(calc(-50% + var(--ix, 0px)), calc(-50% + var(--iy, 0px))) scale(1) rotate(12.5deg);
}

@media (min-width: 768px) {
  .ihl-link__img { width: 270px; height: 165px; }
}

/* ── Arrow ── */
.ihl-link__arrow {
  position: relative;
  z-index: 10;
  overflow: hidden;
  flex-shrink: 0;
}
.ihl-link__arrow-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  color: var(--purple-light);
  transform: translateX(130%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}
.ihl-link:hover .ihl-link__arrow-inner {
  transform: translateX(0);
  opacity: 1;
}

/* Mobile: strip to essentials */
@media (max-width: 540px) {
  .ihl-link__img    { display: none; }
  .ihl-link__arrow  { display: none; }
  .ihl-link:hover .ihl-link__left { transform: none; }
  .ihl-link:hover .ihl-letter     { transform: none; }
  .ihl-link__meta   { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}

/* ── 18. PROYECTOS PAGE ──────────────────────── */
.category-section { margin-bottom: 5rem; }
.category-section:last-child { margin-bottom: 0; }
.category-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dim);
}
.category-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.category-header__text { flex: 1; }
.category-header__name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem; }
.category-header__desc { font-size: 0.9375rem; color: var(--text-muted); }

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.nivel-card {
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--t);
}
.nivel-card--featured {
  border-color: rgba(61,170,82,0.35) !important;
  box-shadow: var(--shadow-glow-purple);
}
.nivel-card__watermark {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: var(--ff-heading);
  font-size: 4.5rem;
  font-weight: 800;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.nivel-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.nivel-card__name {
  font-family: var(--ff-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.nivel-card__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.nivel-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  margin-bottom: 1.5rem;
}
.nivel-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}
.nivel-features li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-primary);
  margin-top: 6px;
  flex-shrink: 0;
}
.nivel-card__cta { margin-top: auto; }

/* ── 19. CONTACTO PAGE ───────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.contact-info__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-info__items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cinfo-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(61,170,82,0.1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-light);
}
.cinfo-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 2px; }
.cinfo-value { font-size: 1rem; font-weight: 500; }

.form-card { padding: 2.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  transition: border-color var(--t-fast), background var(--t-fast);
  outline: none;
  min-height: 44px;
}
.form-control:focus {
  border-color: var(--purple);
  background: rgba(61,170,82,0.05);
}
.form-control::placeholder { color: var(--text-subtle); }
textarea.form-control { resize: vertical; min-height: 130px; line-height: 1.6; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--surface-2); color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── 20. ANIMATIONS ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* ── 21. DIVIDER ─────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dim) 30%, var(--border-dim) 70%, transparent);
  margin: 0;
}

/* ── 22. RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .about-home__grid { grid-template-columns: 1fr; }
  .about-home__visual { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .levels-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: 4rem; }
  .nav__links, .nav__cta-desktop { display: none !important; }
  .nav__hamburger { display: flex; }
  .hero__stat-sep { display: none; }
  .hero__stats { gap: 2rem; }
  .services__grid { grid-template-columns: 1fr; }
  .projects-preview__grid { grid-template-columns: 1fr; }
  .about-home__values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .category-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .cta-section__actions { flex-direction: column; align-items: center; }
}

/* ── 23. REDUCED MOTION ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ── NOSCRIPT FALLBACK: si JS no carga, mostrar todo ── */
.no-js .fade-up { opacity: 1 !important; transform: none !important; }
.no-js .hf__content { opacity: 1 !important; }
.no-js .hf__footer  { opacity: 1 !important; }

/* ── 24. UTILS ───────────────────────────────── */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── 25. HERO MORPH ANIMATION ────────────────── */

/* ── STATE 1: SITIO GENÉRICO (antes) ── */
.hi {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: calc(var(--nav-h) + 0.5rem) 1.5rem 1rem;
}

/* Labels top / bottom */
.hi__label-top,
.hi__label-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  will-change: transform, opacity;
}

.hi__label-tag {
  font-family: var(--ff-heading);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 700;
  color: #ff6b6b;
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: var(--r-full);
  padding: 0.35rem 0.9rem;
  letter-spacing: 0.01em;
}

.hi__label-bottom {
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  color: rgba(255,255,255,0.5);
  gap: 0.4rem;
}

.hi__label-bottom strong { color: var(--purple-light); }

.hi__label-arrow {
  font-size: 1rem;
  animation: bounce 1.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* The "bad" website mockup */
.hi__stage {
  width: 100%;
  max-width: clamp(480px, 75vw, 820px);
  will-change: transform, opacity;
  transform-origin: center center;
}

.hi__site {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* ── BAD WEBSITE STYLES (generic/ugly) ── */
.hi__site--bad {
  background: #f0f0f0;
  font-family: Arial, sans-serif;
}

.hi__bad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #003366, #0066cc);
  flex-wrap: wrap;
  gap: 0.25rem;
}

.hi__bad-logo {
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  font-weight: 900;
  color: #ffff00;
  text-shadow: 1px 1px 2px #000;
  font-family: 'Times New Roman', serif;
  white-space: nowrap;
}

.hi__bad-nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hi__bad-nav span {
  font-size: clamp(0.45rem, 0.9vw, 0.58rem);
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 0.15rem 0.35rem;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
  cursor: pointer;
}

.hi__bad-cta {
  font-size: clamp(0.5rem, 0.95vw, 0.65rem);
  font-weight: 900;
  background: #ff6600;
  color: #fff;
  padding: 0.3rem 0.5rem;
  border: 2px solid #ffcc00;
  white-space: nowrap;
  text-transform: uppercase;
  animation: badBlink 1.2s step-end infinite;
}

@keyframes badBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hi__bad-hero {
  position: relative;
  height: clamp(80px, 15vw, 160px);
  overflow: hidden;
}

.hi__bad-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,100,0.7), rgba(0,0,80,0.85)),
    repeating-linear-gradient(45deg, #003 0px, #003 10px, #004 10px, #004 20px);
}

.hi__bad-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.5rem 1rem;
  text-align: center;
  gap: 0.3rem;
}

.hi__bad-badge {
  font-size: clamp(0.45rem, 0.9vw, 0.62rem);
  background: #ffff00;
  color: #000;
  padding: 0.15rem 0.5rem;
  font-weight: 700;
  border-radius: 2px;
}

.hi__bad-title {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: clamp(0.65rem, 1.5vw, 1rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 4px #000, -1px -1px 0 #00f;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.hi__bad-sub {
  font-size: clamp(0.42rem, 0.8vw, 0.55rem);
  color: #ccc;
  margin: 0;
  line-height: 1.4;
}

.hi__bad-btns {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.hi__bad-btn {
  font-size: clamp(0.42rem, 0.85vw, 0.58rem);
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  white-space: nowrap;
}

.hi__bad-btn--1 {
  background: #00cc00;
  color: #fff;
  border: 2px outset #006600;
}

.hi__bad-btn--2 {
  background: #ffcc00;
  color: #000;
  border: 2px outset #996600;
}

/* Stats row */
.hi__bad-widgets {
  display: flex;
  background: #e8e8e8;
  border-top: 3px solid #0066cc;
}

.hi__bad-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.25rem;
  border-right: 1px solid #ccc;
  gap: 0.1rem;
}

.hi__bad-widget:last-child { border-right: none; }

.hi__bad-widget-num {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 900;
  color: #003366;
  font-family: 'Times New Roman', serif;
}

.hi__bad-widget-txt {
  font-size: clamp(0.38rem, 0.75vw, 0.52rem);
  color: #555;
  text-align: center;
  line-height: 1.2;
}

/* ── BLUEPRINT + WIREFRAME BOX ── */
.hbp {
  position: absolute;
  inset: 0;
  z-index: 11;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  background: rgba(0, 8, 8, 0.7);
}

.hbp__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hbp__scan {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,220,180,0.04) 30%,
    rgba(0,220,180,0.22) 50%,
    rgba(0,220,180,0.04) 70%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
}

/* ── CSS 3D Wireframe Box ── */
.hbp__box {
  position: absolute;
  left: 50%; top: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) perspective(700px) rotateY(0deg) rotateX(0deg);
  width: clamp(260px, 42vw, 520px);
  height: clamp(170px, 27vw, 340px);
  opacity: 0;
  will-change: transform, opacity;
}

.hbp__face {
  position: absolute;
  border: 1px solid rgba(0, 220, 180, 0.7);
  background: rgba(0, 220, 180, 0.025);
  box-shadow: 0 0 12px rgba(0, 220, 180, 0.15), inset 0 0 12px rgba(0, 220, 180, 0.05);
}

/* face dimensions — w=box-width, h=box-height, d=depth (h/2) */
.hbp__face--front  {
  width: 100%; height: 100%;
  transform: translateZ(calc(clamp(85px, 13.5vw, 170px)));
}
.hbp__face--back   {
  width: 100%; height: 100%;
  transform: translateZ(calc(clamp(-85px, -13.5vw, -170px) * -1)) rotateY(180deg);
}
.hbp__face--left   {
  width: clamp(170px, 27vw, 340px); height: 100%;
  left: 50%; margin-left: calc(clamp(170px, 27vw, 340px) / -2);
  transform: rotateY(-90deg) translateZ(calc(clamp(130px, 21vw, 260px)));
}
.hbp__face--right  {
  width: clamp(170px, 27vw, 340px); height: 100%;
  left: 50%; margin-left: calc(clamp(170px, 27vw, 340px) / -2);
  transform: rotateY(90deg) translateZ(calc(clamp(130px, 21vw, 260px)));
}
.hbp__face--top    {
  width: 100%; height: clamp(170px, 27vw, 340px);
  top: 50%; margin-top: calc(clamp(170px, 27vw, 340px) / -2);
  transform: rotateX(90deg) translateZ(calc(clamp(85px, 13.5vw, 170px)));
}
.hbp__face--bottom {
  width: 100%; height: clamp(170px, 27vw, 340px);
  top: 50%; margin-top: calc(clamp(170px, 27vw, 340px) / -2);
  transform: rotateX(-90deg) translateZ(calc(clamp(85px, 13.5vw, 170px)));
}

.hbp__corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: rgba(0, 220, 180, 0.9);
  border-style: solid;
}
.hbp__corner--tl { top: 2rem;    left: 1.5rem;  border-width: 2px 0 0 2px; }
.hbp__corner--tr { top: 2rem;    right: 1.5rem; border-width: 2px 2px 0 0; }
.hbp__corner--bl { bottom: 2rem; left: 1.5rem;  border-width: 0 0 2px 2px; }
.hbp__corner--br { bottom: 2rem; right: 1.5rem; border-width: 0 2px 2px 0; }

/* ── STATE 2: AM HERO FINAL ── */
.hf__content {
  flex: 1;
  position: relative;
  z-index: 5;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 1rem;
}

.hf__title {
  font-family: var(--ff-heading);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hf__line {
  display: block;
  overflow: hidden;
}

.hf__line--main {
  font-size: clamp(3rem, 11vw, 11rem);
  color: var(--text);
}

.hf__line--accent {
  font-size: clamp(3rem, 11vw, 11rem);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hf__line--sub {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-top: 0.75rem;
}

.hf__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hf__cta-secondary {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--t);
}
.hf__cta-secondary:hover { color: var(--text); }

.hf__footer {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem) 1.75rem;
  border-top: 1px solid var(--border-dim);
}

@media (prefers-reduced-motion: reduce) {
  .hi  { display: none !important; }
  .hbp { display: none !important; }
  .hf__content { opacity: 1 !important; transform: none !important; }
  .hf__footer  { opacity: 1 !important; transform: none !important; }
}

/* ── HERO SEQUENCE (cinematic image loop) ───────── */
.hs {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Canvas: full-cover, behind everything — vignette painted per-frame by JS */
.hs__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Content float animation — triggered by JS adding .hs__content--floating */
@keyframes hs-content-float {
  0%, 100% { transform: translateY(0);    }
  50%      { transform: translateY(-8px); }
}
.hs__content--floating {
  animation: hs-content-float 4s ease-in-out infinite;
}

/* Content overlay: centered in remaining flex space */
.hs__content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.75rem;
  padding: var(--nav-h) clamp(1.5rem, 6vw, 5rem) 1rem;
  opacity: 0; /* animated in by GSAP */
}

/* Override title line colors for image backdrop */
.hs__content .hf__line--sub     { color: rgba(255, 255, 255, 0.82); }
.hs__content .hf__cta-secondary { color: rgba(255, 255, 255, 0.72); }
.hs__content .hf__cta-secondary:hover { color: #fff; }

/* Footer: glassmorphism over image */
.hs .hf__footer {
  position: relative;
  z-index: 5;
  opacity: 0; /* animated in by GSAP */
  background: rgba(6, 14, 8, 0.40);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* No-JS fallbacks */
.no-js .hs__content    { opacity: 1 !important; }
.no-js .hs .hf__footer { opacity: 1 !important; }

/* Reduced-motion: freeze float, reveal text immediately */
@media (prefers-reduced-motion: reduce) {
  .hs__content--floating { animation: none; }
  .hs__content           { opacity: 1 !important; }
  .hs .hf__footer        { opacity: 1 !important; }
}
