/* ============================================================
   ZIPPYTTECH v2 — MOCKUP DESKTOP
   "Editorial Tech Noir"
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-base: #1a1a1f;
  --bg-deep: #0f0f12;
  --bg-card: rgba(15, 15, 18, 0.85);
  --bg-card-solid: #15151a;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-faint: rgba(255, 255, 255, 0.30);

  /* Mega type */
  --text-bg-mega: rgba(255, 255, 255, 0.05);
  --text-bg-accent: rgba(182, 255, 60, 0.18);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* SINGLE accent */
  --lime: #b6ff3c;
  --lime-glow: rgba(182, 255, 60, 0.4);
  --lime-soft: rgba(182, 255, 60, 0.15);

  /* Fonts */
  --font-display: 'Bebas Neue', 'Anton', system-ui, sans-serif;
  --font-headline: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ============================================================
   BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip !important;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: clip !important;
  position: relative;
}

/* No usar max-width: 100vw global aquí — rompe position: sticky en descendientes
   El control de overflow se hace por elemento culpable, no globalmente */

::selection {
  background: var(--lime);
  color: var(--bg-base);
}

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

ul {
  list-style: none;
}

/* ============================================================
   PRIMITIVES
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-lime {
  color: var(--lime);
}

.eyebrow-faint {
  color: var(--text-faint);
}

.eyebrow-dark {
  color: rgba(0, 0, 0, 0.7);
}

.eyebrow-section {
  margin-bottom: 16px;
  display: inline-flex;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.pulse-lime {
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
}

.muted {
  color: var(--text-muted);
}

.muted-sm {
  color: var(--text-muted);
  font-size: 12px;
}

.num-lime {
  color: var(--lime);
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
}

.lime-text {
  color: var(--lime);
}

.glass-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border-card);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.vertical-text-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: rotate(180deg) translateY(50%);
  z-index: 5;
}

.section {
  padding: 140px 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: end;
}

.section-head-center {
  text-align: center;
  display: block;
  margin-bottom: 80px;
}

.section-head-center .eyebrow {
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 16px;
}

.section-head-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 12px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.link-more:hover {
  border-bottom-color: var(--lime);
}

/* ============================================================
   MOCKUP JUMPER (dev nav, bottom-left, collapsible)
   Click toggle to expand/collapse. Doesn't block hero composition.
   ============================================================ */

.mockup-jumper {
  position: fixed;
  bottom: 20px;
  left: 60px;
  z-index: 100;
  font-size: 11px;
}

.mockup-jumper-toggle {
  background: rgba(15, 15, 18, 0.92);
  border: 0.5px solid var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  transition: all 0.2s;
}

.mockup-jumper-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.mockup-jumper-toggle-icon {
  font-size: 14px;
  line-height: 1;
  color: var(--lime);
}

.mockup-jumper-list {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: rgba(15, 15, 18, 0.92);
  border: 0.5px solid var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
}

.mockup-jumper.is-open .mockup-jumper-list {
  display: flex;
}

.mockup-jumper-list a {
  display: block;
  padding: 6px 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 6px;
  transition: all 0.15s;
}

.mockup-jumper-list a:hover {
  color: var(--lime);
  background: var(--lime-soft);
}

/* ============================================================
   01 — HERO POSTER
   ============================================================ */

.hero {
  min-height: 100vh;
  position: relative;
  padding: 32px 48px 80px;
  overflow: hidden;
}

.hero-mega {
  position: absolute;
  top: 80px;
  left: 32px;
  right: 0;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.82;
  color: var(--text-bg-mega);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: calc(100vw - 32px);
}

.hero-mega span {
  display: block;
  font-size: clamp(120px, 17vw, 260px);
}

.hero-mega-sub {
  font-size: clamp(60px, 8vw, 130px) !important;
  margin-top: -0.05em;
  margin-left: 1.5em;
}

/* Top bar */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 8px 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.85;
}

.logo-mark {
  width: auto;
  height: 38px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

/* Footer logo slightly larger */
.footer-brand .logo-mark {
  height: 52px;
}

.topbar-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}

.topbar-nav a {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s;
}

.topbar-nav a:hover {
  color: var(--lime);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: end;
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.lang-active {
  color: var(--lime);
  font-weight: 700;
}

.lang-sep {
  color: var(--text-faint);
  margin: 0 4px;
}

.lang-inactive {
  color: var(--text-muted);
}

/* Tagline */
.hero-tagline {
  position: absolute;
  top: 100px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  z-index: 5;
}

/* Hero stage */
.hero-stage {
  position: relative;
  height: calc(100vh - 200px);
  min-height: 800px;
  margin-top: 60px;
}

/* ============================================================
   ROBOT 3D — real image with lime glow
   ============================================================ */

.robot-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 468px;
  height: 754px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lime glow behind robot — radial gradient */
.robot-glow {
  position: absolute;
  inset: -80px -40px;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(182, 255, 60, 0.18), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 80%, rgba(182, 255, 60, 0.12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: robot-pulse 4s ease-in-out infinite;
}

@keyframes robot-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Robot image — fills the stage */
.robot-image {
  position: relative;
  z-index: 2;
  display: block;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.robot-image img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Robot video — replaces .robot-image when video is available */
.robot-video {
  position: relative;
  z-index: 2;
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  animation: robot-float 6s ease-in-out infinite;
  /* SCREEN blend: pixeles negros del video se vuelven invisibles → robot flota sobre el fondo */
  mix-blend-mode: screen;
  /* Máscara radial muy sutil para suavizar bordes verticales */
  -webkit-mask-image: radial-gradient(ellipse 95% 100% at center, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 100% at center, #000 70%, transparent 100%);
  /* Pequeño boost de contraste para que el robot resalte más sobre el fondo oscuro */
  filter: contrast(1.08) saturate(1.05);
}

/* Subtle floating animation */
.robot-image {
  animation: robot-float 6s ease-in-out infinite;
}

@keyframes robot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Tag below robot */
.robot-tag {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  white-space: nowrap;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .robot-image,
  .robot-video,
  .robot-glow {
    animation: none;
  }
  .robot-video {
    /* En reduced motion también pausamos el loop del video */
    animation-play-state: paused;
  }
}

/* Hero cards positioning */
.card-creative {
  position: absolute;
  top: 40px;
  left: 24px;
  width: 320px;
  z-index: 4;
}

.card-services {
  position: absolute;
  top: 40px;
  right: 24px;
  width: 240px;
  z-index: 4;
}

/* PROYECTOS: stacked under SERVICIOS in the right column */
.card-products {
  position: absolute;
  top: 280px;
  right: 24px;
  width: 280px;
  z-index: 4;
}

.card-cta-projects {
  position: absolute;
  top: 260px;
  left: 160px;
  width: 220px;
  z-index: 4;
  display: block;
  cursor: pointer;
  transition: all 0.2s;
}

.card-cta-projects:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* CONTACTO card removed in v8 — WhatsApp now occupies its position */

/* Card content */
.card-bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 14px;
}

.stats-inline {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 0.5px solid var(--border-card);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.card-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.card-list-bullet-lime li::before {
  color: var(--lime);
  font-weight: 700;
}

/* Twoline list — name + small inline description */
.card-list-twoline {
  gap: 10px;
}

.card-list-twoline li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.card-list-twoline .item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-list-twoline .item-desc {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-cta-title {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 14px;
  line-height: 1;
}

.card-cta-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* WhatsApp CTA — solid lime */
.card-whatsapp {
  position: absolute;
  /* Sits directly under PROYECTOS in the right column (where CONTACTO was) */
  top: 660px;
  right: 24px;
  width: 280px;
  z-index: 4;
  background: var(--lime);
  color: var(--bg-base);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 0 0 var(--lime-glow);
}

.card-whatsapp:hover {
  box-shadow: 0 0 24px var(--lime-glow);
  transform: translateY(-2px);
}

.card-whatsapp-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.card-whatsapp-text {
  flex: 1;
}

.card-whatsapp-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}

.card-whatsapp-arrow {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 600;
}

/* Decorative — circle text & arrow */
.circle-text {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.6;
}

.hero-arrow {
  position: absolute;
  top: 220px;
  left: 360px;
  width: 100px;
  height: 70px;
  z-index: 5;
  opacity: 0.85;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  z-index: 5;
}

.scroll-hint-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--lime), transparent);
}

/* ============================================================
   02 — LOGO MARQUEE
   ============================================================ */

.marquee-section {
  padding: 60px 0 80px;
  border-top: 0.5px solid var(--border-subtle);
  border-bottom: 0.5px solid var(--border-subtle);
  background: var(--bg-deep);
}

.marquee-track {
  margin-top: 24px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-row {
  display: flex;
  gap: 56px;
  align-items: center;
  white-space: nowrap;
  padding: 8px 48px;
}

.logo-pill {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s;
  font-feature-settings: 'ss01' 1;
}

.logo-pill:hover {
  color: var(--lime);
}

/* ============================================================
   03 — SERVICIOS
   ============================================================ */

.section-services {
  background: var(--bg-base);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  transition: all 0.25s ease;
}

.service-card:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.service-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.service-icon {
  width: 32px;
  height: 32px;
  color: var(--lime);
  margin-bottom: 6px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.service-tags li {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 0.5px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-secondary);
}

/* === Service card as <button> — reset native styles === */
button.service-card {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

button.service-card:focus {
  outline: none;
}

button.service-card:focus-visible {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-glow);
}

/* "Ver detalle →" cue at the bottom of each service card */
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.service-card:hover .service-card-link {
  color: var(--lime);
}

.service-card-link-arrow {
  transition: transform 0.2s ease;
}

.service-card:hover .service-card-link-arrow {
  transform: translateX(3px);
}

/* === Featured service card (IA) — subtle lime emphasis === */
.service-card-featured {
  border-color: rgba(182, 255, 60, 0.25);
  background: linear-gradient(180deg, rgba(182, 255, 60, 0.04), var(--bg-card));
}

.service-card-featured .service-icon {
  color: var(--lime);
  filter: drop-shadow(0 0 8px var(--lime-glow));
}

.service-card-featured:hover {
  border-color: var(--lime);
  box-shadow: 0 0 30px rgba(182, 255, 60, 0.08);
}

.service-badge {
  position: absolute;
  top: 18px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 4px 8px;
  border: 0.5px solid rgba(182, 255, 60, 0.3);
  border-radius: 100px;
  background: rgba(182, 255, 60, 0.06);
}

.service-card-featured .service-icon {
  margin-top: 28px;
}

/* === CTA service card (last slot, "¿Necesitas algo distinto?") === */
.service-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  background: var(--bg-card-solid);
  border-style: dashed;
  border-color: var(--border-card);
}

.service-card-cta:hover {
  border-color: var(--lime);
  border-style: solid;
  transform: translateY(-3px);
}

.service-cta-content {
  margin-top: 32px;
}

.service-card-cta .service-title {
  color: var(--text-primary);
}

.service-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border-card);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.service-cta-arrow-icon {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  transition: transform 0.2s;
}

.service-card-cta:hover .service-cta-arrow-icon {
  transform: translateX(4px);
}

/* ============================================================
   03b — EQUIPOS A MEDIDA (paquetes + calculadora)
   ============================================================ */

.section-teams {
  background: var(--bg-base);
  position: relative;
}

/* Sutil patrón de fondo para diferenciar visualmente */
.section-teams::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(182, 255, 60, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(182, 255, 60, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.section-teams > .container {
  position: relative;
  z-index: 1;
}

/* === Botón de descarga PDF === */
.teams-pdf-download {
  margin-top: 32px;
  display: flex;
  justify-content: flex-start;
}

.teams-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-card-solid);
  border: 0.5px solid var(--border-card);
  border-left: 2px solid var(--lime);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.teams-pdf-btn:hover {
  border-color: rgba(182, 255, 60, 0.35);
  border-left-color: var(--lime);
  background: rgba(182, 255, 60, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.teams-pdf-btn:focus-visible {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-glow);
}

.teams-pdf-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(182, 255, 60, 0.08);
  color: var(--lime);
  flex-shrink: 0;
}

.teams-pdf-btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.teams-pdf-btn-label {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.teams-pdf-btn-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.teams-pdf-btn-arrow {
  font-size: 16px;
  color: var(--text-muted);
  margin-left: 12px;
  transition: all 0.2s ease;
}

.teams-pdf-btn:hover .teams-pdf-btn-arrow {
  color: var(--lime);
  transform: translateX(3px);
}

/* === Paquetes pre-armados (3 cards) === */
.teams-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  margin-bottom: 32px;
}

.team-package {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-package:hover {
  transform: translateY(-4px);
}

.team-package-featured {
  border-color: rgba(182, 255, 60, 0.35);
  background: linear-gradient(180deg, rgba(182, 255, 60, 0.04) 0%, var(--bg-card) 100%);
}

.team-package-badge {
  position: absolute;
  top: -10px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lime);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 100px;
}

.team-package-badge .dot {
  background: var(--bg-deep);
  box-shadow: none;
  width: 5px;
  height: 5px;
}

.team-package-header {
  margin-bottom: 24px;
}

.team-package-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.team-package-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.team-package-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Bloque de profesionales — número grande tipo editorial */
.team-package-people {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  margin-bottom: 8px;
  border-top: 0.5px solid var(--border-subtle);
  border-bottom: 0.5px solid var(--border-subtle);
}

.team-package-people-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.team-package-featured .team-package-people-num {
  color: var(--lime);
}

.team-package-people-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-package-people-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
  margin-top: 2px;
}

.team-package-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.team-package-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  border-bottom: 0.5px solid var(--border-subtle);
}

.team-package-includes li:last-child {
  border-bottom: none;
}

.team-package-check {
  color: var(--lime);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.team-package-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
  font-family: var(--font-headline);
}

.team-package-price-mono {
  font-family: var(--font-headline);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.team-package-featured .team-package-price-mono {
  color: var(--lime);
}

.team-package-price-period {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.team-package-price-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-height: 16px;
  margin-bottom: 24px;
}

.team-package-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 10px;
  background: transparent;
  border: 0.5px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.team-package-cta:hover {
  border-color: var(--lime);
  background: rgba(182, 255, 60, 0.04);
  color: var(--lime);
  transform: translateY(-1px);
}

.team-package-cta-primary {
  background: var(--lime);
  color: var(--bg-deep);
  border-color: var(--lime);
  font-weight: 600;
}

.team-package-cta-primary:hover {
  background: var(--lime);
  color: var(--bg-deep);
  box-shadow: 0 8px 24px var(--lime-glow);
}

/* === Tabla comparativa === */
.teams-compare {
  margin: 64px 0 48px;
}

.teams-compare-header {
  margin-bottom: 32px;
  text-align: center;
}

.teams-compare-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--lime);
  display: block;
  margin-bottom: 12px;
}

.teams-compare-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

.teams-compare-table-wrap {
  background: var(--bg-card-solid);
  border: 0.5px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
}

.teams-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.teams-compare-table thead {
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 0.5px solid var(--border-card);
}

.teams-compare-table th,
.teams-compare-table td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 0.5px solid var(--border-subtle);
}

.teams-compare-table tbody tr:last-child th,
.teams-compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Header — feature column */
.teams-compare-feature-col {
  width: 32%;
  padding: 24px;
}

.teams-compare-feature-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Header — package columns */
.teams-compare-pkg-col {
  width: 22.6%;
  padding: 20px 24px;
  position: relative;
  vertical-align: top;
}

.teams-compare-pkg-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.teams-compare-pkg-name {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Featured column (Growth) — lime emphasis */
.teams-compare-pkg-col-featured {
  background: linear-gradient(180deg, rgba(182, 255, 60, 0.08) 0%, rgba(182, 255, 60, 0.03) 100%);
  border-left: 0.5px solid rgba(182, 255, 60, 0.2);
  border-right: 0.5px solid rgba(182, 255, 60, 0.2);
  position: relative;
}

.teams-compare-pkg-col-featured .teams-compare-pkg-name {
  color: var(--lime);
}

.teams-compare-pkg-badge {
  display: inline-block;
  margin-top: 8px;
  background: var(--lime);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 100px;
}

/* Body — feature row */
.teams-compare-feature {
  font-weight: 400;
}

.teams-compare-feature-name {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.teams-compare-feature-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Body — value cells */
.teams-compare-table td {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.teams-compare-cell-strong {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.teams-compare-cell-featured {
  background: linear-gradient(180deg, rgba(182, 255, 60, 0.04) 0%, rgba(182, 255, 60, 0.02) 100%);
  border-left: 0.5px solid rgba(182, 255, 60, 0.15);
  border-right: 0.5px solid rgba(182, 255, 60, 0.15);
  color: var(--text-primary);
}

.teams-compare-cell-featured .teams-compare-cell-strong {
  color: var(--lime);
}

.teams-compare-cell-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* === Toggle Mensual / Trimestral === */
.teams-plan-toggle {
  display: inline-flex;
  margin: 0 auto 64px;
  background: var(--bg-card-solid);
  border: 0.5px solid var(--border-card);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.teams-plan-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.teams-plan-btn:hover {
  color: var(--text-secondary);
}

.teams-plan-btn.is-active {
  background: var(--lime);
  color: var(--bg-deep);
  font-weight: 600;
}

.teams-plan-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--lime-glow);
}

/* === Calculadora === */
.teams-calculator {
  background: var(--bg-card-solid);
  border: 0.5px solid var(--border-card);
  border-radius: 16px;
  padding: 48px;
  margin-top: 32px;
}

.teams-calc-header {
  margin-bottom: 40px;
  max-width: 600px;
}

.teams-calc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--lime);
  margin-bottom: 14px;
}

.teams-calc-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.teams-calc-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.teams-calc-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* Roles list */
.teams-calc-roles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.teams-calc-role {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border-subtle);
}

.teams-calc-role:first-child {
  padding-top: 0;
}

.teams-calc-role:last-child {
  border-bottom: none;
}

.teams-calc-role-info {
  flex: 1;
  min-width: 0;
}

.teams-calc-role-name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.teams-calc-role-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.teams-calc-role-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--lime);
  margin: 0;
}

.teams-calc-role-price-value {
  font-weight: 600;
  transition: color 0.2s ease;
}

.teams-calc-role-hours {
  color: var(--text-faint);
  font-weight: 400;
  transition: color 0.2s ease;
}

/* Bloque de controles a la derecha (modalidad + stepper) */
.teams-calc-role-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Toggle Full-time / Medio tiempo */
.teams-calc-modality {
  display: inline-flex;
  background: var(--bg-deep);
  border: 0.5px solid var(--border-card);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.teams-calc-modality-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.teams-calc-modality-btn:hover:not(.is-active) {
  color: var(--text-secondary);
}

.teams-calc-modality-btn.is-active {
  background: var(--lime);
  color: var(--bg-deep);
  font-weight: 600;
}

.teams-calc-modality-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--lime-glow);
}

/* Stepper */
.teams-calc-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-deep);
  border: 0.5px solid var(--border-card);
  border-radius: 100px;
  padding: 4px;
}

.teams-calc-stepper-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.teams-calc-stepper-btn:hover:not(:disabled) {
  background: rgba(182, 255, 60, 0.1);
  color: var(--lime);
}

.teams-calc-stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.teams-calc-stepper-btn:focus-visible {
  outline: none;
  background: rgba(182, 255, 60, 0.1);
  color: var(--lime);
}

.teams-calc-stepper-value {
  min-width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Summary aside */
.teams-calc-summary {
  background: var(--bg-deep);
  border: 0.5px solid var(--border-card);
  border-radius: 12px;
  padding: 28px;
  position: sticky;
  top: 80px;
}

.teams-calc-summary-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.teams-calc-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.teams-calc-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border-subtle);
}

.teams-calc-summary-list li:last-child {
  border-bottom: none;
}

.teams-calc-summary-list li:first-child {
  padding-top: 0;
}

.teams-calc-summary-item-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.teams-calc-summary-item-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.teams-calc-summary-item-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  flex-shrink: 0;
}

.teams-calc-summary-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 0;
  margin-bottom: 12px;
}

.teams-calc-summary-total {
  padding-top: 20px;
  border-top: 0.5px solid var(--border-card);
  margin-bottom: 24px;
}

.teams-calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.teams-calc-total-row:last-child {
  margin-bottom: 0;
}

.teams-calc-total-row-secondary {
  margin-bottom: 6px;
}

.teams-calc-total-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.teams-calc-total-label-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.teams-calc-total-value {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lime);
  transition: color 0.18s ease;
}

.teams-calc-total-value-sm {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.teams-calc-total-period {
  font-size: 10px;
  color: var(--text-muted);
}

.teams-calc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: var(--lime);
  color: var(--bg-deep);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 14px;
}

.teams-calc-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--lime-glow);
}

.teams-calc-cta-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.teams-calc-fineprint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-faint);
  margin: 0;
  text-align: center;
}

.teams-calc-fineprint-emphasis {
  margin-top: 8px;
  color: var(--text-muted);
  font-style: italic;
}

.teams-calc-fineprint-icon {
  color: var(--lime);
  font-style: normal;
  margin-right: 4px;
}

/* === Mobile (< 768px) === */
@media (max-width: 768px) {
  .teams-packages {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Botón PDF en mobile: full-width */
  .teams-pdf-download {
    margin-top: 24px;
  }

  .teams-pdf-btn {
    width: 100%;
    padding: 14px 18px;
    gap: 12px;
  }

  .teams-pdf-btn-icon {
    width: 36px;
    height: 36px;
  }

  .teams-pdf-btn-label {
    font-size: 13px;
  }

  .teams-pdf-btn-meta {
    font-size: 10px;
  }

  .team-package {
    padding: 28px 24px;
  }

  .team-package-name {
    font-size: 28px;
  }

  .teams-plan-toggle {
    margin-bottom: 48px;
  }

  .teams-plan-btn {
    padding: 8px 16px;
    font-size: 11.5px;
  }

  .teams-calculator {
    padding: 32px 24px;
  }

  .teams-calc-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .teams-calc-summary {
    position: static;
  }

  .teams-calc-role {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .teams-calc-role-controls {
    align-self: flex-end;
    flex-direction: column;
    gap: 10px;
  }

  /* === Tabla comparativa: en mobile se convierte en tarjetas === */
  .teams-compare {
    margin: 48px 0 32px;
  }

  .teams-compare-table-wrap {
    border-radius: 12px;
  }

  .teams-compare-table,
  .teams-compare-table thead,
  .teams-compare-table tbody,
  .teams-compare-table tr,
  .teams-compare-table th,
  .teams-compare-table td {
    display: block;
    width: 100%;
  }

  /* Ocultar el header desktop */
  .teams-compare-table thead {
    display: none;
  }

  /* Cada fila se convierte en bloque vertical */
  .teams-compare-table tbody tr {
    padding: 20px 20px 8px;
    border-bottom: 0.5px solid var(--border-card);
  }

  .teams-compare-table tbody tr:last-child {
    border-bottom: none;
  }

  /* Feature: nombre arriba, descripción debajo */
  .teams-compare-feature {
    padding: 0 0 14px !important;
    border-bottom: 0.5px solid var(--border-subtle) !important;
    margin-bottom: 10px;
  }

  .teams-compare-feature-name {
    font-size: 13px;
  }

  .teams-compare-feature-desc {
    font-size: 11.5px;
  }

  /* Cada celda con label de paquete antes del valor */
  .teams-compare-table td {
    padding: 8px 0 !important;
    border-bottom: none !important;
    position: relative;
    padding-left: 110px !important;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .teams-compare-table td::before {
    content: attr(data-pkg);
    position: absolute;
    left: 0;
    top: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    width: 100px;
  }

  .teams-compare-cell-featured {
    border-left: 2px solid rgba(182, 255, 60, 0.4) !important;
    border-right: none !important;
    padding-left: 108px !important;
    margin-left: 4px;
  }

  .teams-compare-cell-featured::before {
    color: var(--lime) !important;
    left: 12px;
  }
}

/* ============================================================
   04 — EN DESARROLLO / EN CURSO (timeline activity log)
   ============================================================ */

.section-log {
  background: var(--bg-deep);
  position: relative;
}

/* === Filters === */
.log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--border-card);
}

.log-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 0.5px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.log-filter:hover {
  border-color: rgba(182, 255, 60, 0.4);
  color: var(--text-primary);
}

.log-filter.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg-base);
  font-weight: 600;
}

.log-filter-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.log-filter.is-active .log-filter-count {
  background: rgba(0, 0, 0, 0.15);
  color: var(--bg-base);
}

/* === Timeline === */
.log-timeline {
  display: flex;
  flex-direction: column;
}

.log-item {
  display: grid;
  grid-template-columns: 32px 200px 1fr 130px;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 0.5px solid var(--border-card);
  position: relative;
  transition: background 0.2s;
}

.log-item:last-child {
  border-bottom: 0.5px solid var(--border-card);
}

.log-item:hover {
  background: rgba(182, 255, 60, 0.015);
}

.log-item.is-hidden {
  display: none;
}

/* Rail (vertical line + dot on left) */
.log-item-rail {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
  min-height: 80px;
}

.log-item-rail::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-card);
  transform: translateX(-50%);
}

.log-item:first-child .log-item-rail::before {
  top: 8px;
}

.log-item:last-child .log-item-rail::before {
  bottom: calc(100% - 16px);
}

.log-item-status {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 8px;
  border: 2px solid var(--bg-deep);
  box-sizing: content-box;
}

.status-en-curso {
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime-glow);
  animation: pulse-lime 2s ease-in-out infinite;
}

.status-continuo {
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime-glow);
}

.status-completado {
  background: var(--text-faint);
}

/* Meta column (date + category) */
.log-item-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.log-item-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.05em;
}

.log-item-cat {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 0.5px solid var(--border-card);
  border-radius: 100px;
  width: fit-content;
}

/* Body column (client + title + desc) */
.log-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.log-item-client {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.log-item-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}

.log-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 580px;
  margin: 0;
}

/* State pill column */
.log-item-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0.5px solid var(--border-card);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  width: fit-content;
  justify-self: end;
  margin-top: 4px;
}

.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.state-label {
  white-space: nowrap;
}

/* Footnote */
.log-footnote {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border-card);
  text-align: center;
}

.log-footnote-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Clickable log item (for items with external link) */
.log-item-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.log-item-link:hover {
  background: rgba(182, 255, 60, 0.04);
}

.log-item-link:hover .log-item-title {
  color: var(--lime);
}

.log-item-link:hover .log-item-external {
  transform: translate(2px, -2px);
  opacity: 1;
}

.log-item-external {
  display: inline-block;
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lime);
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   05 — STATS
   ============================================================ */

.section-stats {
  background: var(--bg-base);
  padding: 100px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--border-card);
  border-bottom: 0.5px solid var(--border-card);
}

.stat-block {
  padding: 56px 32px;
  text-align: center;
  border-right: 0.5px solid var(--border-card);
  position: relative;
}

.stat-block:last-child {
  border-right: none;
}

.stat-block-num {
  font-family: var(--font-mono);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px var(--lime-glow);
}

.num-suffix {
  color: rgba(182, 255, 60, 0.5);
}

.stat-block-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ============================================================
   06 — PROCESO · NUESTRO MÉTODO (flujo obligatorio del negocio)
   ============================================================ */

.section-process {
  background: #0a0a0d; /* slightly darker than bg-deep for distinction */
  position: relative;
  overflow: hidden;
  border-top: 0.5px solid rgba(182, 255, 60, 0.12);
  border-bottom: 0.5px solid rgba(182, 255, 60, 0.12);
}

/* Subtle grid pattern background to mark this as a "method" section */
.process-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(182, 255, 60, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 255, 60, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
}

.section-process > .container {
  position: relative;
  z-index: 1;
}

/* Emphasized eyebrow + title for the "Método" framing */
.eyebrow-emphasized {
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  border: 0.5px solid rgba(182, 255, 60, 0.3);
  border-radius: 100px;
  background: rgba(182, 255, 60, 0.05);
}

.section-title-emphasized {
  /* Already large but reaffirm */
  font-size: clamp(48px, 6vw, 80px);
}

.text-white {
  color: var(--text-primary);
  font-weight: 600;
}

/* Process track */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  /* Now a real button — reset native button styles */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  padding: 32px 24px 32px 0;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-step:hover {
  transform: translateY(-3px);
}

.process-step:focus {
  outline: none;
}

.process-step:focus-visible {
  outline: none;
}

.process-step:focus-visible .process-step-deliverable {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime-glow);
}

/* Lime dot at the start of each phase, sitting on the timeline rail */
.process-step-dot {
  position: absolute;
  top: 14px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--lime);
  z-index: 2;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.process-step-line {
  position: absolute;
  top: 18px;
  left: 30px;
  right: -4px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime) 30%, var(--text-faint) 100%);
  opacity: 0.4;
}

.process-step-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 6px solid var(--text-faint);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.6;
}

.process-step-title {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.process-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Deliverable card per phase */
.process-step-deliverable {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  margin-right: 24px;
  border: 0.5px solid var(--border-card);
  border-left: 2px solid var(--lime);
  border-radius: 4px;
  background: rgba(182, 255, 60, 0.025);
}

.process-step-deliverable-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.process-step-deliverable-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Hover state on the deliverable card to reinforce clickability */
.process-step:hover .process-step-deliverable {
  background: rgba(182, 255, 60, 0.05);
  border-color: rgba(182, 255, 60, 0.2);
  border-left-color: var(--lime);
}

/* "Ver detalle →" cue under each step */
.process-step-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  margin-right: 24px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.process-step:hover .process-step-cta {
  color: var(--lime);
}

.process-step-cta-arrow {
  transition: transform 0.2s ease;
}

.process-step:hover .process-step-cta-arrow {
  transform: translateX(3px);
}

/* Hint below the timeline */
.process-track-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Bottom CTA — closes the method as an invitation */
.process-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 80px;
  padding: 32px 40px;
  border: 0.5px solid rgba(182, 255, 60, 0.25);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(182, 255, 60, 0.04), rgba(182, 255, 60, 0.01));
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.process-cta:hover {
  border-color: var(--lime);
  background: linear-gradient(90deg, rgba(182, 255, 60, 0.08), rgba(182, 255, 60, 0.02));
  transform: translateY(-2px);
}

.process-cta-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.process-cta-title {
  font-family: var(--font-headline);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.process-cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.process-cta-arrow {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 600;
  color: var(--lime);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.process-cta:hover .process-cta-arrow {
  transform: translateX(8px);
}

/* ============================================================
   06b — METHOD MODAL (detalle de fase, navegable)
   ============================================================ */

.process-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.process-modal-backdrop.is-open {
  display: flex;
  opacity: 1;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 48px 24px;
}

.process-modal {
  background: var(--bg-deep);
  border: 0.5px solid var(--border-card);
  border-radius: 16px;
  width: 100%;
  max-width: 920px;
  padding: 0;
  position: relative;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease;
  overflow: hidden;
}

.process-modal-backdrop.is-open .process-modal {
  transform: translateY(0);
  opacity: 1;
}

/* Top progress bar */
.process-modal-progress {
  height: 2px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.process-modal-progress-bar {
  height: 100%;
  background: var(--lime);
  width: 20%;
  transition: width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 8px var(--lime-glow);
}

/* Header bar with counter + nav icons + close */
.process-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 0.5px solid var(--border-card);
  background: rgba(0, 0, 0, 0.2);
}

.process-modal-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-modal-counter-current {
  color: var(--lime);
  font-weight: 600;
}

.process-modal-counter-divider {
  width: 14px;
  height: 1px;
  background: var(--border-card);
}

.process-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-modal-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 0.5px solid var(--border-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  padding: 0;
}

.process-modal-icon-btn:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-1px);
}

.process-modal-icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.process-modal-icon-btn:focus-visible {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-glow);
}

/* Content (animated on phase change) */
.process-modal-content {
  padding: 48px 56px 0;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-modal-content.is-leaving-next {
  opacity: 0;
  transform: translateX(-12px);
}

.process-modal-content.is-leaving-prev {
  opacity: 0;
  transform: translateX(12px);
}

.process-modal-content.is-entering-next {
  opacity: 0;
  transform: translateX(12px);
}

.process-modal-content.is-entering-prev {
  opacity: 0;
  transform: translateX(-12px);
}

.process-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--lime);
  margin-bottom: 20px;
}

.process-modal-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.process-modal-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--border-card);
}

.process-modal-section {
  margin-bottom: 36px;
}

.process-modal-section-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.process-modal-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0;
}

.process-modal-section-why {
  margin-top: 40px;
  margin-bottom: 40px;
}

.process-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-modal-list li {
  position: relative;
  padding: 11px 0 11px 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  border-bottom: 0.5px solid var(--border-subtle);
}

.process-modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 1px;
  background: var(--lime);
}

.process-modal-list li:last-child {
  border-bottom: none;
}

.process-modal-list li strong {
  color: var(--text-primary);
  font-weight: 500;
}

.process-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding: 24px;
  background: rgba(182, 255, 60, 0.04);
  border: 0.5px solid rgba(182, 255, 60, 0.15);
  border-radius: 12px;
}

.process-modal-meta-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.process-modal-meta-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.process-modal-meta-value {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.process-modal-meta-value em {
  font-style: normal;
  color: var(--lime);
}

.process-modal-meta-value-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.process-modal-deliverables {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-card-solid);
  border: 0.5px solid var(--border-card);
  border-radius: 12px;
}

.process-modal-deliverables-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.process-modal-deliverables-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--lime);
  border-radius: 1px;
}

.process-modal-deliverables ol {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 0;
}

.process-modal-deliverables li {
  counter-increment: item;
  position: relative;
  padding: 9px 0 9px 32px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.process-modal-deliverables li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--lime);
}

/* Footer with prev / next-or-CTA */
.process-modal-footer {
  margin-top: 48px;
  border-top: 0.5px solid var(--border-card);
  padding: 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.process-modal-nav-spacer {
  width: 1px;
  flex: 0 0 auto;
}

.process-modal-nav-btn {
  background: transparent;
  border: 0.5px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  line-height: 1.3;
}

.process-modal-nav-btn:hover:not(:disabled) {
  border-color: var(--lime);
  background: rgba(182, 255, 60, 0.04);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.process-modal-nav-btn:focus-visible {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-glow);
}

.process-modal-nav-btn-prev {
  padding-left: 16px;
}

.process-modal-nav-btn-next {
  padding-right: 16px;
  margin-left: auto;
}

.process-modal-nav-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-modal-nav-label-right {
  text-align: right;
}

.process-modal-nav-label-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.process-modal-nav-btn:hover:not(:disabled) .process-modal-nav-label-eyebrow {
  color: var(--lime);
}

.process-modal-nav-label-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.process-modal-nav-arrow {
  color: var(--lime);
  font-size: 16px;
  transition: transform 0.2s ease;
}

.process-modal-nav-btn-next:hover:not(:disabled) .process-modal-nav-arrow {
  transform: translateX(3px);
}

.process-modal-nav-btn-prev:hover:not(:disabled) .process-modal-nav-arrow {
  transform: translateX(-3px);
}

/* Final phase: WhatsApp CTA in place of "next" */
.process-modal-cta-button {
  background: var(--lime);
  color: var(--bg-deep);
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.process-modal-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--lime-glow);
}

/* Subtle keyboard hints, bottom-right of modal */
.process-modal-keyboard-hints {
  position: absolute;
  bottom: 14px;
  right: 24px;
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  pointer-events: none;
}

.process-modal-keyboard-hints kbd {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid var(--border-card);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin: 0 2px;
}

/* Stack & tools chips inside services modal */
.services-modal-stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.services-modal-stack-list li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border: 0.5px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.18s ease;
}

.services-modal-stack-list li:hover {
  border-color: rgba(182, 255, 60, 0.35);
  color: var(--lime);
  background: rgba(182, 255, 60, 0.04);
}

/* Mobile adjustments for the modal */
@media (max-width: 768px) {
  /* Timeline collapses to vertical stack */
  .process-track {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-step {
    padding: 24px 0;
    border-bottom: 0.5px solid var(--border-subtle);
  }

  .process-step:last-child {
    border-bottom: none;
  }

  .process-step:hover {
    transform: none;
  }

  .process-step-line,
  .process-step-dot {
    display: none;
  }

  .process-step-num {
    margin-bottom: 12px;
  }

  .process-step-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .process-step-desc {
    margin-bottom: 16px;
  }

  .process-step-deliverable {
    margin-right: 0;
  }

  .process-step-cta {
    margin-right: 0;
  }

  .process-track-hint {
    margin-top: 32px;
    font-size: 11px;
  }

  /* Modal */
  .process-modal-backdrop.is-open {
    padding: 0;
    align-items: stretch;
  }

  .process-modal {
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .process-modal-content {
    padding: 32px 20px 0;
    flex: 1;
  }

  .process-modal-meta {
    grid-template-columns: 1fr;
  }

  .process-modal-footer {
    padding: 16px 20px;
    flex-wrap: nowrap;
  }

  .process-modal-nav-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .process-modal-nav-label-name {
    font-size: 13px;
  }

  .process-modal-keyboard-hints {
    display: none;
  }
}

/* ============================================================
   07 — EQUIPO
   ============================================================ */

.section-team {
  background: var(--bg-base);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Tablet: 3 columnas */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Mobile: 2 columnas — fotos legibles, no microscópicas */
@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #1f1f24, #0f0f12);
  border: 0.5px solid var(--border-card);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Real photo — B/N by default, color on hover with smooth transition */
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.team-member:hover .team-photo img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}

.team-member:hover .team-photo {
  border-color: rgba(182, 255, 60, 0.3);
}

/* Initials placeholder — for team members without photo yet */
.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #16161b, #0a0a0d);
}

.team-photo-placeholder::before {
  content: attr(data-initials);
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  transition: color 0.3s ease;
}

.team-member:hover .team-photo-placeholder::before {
  color: var(--text-muted);
}

.team-name {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.team-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.team-member:hover .team-role {
  color: var(--lime);
}

/* ============================================================
   08 — TECH STACK
   ============================================================ */

.section-stack {
  background: var(--bg-deep);
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  border: 0.5px solid var(--border-card);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.01);
}

.stack-tag {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 600;
  padding: 10px 18px;
  border: 0.5px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-secondary);
  background: var(--bg-card);
  letter-spacing: -0.01em;
  transition: all 0.2s;
  cursor: default;
}

.stack-tag:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.stack-tag-md {
  font-size: 22px;
  padding: 12px 22px;
  color: var(--text-primary);
}

.stack-tag-lg {
  font-size: 28px;
  padding: 14px 28px;
  color: var(--text-primary);
  border-color: rgba(182, 255, 60, 0.35);
  background: rgba(182, 255, 60, 0.04);
  box-shadow: inset 0 0 0 0.5px rgba(182, 255, 60, 0.15), 0 0 24px rgba(182, 255, 60, 0.05);
  position: relative;
}

.stack-tag-lg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
}

.stack-tag-lg {
  padding-left: 32px;
}

.stack-tag-lg:hover {
  background: rgba(182, 255, 60, 0.08);
  border-color: var(--lime);
}

/* ============================================================
   09 — CTA FINAL
   ============================================================ */

.section-cta {
  background: var(--bg-base);
  position: relative;
  padding: 140px 0 160px;
  overflow: hidden;
}

.cta-mega {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(160px, 22vw, 360px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--text-bg-mega);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
}

.container-cta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 480px;
}

.cta-headline {
  font-family: var(--font-headline);
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-top: 24px;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 480px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  transition: all 0.2s;
  cursor: pointer;
  border: 0;
}

.btn-lime {
  background: var(--lime);
  color: var(--bg-base);
}

.btn-lime:hover {
  box-shadow: 0 0 24px var(--lime-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 0.5px solid var(--border-card);
  font-family: var(--font-mono);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.cta-meta {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 0.5px solid var(--border-card);
}

.robot-stage-cta {
  position: relative;
  width: 100%;
  height: 480px;
  transform: none;
  left: 0;
  top: 0;
}

.robot-glow-cta {
  inset: -60px;
  opacity: 0.7;
}

/* ============================================================
   10 — FOOTER
   ============================================================ */

.footer {
  background: var(--bg-deep);
  padding: 80px 0 40px;
  border-top: 0.5px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand-name {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand-tag {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.footer-col a {
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-mega {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text-bg-mega);
  text-align: center;
  user-select: none;
  pointer-events: none;
  margin: 40px 0;
  white-space: nowrap;
  overflow: hidden;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 0.5px solid var(--border-subtle);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   TESTIMONIOS — Carousel
   ============================================================ */

.section-testimonials {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Decorative lime glow behind */
.testimonials-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(182, 255, 60, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.section-testimonials > .container {
  position: relative;
  z-index: 1;
}

.section-head-desc-center {
  max-width: 580px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Demo notice (remove when real testimonials arrive) */
.testimonials-demo-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 32px auto 0;
  padding: 8px 14px;
  border: 0.5px dashed rgba(182, 255, 60, 0.4);
  border-radius: 100px;
  background: rgba(182, 255, 60, 0.04);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.testimonials-demo-notice .dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonials-demo-notice strong {
  color: var(--lime);
  font-weight: 600;
}

/* Carousel container */
.testimonials-carousel {
  margin-top: 64px;
  position: relative;
}

/* Track holds all slides; we toggle .is-active for visibility */
.testimonials-track {
  position: relative;
  min-height: 360px;
  max-width: 880px;
  margin: 0 auto;
}

/* Each testimonial slide */
.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card-solid);
  border: 0.5px solid var(--border-card);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.testimonial.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

/* Big quote mark decoration */
.testimonial-quote-mark {
  font-family: var(--font-headline);
  font-size: 96px;
  font-weight: 800;
  line-height: 0.8;
  color: var(--lime);
  opacity: 0.3;
  margin-bottom: 8px;
  user-select: none;
}

.testimonial-quote {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  max-width: 720px;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border-card);
  width: 100%;
  max-width: 480px;
  justify-content: center;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(182, 255, 60, 0.15), rgba(182, 255, 60, 0.05));
  border: 0.5px solid rgba(182, 255, 60, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.testimonial-avatar::before {
  content: attr(data-initials);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--lime);
}

.testimonial-author-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author-name {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.testimonial-author-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* Demo badge — visible signal that this is placeholder */
.testimonial-demo-badge {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 2px 6px;
  border: 0.5px solid rgba(182, 255, 60, 0.4);
  border-radius: 100px;
  color: var(--lime);
  background: rgba(182, 255, 60, 0.06);
  text-transform: uppercase;
}

/* Controls (arrows + dots) */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.testimonials-arrow {
  width: 44px;
  height: 44px;
  border: 0.5px solid var(--border-card);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.testimonials-arrow:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: scale(1.05);
}

.testimonials-arrow svg {
  width: 18px;
  height: 18px;
}

.testimonials-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border-card);
  cursor: pointer;
  transition: all 0.25s;
}

.testimonials-dot.is-active {
  background: var(--lime);
  width: 24px;
  border-radius: 100px;
  box-shadow: 0 0 8px var(--lime-glow);
}

.testimonials-dot:hover:not(.is-active) {
  background: var(--text-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .testimonial {
    transition: opacity 0.2s ease;
  }
}

/* Mobile responsive (built-in from start) */
@media (max-width: 768px) {
  .testimonials-carousel {
    margin-top: 40px;
  }
  .testimonials-track {
    min-height: 420px;
  }
  .testimonial {
    padding: 36px 24px;
  }
  .testimonial-quote-mark {
    font-size: 64px;
  }
  .testimonial-quote {
    font-size: 18px;
  }
  .testimonials-demo-notice {
    font-size: 10px;
    padding: 6px 12px;
  }
  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .testimonial-author-info {
    text-align: center;
    align-items: center;
  }
  .testimonials-controls {
    margin-top: 28px;
    gap: 16px;
  }
  .testimonials-arrow {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   RESPONSIVE GUARDRAILS
   (mockup desktop-first; keep usable down to ~1100px)
   ============================================================ */

@media (max-width: 1200px) {
  .hero-mega span {
    font-size: 14vw;
  }
  .card-creative,
  .card-services,
  .card-products,
  .card-cta-projects,
  .card-whatsapp {
    width: 240px;
  }
  .hero-arrow {
    display: none;
  }
  /* Services: 4 cols → 2 cols on narrower screens */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Process: 5 cols → 2 cols, hide connecting horizontal lines */
  .process-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .process-step-line {
    display: none;
  }
  .process-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
  .process-cta-arrow {
    align-self: flex-end;
    font-size: 36px;
  }
  /* Log timeline: meta column shrinks, state pill goes below */
  .log-item {
    grid-template-columns: 32px 160px 1fr;
    gap: 16px;
  }
  .log-item-state {
    grid-column: 2 / 4;
    justify-self: start;
    margin-top: 8px;
  }
  .log-filters {
    gap: 6px;
  }
  .log-filter {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* ============================================================
   HAMBURGER + MOBILE DRAWER
   (button hidden on desktop, visible on mobile)
   ============================================================ */

.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0.5px solid var(--border-card);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: border-color 0.2s;
}

.nav-hamburger:hover {
  border-color: var(--lime);
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
  background: var(--lime);
}
.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-active span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
  background: var(--lime);
}

/* Drawer overlay */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 13, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  overflow: hidden;
}

.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: var(--bg-deep);
  border-left: 0.5px solid var(--border-card);
  display: none; /* No existe en flujo cuando cerrado — evita scroll horizontal en Safari */
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-drawer.is-open .nav-drawer-inner {
  display: flex;
  /* Forzar reflow → animación funciona */
  animation: drawer-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawer-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--border-card);
}

.nav-drawer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.nav-drawer-logo span {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav-drawer-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0.5px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.nav-drawer-close:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-drawer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}

.nav-drawer-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 6px;
  transition: all 0.15s;
}

.nav-drawer-nav a:hover {
  background: rgba(182, 255, 60, 0.06);
  color: var(--lime);
  padding-left: 18px;
}

.nav-drawer-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  min-width: 24px;
}

.nav-drawer-nav a:hover .nav-drawer-num {
  color: var(--lime);
}

.nav-drawer-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-drawer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.nav-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--lime);
  color: var(--bg-base);
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  transition: box-shadow 0.2s;
}

.nav-drawer-cta:hover {
  box-shadow: 0 0 20px var(--lime-glow);
}

.nav-drawer-cta span:first-child {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============================================================
   MOBILE — ≤ 768px
   Stack vertical layout for Hero, hide desktop-only decorations
   ============================================================ */

@media (max-width: 768px) {
  /* === Container & section spacing === */
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  /* === Topbar mobile === */
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 4px 0;
    gap: 12px;
  }

  .topbar-nav {
    display: none;
  }

  .topbar-est,
  .topbar-right .lang-switch {
    display: none;
  }

  .topbar-right {
    gap: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .logo-text {
    font-size: 15px;
  }

  /* === Hero mobile (stack vertical) === */
  .hero {
    min-height: auto;
    padding: 16px 20px 60px;
  }

  /* Mega type smaller, doesn't take over */
  .hero-mega {
    top: 70px;
    left: 12px;
    right: 12px;
    overflow: hidden;
  }

  .hero-mega span {
    font-size: 18vw !important;
    line-height: 0.85;
  }

  .hero-mega-sub {
    font-size: 11vw !important;
    margin-left: 0.6em;
  }

  /* Hide vertical text on mobile (no room) */
  .vertical-text-left {
    display: none;
  }

  /* Hide arrow decoration */
  .hero-arrow {
    display: none;
  }

  /* Tagline mobile */
  .hero-tagline {
    position: relative;
    top: 0;
    left: 0;
    margin-top: 16px;
    font-size: 9px;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Stage becomes flex column instead of absolute */
  .hero-stage {
    position: relative;
    height: auto;
    min-height: auto;
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Robot first, centered — agrandado 50% para presencia mobile */
  .robot-stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 480px;
    margin: 0 auto;
    margin-top: -40px; /* Sube el robot acercándolo a la tipografía gigante */
    order: 1;
    align-items: flex-start; /* Alinear al top en lugar de center */
  }

  .robot-glow {
    inset: -40px -20px;
  }

  .robot-image {
    height: 480px;
  }

  /* All hero cards: full width, stacked, normalized positions */
  .card-creative,
  .card-services,
  .card-products,
  .card-cta-projects,
  .card-whatsapp {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100%;
  }

  .card-creative { order: 2; }
  .card-cta-projects { order: 3; }
  .card-services { order: 4; }
  .card-products { order: 5; }
  .card-whatsapp { order: 6; }

  /* Card sizing tweaks for mobile */
  .glass-card {
    padding: 18px;
    border-radius: 14px;
  }

  /* Stats inline → 3 columns of equal width */
  .stats-inline {
    gap: 14px;
  }

  .stat-num {
    font-size: 22px;
  }

  /* Card titles smaller */
  .card-cta-title {
    font-size: 26px;
  }

  /* Decorative circle text — hide on mobile, no room */
  .circle-text {
    display: none;
  }

  /* Scroll hint */
  .scroll-hint {
    display: none;
  }

  /* Ensure WhatsApp card looks good */
  .card-whatsapp {
    margin-top: 8px;
    padding: 18px 20px;
  }

  .card-whatsapp-num {
    font-size: 16px;
  }
}

/* === Tablet adjustments === */
@media (max-width: 1100px) and (min-width: 769px) {
  .topbar-nav {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .topbar-est {
    display: none;
  }
}

/* Hide mockup-only jumper on mobile (it's a dev tool) */
@media (max-width: 768px) {
  .mockup-jumper {
    display: none;
  }
}

/* ============================================================
   MOBILE TYPOGRAPHY SCALE — escalonado +10% a +30% según rol
   ============================================================ */
@media (max-width: 768px) {
  /* Body — base size 15px → 17px (más legible para leer textos largos) */
  body {
    font-size: 17px;
    line-height: 1.6;
  }

  /* Eyebrow / labels — 11px → 13px (los uppercase pequeños eran ilegibles) */
  .eyebrow,
  .eyebrow-row,
  .teams-compare-eyebrow,
  .teams-calc-eyebrow,
  .team-package-eyebrow,
  .teams-compare-feature-label,
  .teams-compare-pkg-eyebrow {
    font-size: 13px !important;
    letter-spacing: 0.16em;
  }

  /* Section titles — clamp ya respondía a vw, pero aseguramos mínimo más legible */
  .section-title {
    font-size: clamp(36px, 9vw, 56px);
    line-height: 1.05;
  }

  .section-head-desc {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Cards — descripciones y subtítulos */
  .card p,
  .glass-card p,
  .team-package-desc,
  .team-package-includes li,
  .teams-calc-role-desc,
  .teams-compare-feature-desc {
    font-size: 15px;
    line-height: 1.55;
  }

  .team-package-includes li {
    font-size: 15px;
  }

  /* Tarjetas: nombre del paquete y precio más fuertes */
  .team-package-name {
    font-size: 28px;
  }

  .team-package-price-amount {
    font-size: 44px;
  }

  /* Botones / CTAs — texto interno legible */
  .btn,
  .button,
  .cta-button,
  .lime-button,
  .teams-pdf-btn-label,
  .team-package-cta {
    font-size: 15px;
  }

  /* Calculadora roles — nombre del rol y precio */
  .teams-calc-role-name {
    font-size: 19px;
  }

  .teams-calc-role-price {
    font-size: 14px;
  }

  /* Mono / datos pequeños — JetBrains era 11-12px, ahora más amable */
  .teams-pdf-btn-meta,
  .team-package-people-sub,
  .teams-calc-role-hours,
  .teams-calc-stepper-value,
  .teams-calc-fineprint {
    font-size: 12.5px;
  }

  /* Stats / números grandes en cards */
  .stat-number,
  .number-stat,
  .team-package-people-num {
    /* Mantienen su tipografía display, solo confirmamos legibilidad */
    line-height: 0.9;
  }

  /* Footer / metadata baja jerarquía */
  .footer p,
  .footer a,
  .footer li,
  .text-muted,
  .text-faint {
    font-size: 14.5px;
  }

  /* Navbar drawer (menú lateral) — links principales más amables al tap */
  .nav-drawer-link,
  .nav-drawer-nav a {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Tabla comparativa: en mobile colapsa a tarjetas, los valores deben ser legibles */
  .teams-compare-table td,
  .teams-compare-cell-strong {
    font-size: 15px;
  }

  .teams-compare-feature-name {
    font-size: 16px;
  }

  /* Hero "tags" como [ ZIPPY-01 ] — eran 9px, casi invisibles en mobile */
  .robot-tag {
    font-size: 11px;
  }
}

/* Phones pequeños (<=380px iPhone SE / Mini) — un pelín más conservador */
@media (max-width: 380px) {
  body {
    font-size: 16.5px;
  }

  .eyebrow,
  .eyebrow-row,
  .teams-compare-eyebrow,
  .teams-calc-eyebrow,
  .team-package-eyebrow {
    font-size: 12.5px !important;
  }

  .team-package-name {
    font-size: 26px;
  }

  .team-package-price-amount {
    font-size: 40px;
  }
}

/* ============================================================
   FIX: section-head debe ser una columna en mobile
   (era grid 2-cols que dejaba el título vacío y el desc estrecho)
   ============================================================ */
@media (max-width: 768px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .section-head-desc {
    max-width: 100%;
  }
}

/* ============================================================
   FIX: Grids de cards en mobile deben ser 1 columna
   (los textos largos no caben en 2 columnas estrechas)
   ============================================================ */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    min-height: auto;
  }

  .process-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================================
   TEAM PHOTO MODAL
   ============================================================ */

/* Hint visual sobre las fotos del equipo */
.team-photo,
.team-photo-placeholder {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-photo:hover,
.team-photo-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.team-photo:focus-visible,
.team-photo-placeholder:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

/* === Modal === */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s 0.28s;
}

.team-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.team-modal-dialog {
  position: relative;
  background: var(--bg-card-solid);
  border: 0.5px solid var(--border-card);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-modal.is-open .team-modal-dialog {
  transform: translateY(0) scale(1);
}

.team-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0.5px solid var(--border-card);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.team-modal-close:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--lime);
}

.team-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--lime-glow);
  border-color: var(--lime);
}

/* Foto grande */
.team-modal-photo {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-deep);
  position: relative;
}

.team-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/* Placeholder con iniciales (si la card original no tiene foto) */
.team-modal-photo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgba(182, 255, 60, 0.08) 0%, rgba(15, 15, 18, 0.6) 100%);
}

/* Meta — eyebrow + nombre + rol */
.team-modal-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--lime);
  margin-bottom: 8px;
}

.team-modal-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.team-modal-role {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .team-modal {
    padding: 16px;
  }

  .team-modal-dialog {
    padding: 20px 16px;
  }

  .team-modal-photo {
    max-width: 100%;
  }

  .team-modal-name {
    font-size: 24px;
  }

  .team-modal-role {
    font-size: 14px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .team-modal,
  .team-modal-dialog,
  .team-photo,
  .team-photo-placeholder {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   FIX iPhone: prevenir scroll horizontal residual
   ============================================================ */
.marquee-section {
  overflow: hidden;
}

@media (max-width: 768px) {
  /* Robot stage no debe causar scroll horizontal cuando viewport < tamaño robot */
  .robot-stage {
    max-width: 100%;
    overflow: hidden;
  }

  .robot-image {
    max-width: 100%;
  }
}

/* Contener overflow en secciones que tienen elementos decorativos absolute (glows, megas) */
.section-cta,
.testimonials-section,
section[class*="cta"],
section[class*="testimonial"] {
  overflow: hidden;
}

/* ============================================================
   FIX iPhone scroll horizontal:
   Aplicamos overflow hidden SOLO a los 3 elementos culpables identificados:
   nav-drawer-inner, testimonials-glow, cta-mega.
   NO usar reglas globales de overflow-x porque rompen position: sticky.
   ============================================================ */
@media (max-width: 768px) {
  /* Robot stage no debe sobresalir del viewport en mobile */
  .robot-stage {
    max-width: 100vw;
    overflow: hidden;
  }
}

/* ============================================================
   SECTION CINEMA — Robot sticky + frames cinematográficos
   Inspirado en iron-man-jet.vercel.app
   ============================================================ */

.section-cinema {
  position: relative;
  background: var(--bg-base);
  border-top: 0.5px solid var(--border-subtle);
  border-bottom: 0.5px solid var(--border-subtle);
  /* No usar overflow-x: clip aquí — rompe position: sticky del .cinema-stage-inner.
     El overflow-x del body global ya recorta cualquier overflow horizontal. */
}

/* Track: contiene los 3 frames apilados verticalmente, define la altura total
   El stage interno es sticky y se queda mientras los frames pasan por encima */
.cinema-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === Stage sticky (lado izquierdo en desktop) ===
   Trick: el stage en sí NO es sticky; es alto y dentro tiene un wrapper
   sticky que se queda pegado mientras el grid hermano (.cinema-frames) scrollea */
.cinema-stage {
  position: relative;
}

.cinema-stage-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.cinema-robot {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 600 / 648;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Subtle scale shift driven by data-frame */
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
              filter 0.6s ease;
}

.cinema-robot picture,
.cinema-robot img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.cinema-robot-glow {
  position: absolute;
  inset: -10% -15%;
  background:
    radial-gradient(ellipse 50% 55% at 50% 50%, rgba(182, 255, 60, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 70%);
  filter: blur(20px);
  z-index: 1;
  opacity: 0.85;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Estados del robot por frame activo (animaciones sutiles) */
.cinema-track[data-active-frame="01"] .cinema-robot { transform: scale(1.0); filter: brightness(1); }
.cinema-track[data-active-frame="02"] .cinema-robot { transform: scale(1.04); filter: brightness(1.06); }
.cinema-track[data-active-frame="03"] .cinema-robot { transform: scale(1.06); filter: brightness(1.12); }

.cinema-track[data-active-frame="03"] .cinema-robot-glow {
  opacity: 1;
  transform: scale(1.08);
}

/* === Indicador de progreso lateral === */
.cinema-progress {
  position: absolute;
  top: 80px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.cinema-progress-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cinema-progress-label [data-cinema-current] {
  color: var(--lime);
  font-weight: 600;
}

.cinema-progress-bar {
  width: 4px;
  height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.cinema-progress-fill {
  width: 100%;
  background: var(--lime);
  border-radius: 2px;
  height: 0%;
  transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 12px rgba(182, 255, 60, 0.4);
}

.cinema-progress-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* === Frames de texto (lado derecho en desktop) === */
.cinema-frames {
  display: flex;
  flex-direction: column;
}

.cinema-frame {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 0;
  /* Cada frame opacidad/translación basada en visibilidad */
  opacity: 0.25;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.cinema-frame.is-active {
  opacity: 1;
  transform: translateY(0);
}

.cinema-frame-inner {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cinema-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--lime);
  text-transform: uppercase;
}

.cinema-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--text-primary);
}

.cinema-title em {
  font-style: normal;
  color: var(--lime);
}

.cinema-title-mute {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
}

.cinema-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.cinema-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 16px 24px;
  background: var(--lime);
  color: var(--bg-base);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  align-self: flex-start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cinema-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182, 255, 60, 0.3);
}

/* === Mobile (< 900px): stack vertical, sin sticky === */
@media (max-width: 900px) {
  .cinema-track {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  /* Stage en mobile: aparece al inicio, fluye normal sin sticky */
  .cinema-stage-inner {
    position: relative;
    height: auto;
    padding: 60px 0 20px;
  }

  .cinema-robot {
    max-width: 320px;
  }

  /* Esconder progreso lateral en mobile (no aporta) */
  .cinema-progress {
    display: none;
  }

  /* Frames: altura natural, no min-height: 100vh */
  .cinema-frame {
    min-height: auto;
    padding: 40px 0;
    opacity: 1; /* Sin animación scroll-driven en mobile */
    transform: none;
  }

  .cinema-frame:not(:last-child) {
    border-bottom: 0.5px solid var(--border-subtle);
  }

  .cinema-title {
    font-size: clamp(32px, 8vw, 44px);
  }

  .cinema-desc {
    font-size: 15px;
  }
}

/* Reduced motion: sin animación scroll-driven, solo opacidad uniforme */
@media (prefers-reduced-motion: reduce) {
  .cinema-frame,
  .cinema-robot,
  .cinema-robot-glow {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   FIX scroll horizontal mobile — por elemento culpable
   (sin overflow-x: hidden global porque rompe sticky del cinema)
   ============================================================ */
@media (max-width: 768px) {
  /* nav-drawer: fixed pero su width se calcula desde inset:0 = todo el viewport.
     Asegurar que width no exceda viewport real */
  .nav-drawer {
    max-width: 100vw;
    overflow: hidden;
  }

  /* Marquee section: contenedor blindado para que los logo-pills no contribuyan al scroll */
  .marquee-section {
    overflow: hidden;
    max-width: 100vw;
  }

  .marquee-track {
    overflow: hidden;
    max-width: 100%;
  }

  /* Sección hero: ya tiene overflow: hidden pero re-aseguramos en mobile */
  .hero {
    max-width: 100vw;
    overflow: hidden;
  }

  /* Sección CTA y testimonials: ya tienen overflow: hidden, re-aseguramos */
  .section-cta,
  .section-testimonials {
    max-width: 100vw;
    overflow: hidden;
  }

  /* Cinema NO debe tener overflow: hidden porque rompe el sticky.
     En mobile no hay sticky de todos modos */
  .section-cinema {
    overflow: visible;
  }
}

/* ============================================================
   HERO CINEMATIC — replicación del repo iron-man con 240 frames
   ============================================================ */

/* === HERO MOTHER overrides === */
/* El hero ya existe, le decimos que sea full-screen sin padding interno */
.hero {
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  background: var(--bg-base);
}

/* Topbar y nav-drawer flotando encima del cinematic */
.hero .topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 13, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

/* === Cinematic container with sticky scroll === */
.hero-cinematic {
  position: relative;
  /* Altura del scroll: 1200vh para 240 frames cómodos.
     En mobile reducimos a 400vh (3x más rápido como pediste). */
  height: 1200vh;
  background: var(--bg-base);
}

@media (max-width: 768px) {
  .hero-cinematic {
    height: 400vh; /* X3 más rápido en mobile */
  }
}

/* sticky stage: ocupa todo el viewport mientras dura el scroll */
.hero-cinematic-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #0a0a0b; /* fondo casi negro detrás del canvas */
}

/* === Canvas full-screen === */
.cinema-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* === Vignette para feel cine === */
.cinema-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 10%, transparent 30%, rgba(10, 10, 11, 0.45) 70%, rgba(10, 10, 11, 0.85) 100%);
  z-index: 1;
}

/* === Brackets HUD esquinas === */
.hud-bracket {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  color: var(--lime);
  z-index: 5;
}
.hud-bracket::before,
.hud-bracket::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.hud-bracket::before { width: 1px; height: 100%; }
.hud-bracket::after { width: 100%; height: 1px; }

.hud-bracket.tl { top: 80px; left: 24px; }
.hud-bracket.tl::before { left: 0; top: 0; }
.hud-bracket.tl::after { left: 0; top: 0; }
.hud-bracket.tr { top: 80px; right: 24px; }
.hud-bracket.tr::before { right: 0; top: 0; }
.hud-bracket.tr::after { right: 0; top: 0; }
.hud-bracket.bl { bottom: 56px; left: 24px; }
.hud-bracket.bl::before { left: 0; bottom: 0; }
.hud-bracket.bl::after { left: 0; bottom: 0; }
.hud-bracket.br { bottom: 56px; right: 24px; }
.hud-bracket.br::before { right: 0; bottom: 0; }
.hud-bracket.br::after { right: 0; bottom: 0; }

@media (min-width: 768px) {
  .hud-bracket.tl { top: 96px; left: 40px; }
  .hud-bracket.tr { top: 96px; right: 40px; }
  .hud-bracket.bl { bottom: 64px; left: 40px; }
  .hud-bracket.br { bottom: 64px; right: 40px; }
}

/* === Top-left: Telemetry === */
.cinema-telemetry {
  position: absolute;
  top: 80px; left: 24px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
.cinema-telemetry .cinema-line {
  width: 32px;
  height: 1px;
  background: rgba(182, 255, 60, 0.6);
}
.cinema-telemetry span:not(.cinema-line) {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .cinema-telemetry { top: 96px; left: 40px; }
}

/* === Top-right: CPU LOAD === */
.cinema-arc {
  position: absolute;
  top: 80px; right: 24px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.cinema-arc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.cinema-arc-value {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--lime);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.cinema-arc-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(182, 255, 60, 0.85);
  animation: cinema-pulse 1.6s ease-in-out infinite;
}
@keyframes cinema-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (min-width: 768px) {
  .cinema-arc { top: 96px; right: 40px; }
}

/* === Hero text bottom-left === */
.cinema-hero-text {
  position: absolute;
  inset: auto 24px 96px 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: opacity 80ms linear;
}
.cinema-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 0.5px solid rgba(182, 255, 60, 0.4);
  border-radius: 999px;
  background: rgba(182, 255, 60, 0.05);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--lime);
  text-transform: uppercase;
}
.cinema-hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(182, 255, 60, 0.85);
}
.cinema-hero-title {
  max-width: 14ch;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
}
.cinema-hero-title em {
  font-style: normal;
  color: var(--lime);
}
.cinema-hero-desc {
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
@media (min-width: 768px) {
  .cinema-hero-text { inset: auto 48px 112px 48px; gap: 24px; }
  .cinema-hero-desc { font-size: 16px; }
}

/* === Big secondary text === */
.cinema-big-text {
  position: absolute;
  bottom: 96px;
  left: 24px;
  z-index: 10;
  pointer-events: none;
  max-width: 58%;
  display: none; /* solo desktop */
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transition: opacity 80ms linear;
}
@media (min-width: 768px) {
  .cinema-big-text { display: flex; bottom: 112px; left: 48px; }
}
.cinema-big-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--lime);
  text-transform: uppercase;
}
.cinema-big-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(182, 255, 60, 0.85);
}
.cinema-big-title {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-size: clamp(64px, 9.5vw, 144px);
  margin: 0;
}
.cinema-big-title em {
  font-style: normal;
  color: var(--lime);
}
.cinema-big-meta {
  max-width: 36ch;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin: 0;
}

/* === Beat cards === */
.beat-card {
  position: absolute;
  width: 420px;
  max-width: 90vw;
  z-index: 20;
  padding: 24px;
  background: rgba(20, 20, 22, 0.82);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  pointer-events: none;
}
.beat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.beat-card.pos-top { top: 22%; right: 24px; }
.beat-card.pos-mid { top: 50%; right: 24px; transform: translateY(-50%) translateY(20px); }
.beat-card.pos-mid.is-visible { transform: translateY(-50%); }
.beat-card.pos-bottom { bottom: 96px; right: 24px; }

@media (min-width: 768px) {
  .beat-card.pos-top { right: 48px; }
  .beat-card.pos-mid { right: 48px; }
  .beat-card.pos-bottom { right: 48px; bottom: 112px; }
}

@media (max-width: 768px) {
  .beat-card {
    inset: auto 24px;
    bottom: auto;
    top: 33%;
    width: auto;
    max-width: none;
    transform: translateY(16px);
  }
  .beat-card.pos-top, .beat-card.pos-mid, .beat-card.pos-bottom {
    top: 33%; right: 24px; left: 24px; bottom: auto;
  }
  .beat-card.is-visible { transform: translateY(0); }
}

.beat-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--lime);
  text-transform: uppercase;
}
.beat-card-quote {
  margin: 12px 0 0 0;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.beat-card-attribution {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.beat-card-speaker {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.beat-card-context {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

/* === Outro CTA === */
.cinema-outro-cta {
  position: absolute;
  bottom: 96px;
  right: 24px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  opacity: 0;
  transition: opacity 80ms linear, transform 80ms linear;
}
.cinema-outro-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--lime);
  text-transform: uppercase;
}
.cinema-outro-cta a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.cinema-outro-cta a:hover {
  background: rgba(182, 255, 60, 0.12);
  border-color: var(--lime);
}
@media (min-width: 768px) {
  .cinema-outro-cta { bottom: 128px; right: 48px; }
}

/* === Footer progress bar === */
.cinema-footer {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 10;
  pointer-events: none;
}
.cinema-footer-line {
  margin: 0 24px 12px 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.cinema-footer-fill {
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--lime);
  transition: transform 80ms linear;
  box-shadow: 0 0 8px rgba(182, 255, 60, 0.85);
}
.cinema-footer-meta {
  margin: 0 24px 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.cinema-footer-meta .seq { color: var(--lime); }

@media (max-width: 600px) {
  .cinema-footer-meta .diagnostic { display: none; }
}
@media (min-width: 768px) {
  .cinema-footer-line { margin: 0 40px 12px 40px; }
  .cinema-footer-meta { margin: 0 40px 16px 40px; }
}

/* === Loader inicial === */
.cinema-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg-base);
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.cinema-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.cinema-loader-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 0.5px solid rgba(182, 255, 60, 0.4);
  border-radius: 999px;
  background: rgba(182, 255, 60, 0.05);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--lime);
  text-transform: uppercase;
}
.cinema-loader-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(182, 255, 60, 0.85);
}
.cinema-loader-bar {
  width: 240px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.cinema-loader-fill {
  height: 100%;
  background: var(--lime);
  width: 0%;
  transition: width 0.15s ease-out;
}
.cinema-loader-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* === Ocultar elementos residuales del hero antiguo === */
.hero > .hero-mega,
.hero > .vertical-text,
.hero > .hero-tagline,
.hero > .hero-stage,
.hero > .scroll-hint {
  display: none !important;
}

/* === Sticky context fix: el .hero contenedor no debe limitar el scroll === */
.hero {
  position: relative !important;
}
