/* ==========================================================================
   BACKSLASH — FUSIÓN (back5)
   Base: back4-newProyect (logos finales, paleta obsidiana + carmesí).
   Se suman animaciones de las propuestas anteriores (ver bloque FUSIÓN al final).
   ========================================================================== */

:root {
  /* Color Palette: Obsidian Dark Luxury & Backslash Crimson */
  --bg-deep: #08070a;
  --bg-surface: #100f15;
  --bg-surface-2: #171520;
  --bg-surface-3: #1f1d2b;
  --bg-pill: rgba(16, 15, 21, 0.78);
  
  --red: #e80006;
  --red-bright: #ff2b32;
  --red-glow: rgba(232, 0, 6, 0.28);
  --red-faint: rgba(232, 0, 6, 0.08);

  --text-pure: #ffffff;
  --text-high: #f5f3f1;
  --text-muted: #9e9aa8;
  --text-faint: #5d5968;

  --border-subtle: rgba(245, 243, 241, 0.07);
  --border-medium: rgba(245, 243, 241, 0.14);
  --border-strong: rgba(245, 243, 241, 0.24);

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-w: 1200px;
  --header-h: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transitions & Easings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.25, 1, 0.5, 1);
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-mid: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto; /* Handled smoothly by Lenis */
  background-color: var(--bg-deep);
  color: var(--text-high);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-high);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

body.loading {
  overflow: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-pure);
  line-height: 1.1;
}

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   PRELOADER (Eszter Bial inspiration: 8 vertical shutter columns + counter)
   ========================================================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.loader-curtain {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
}

.loader-col {
  flex: 1;
  height: 100%;
  background: #0d0c11;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-col:last-child {
  border-right: none;
}

.loader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out-expo);
}

.loader-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loader-logo-icon {
  width: 38px;
  height: 38px;
  color: var(--text-high);
}

.loader-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--text-pure);
}

.loader-wordmark .accent {
  color: var(--red);
}

.loader-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loader-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.loader-counter {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  color: var(--text-high);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Preloader Finish State */
.loader.finished .loader-content {
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
}

.loader.finished .loader-col {
  transform: translateY(-100%);
}

.loader.finished {
  pointer-events: none;
}

/* ==========================================================================
   AMBIENT GRID & CURSOR FOLLOW LIGHT
   ========================================================================== */

.ambient-grid {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.04) 0%, 
    rgba(255, 255, 255, 0.02) 50%, 
    rgba(255, 255, 255, 0.04) 100%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(232, 0, 6, 0.065) 0%, rgba(232, 0, 6, 0.015) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ==========================================================================
   FLOATING PILL NAVIGATION (BDSN & Eszter Bial inspired)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 20px 0;
  transition: transform 0.4s var(--ease-out-expo), padding 0.3s ease;
  pointer-events: none;
}

.nav-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: center;
}

.nav-pill {
  pointer-events: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 10px 24px;
  background: var(--bg-pill);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.nav-pill:hover {
  border-color: var(--border-medium);
}

.brand-link {
  display: flex;
  align-items: center;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}

.brand-link:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.brand-img {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--trans-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--trans-fast), left var(--trans-fast);
  border-radius: 2px;
}

.nav-item:hover {
  color: var(--text-pure);
}

.nav-item:hover::after {
  width: 100%;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 16px;
  height: 2px;
  background: var(--text-high);
  border-radius: 2px;
  transition: transform var(--trans-fast), width var(--trans-fast);
}

/* ==========================================================================
   BUTTONS (Magnetic & Radial Follow Glow)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.02rem;
}

.btn-xl {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn:active {
  transform: scale(0.96);
}

/* Primary Button */
.btn-primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(232, 0, 6, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), var(--red-bright), var(--red) 75%);
  opacity: 0;
  transition: opacity var(--trans-mid);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(232, 0, 6, 0.55);
}

/* Ghost Button */
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-high);
  border-color: var(--border-medium);
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity var(--trans-mid);
}

.btn-ghost:hover::before {
  opacity: 1;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MOBILE DRAWER (Fullscreen slide)
   ========================================================================== */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 7, 10, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.4s ease, visibility 0.6s;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.drawer-links {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-pure);
  transition: color var(--trans-fast), transform var(--trans-fast);
}

.drawer-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--red);
}

.drawer-item:hover {
  color: var(--red-bright);
  transform: translateX(8px);
}

.drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-email {
  font-family: var(--font-mono);
  color: var(--text-high);
  font-size: 1.05rem;
}

.drawer-meta {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 80px;
  position: relative;
  z-index: 2;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-subtag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--red-bright);
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: var(--red-faint);
  border: 1px solid rgba(232, 0, 6, 0.2);
  border-radius: var(--radius-sm);
}

.mono-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-medium);
}

.mono-city {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* Staggered Mask Lines */
.hero-title {
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: 28px;
}

.mask-line {
  overflow: hidden;
  display: block;
}

.mask-inner {
  display: block;
  transform: translateY(115%);
  will-change: transform;
  transition: transform 1s var(--ease-out-expo);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #b8b3c3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--red-bright);
  -webkit-text-fill-color: var(--red-bright);
}

.hero-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual: Geometric Backslash SVG Mark & Rotating Badge */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 36px rgba(232, 0, 6, 0.22));
}

.hero-bracket-tr, .hero-bracket-bl {
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease-out-expo);
}

.hero-slash-poly {
  transform-origin: center;
  animation: slashFloat 6s ease-in-out infinite alternate;
}

@keyframes slashFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(1deg); }
}

/* Rotating Circular Badge (Eszter Bial style) */
.circle-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: border-color var(--trans-fast), transform var(--trans-fast);
}

.circle-badge:hover {
  border-color: var(--red);
}

.circle-badge-spin {
  position: absolute;
  inset: 0;
  animation: spinSlow 18s linear infinite;
}

.circle-badge:hover .circle-badge-spin {
  animation-play-state: paused;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.circle-badge-svg {
  width: 100%;
  height: 100%;
}

.circle-badge-svg text {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9.8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.circle-badge-center {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(232, 0, 6, 0.4);
  transition: transform var(--trans-fast);
}

.circle-badge:hover .circle-badge-center {
  transform: scale(1.12);
}

/* Scroll Hint */
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-left: 28px;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--red-bright);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

/* ==========================================================================
   CYCLE STICKY PIN SECTION (BDSN Morphing word sequence)
   ========================================================================== */

/* ==========================================================================
   CYCLE STICKY PIN SECTION (BDSN & Eszter Bial inspired dynamic word morph)
   ========================================================================== */

.cycle-section {
  position: relative;
  height: 260vh;
  min-height: 1600px;
  background-color: var(--cycle-bg, var(--bg-deep));
  transition: background-color 0.9s var(--ease-out-expo);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  contain: paint;
}

/* Fondo por fase: Diseñamos (obsidiana) -> Construimos (carmesí profundo) -> Lanzamos (índigo noche)
   (Con el motor scrub, el color se interpola continuamente por JS; esto queda como fallback) */
.cycle-section[data-stage="0"] { --cycle-bg: #08070a; }
.cycle-section[data-stage="1"] { --cycle-bg: #2b0709; }
.cycle-section[data-stage="2"] { --cycle-bg: #0d1030; }

/* --------------------------------------------------------------------------
   MODO SCRUB HORIZONTAL (activado por JS con la clase .is-scrub)
   El scroll vertical desliza las 3 fases en X y el fondo se morfeo por JS.
   -------------------------------------------------------------------------- */
.cycle-section.is-scrub {
  transition: none; /* el color lo controla el render por frame */
  overflow: hidden;
}

.cycle-section.is-scrub .cycle-display {
  display: flex;
  align-items: center;
  min-height: 340px;
  width: 100%;
  transform: translate3d(0, 0, 0); /* movido por scroll scrub */
  will-change: transform;
}

.cycle-section.is-scrub .cycle-word-item {
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  width: 100%;
  opacity: 1; /* la opacidad la calcula JS cada frame */
  visibility: visible;
  transform: none;
  transition: none;
  pointer-events: auto;
}

.cycle-section.is-scrub .cycle-word-item .cycle-word-text {
  will-change: transform;
  transition: none; /* el parallax horizontal lo controla JS */
}

.cycle-section.is-scrub .cycle-word-desc,
.cycle-section.is-scrub .cycle-word-chips {
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .cycle-section.is-scrub .cycle-display {
    transform: none !important;
  }
}

.cycle-sticky-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
}

.cycle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 980px;
  padding: 0 24px;
}

/* Top Meta & Interactive Tabs */
.cycle-top-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.cycle-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cycle-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
}

.cycle-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--trans-fast);
  cursor: pointer;
}

.cycle-tab .tab-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.6;
}

.cycle-tab:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.06);
}

.cycle-tab.active {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 4px 20px rgba(232, 0, 6, 0.45);
  border-color: rgba(255, 255, 255, 0.15);
}

.cycle-tab.active .tab-num {
  opacity: 0.9;
}

/* Display & Word Items */
.cycle-display {
  position: relative;
  min-height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cycle-word-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), visibility 0s linear 0.7s;
  pointer-events: none;
}

.cycle-word-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), visibility 0s linear;
  pointer-events: auto;
}

.cycle-word-heading {
  cursor: pointer;
  display: inline-block;
  transition: transform var(--trans-fast);
}

.cycle-word-heading:hover {
  transform: scale(1.02);
}

.cycle-word-text {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.5vw, 7.5rem);
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.cycle-word-text .dot {
  color: var(--red-bright);
  text-shadow: 0 0 24px rgba(232, 0, 6, 0.6);
}

.cycle-word-desc {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 620px;
  margin: 22px auto 0;
  line-height: 1.55;
}

.cycle-word-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.cycle-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-high);
  transition: border-color var(--trans-fast), background-color var(--trans-fast);
}

.cycle-chip:hover {
  border-color: var(--red);
  background: rgba(232, 0, 6, 0.1);
}

/* Footer Progress Meta */
.cycle-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.cycle-progress-track {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.cycle-progress-fill {
  width: 33.333%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  box-shadow: 0 0 10px var(--red-bright);
  transition: width 0.3s var(--ease-out-expo);
}

.cycle-guide {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cycle-guide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red-bright);
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cycle-guide-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* ==========================================================================
   GENERIC SECTION HEADERS
   ========================================================================== */

.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-tag-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--red-bright);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.section-desc {
  color: var(--text-muted);
  max-width: 380px;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ==========================================================================
   SERVICIOS SECTION (Cards with radial spotlight & 3D tilt)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: border-color var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast);
  perspective: 1000px;
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Card Glow Spotlight */
.card-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 0, 6, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.service-feature {
  grid-row: span 2;
  background: linear-gradient(170deg, var(--bg-surface-2) 0%, var(--bg-surface) 65%);
  min-height: 480px;
  border-color: var(--border-medium);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--red-bright);
}

.card-icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-high);
  transition: transform var(--trans-fast), background-color var(--trans-fast);
}

.service-card:hover .card-icon-pill {
  transform: scale(1.1);
  background: rgba(232, 0, 6, 0.15);
  color: var(--red-bright);
}

.card-title {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.service-feature .card-title {
  font-size: 2.1rem;
}

.card-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   PROCESO SECTION (BDSN Progress Line Timeline)
   ========================================================================== */

.process-section {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.process-spine-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  box-shadow: 0 0 12px var(--red);
  transition: height 0.1s linear;
}

.process-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 74px 1.1fr 1.6fr;
  align-items: center;
  gap: 32px;
  padding: 42px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform var(--trans-fast), background-color var(--trans-fast);
}

.process-step:first-child {
  border-top: 1px solid var(--border-subtle);
}

.step-marker {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), transform var(--trans-fast);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.process-step.active .step-marker {
  border-color: var(--red);
  box-shadow: 0 0 24px rgba(232, 0, 6, 0.4);
  transform: scale(1.06);
}

.process-step.active .step-num {
  color: var(--red-bright);
}

.step-heading h3 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.step-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
}

.step-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   POR QUÉ NOSOTROS SECTION
   ========================================================================== */

.why-section {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  padding: 40px 32px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: border-color var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast);
}

.why-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.why-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(232, 0, 6, 0.08);
  border: 1px solid rgba(232, 0, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-bright);
  margin-bottom: 28px;
  transition: transform var(--trans-fast), background var(--trans-fast);
}

.why-card:hover .why-icon-box {
  transform: scale(1.1);
  background: rgba(232, 0, 6, 0.18);
}

.why-icon-box svg {
  width: 26px;
  height: 26px;
}

.why-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
  line-height: 1.25;
}

.why-body {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   MARQUEE SECTION (Smooth Infinite Loop)
   ========================================================================== */

.marquee-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  overflow: hidden;
}

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

.marquee-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.marquee-outer {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: scrollMarquee 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: color var(--trans-fast);
}

.marquee-item:hover {
  color: var(--text-high);
}

.star-accent {
  color: var(--red);
  font-size: 1rem;
}

/* ==========================================================================
   CTA SECTION (Centered Aura & Direct Actions)
   ========================================================================== */

.cta-section {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  padding: 100px 0;
}

.cta-panel {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 32px;
  padding: 88px 48px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.cta-glow-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 0, 6, 0.28) 0%, rgba(232, 0, 6, 0.06) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.cta-overhead-tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--red-bright);
  display: inline-block;
  margin-bottom: 20px;
}

.cta-headline {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  max-width: 740px;
  margin: 0 auto 20px;
  line-height: 1.1;
}

.cta-sub {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 520px;
  margin: 0 auto 40px;
}

.cta-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-email-wrapper {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.cta-email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  transition: border-color var(--trans-fast), background var(--trans-fast);
}

.cta-email-link:hover {
  border-color: var(--red);
  background: rgba(232, 0, 6, 0.08);
}

.email-icon {
  color: var(--red-bright);
  display: flex;
}

.email-text {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  color: var(--text-high);
}

.email-copy-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: background var(--trans-fast), color var(--trans-fast);
}

.email-copy-btn:hover {
  background: var(--red);
  color: #fff;
}

.copy-toast {
  position: absolute;
  bottom: -32px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #10b981;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  background: var(--bg-deep);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  height: 24px;
  width: auto;
}

.footer-statement {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: var(--text-pure);
}

.footer-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.time-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ==========================================================================
   LIGHT SECTIONS (Alternating Editorial Ivory Theme)
   ========================================================================== */

.section-light {
  background-color: #f6f4f1 !important;
  color: #141318 !important;
  border-top: 1px solid rgba(20, 19, 24, 0.08) !important;
  border-bottom: 1px solid rgba(20, 19, 24, 0.08) !important;
  position: relative;
  z-index: 2;
}

.section-light .section-title {
  color: #141318 !important;
}

.section-light .section-desc {
  color: #5d5968 !important;
}

.section-light .section-tag {
  color: var(--red) !important;
}

/* Light Service Cards */
.section-light .service-card {
  background: #ffffff !important;
  border: 1px solid rgba(20, 19, 24, 0.09) !important;
  box-shadow: 0 2px 8px rgba(20, 19, 24, 0.03), 0 12px 28px rgba(20, 19, 24, 0.06);
}

.section-light .service-card:hover {
  border-color: rgba(20, 19, 24, 0.22) !important;
  box-shadow: 0 18px 42px rgba(20, 19, 24, 0.1) !important;
}

.section-light .service-card .card-title {
  color: #141318 !important;
}

.section-light .service-card .card-body {
  color: #5d5968 !important;
}

.section-light .service-card .card-badge {
  color: var(--red) !important;
}

.section-light .service-card .card-icon-pill {
  background: rgba(20, 19, 24, 0.04) !important;
  border-color: rgba(20, 19, 24, 0.08) !important;
  color: #141318 !important;
}

.section-light .service-card:hover .card-icon-pill {
  background: rgba(232, 0, 6, 0.12) !important;
  color: var(--red) !important;
}

.section-light .service-feature {
  background: linear-gradient(170deg, #f0ede8 0%, #ffffff 65%) !important;
  border-color: rgba(20, 19, 24, 0.14) !important;
}

.section-light .card-glow {
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 0, 6, 0.10), transparent 70%) !important;
}

.section-light .pill-tag {
  background: rgba(20, 19, 24, 0.04) !important;
  border-color: rgba(20, 19, 24, 0.1) !important;
  color: #5d5968 !important;
}

/* Light Why Us Cards */
.section-light .why-card {
  background: #ffffff !important;
  border: 1px solid rgba(20, 19, 24, 0.09) !important;
  box-shadow: 0 2px 8px rgba(20, 19, 24, 0.03), 0 12px 28px rgba(20, 19, 24, 0.06);
}

.section-light .why-card:hover {
  border-color: rgba(20, 19, 24, 0.22) !important;
  box-shadow: 0 18px 42px rgba(20, 19, 24, 0.1) !important;
}

.section-light .why-title {
  color: #141318 !important;
}

.section-light .why-body {
  color: #5d5968 !important;
}

.section-light .why-icon-box {
  background: rgba(232, 0, 6, 0.07) !important;
  border: 1px solid rgba(232, 0, 6, 0.18) !important;
  color: var(--red) !important;
}

/* CTA Section Light Wrapper with dark floating panel */
.cta-section.section-light {
  background-color: #f6f4f1 !important;
}

.cta-section.section-light .cta-panel {
  background: #111016 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35) !important;
}

/* ==========================================================================
   SCROLL REVEALS & ANIMATIONS
   ========================================================================== */

.reveal-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    order: -1;
    justify-content: flex-start;
  }
  .hero-mark-wrapper {
    width: 220px;
    height: 220px;
  }
  .circle-badge {
    width: 110px;
    height: 110px;
    bottom: -10px;
    right: -10px;
  }
  .circle-badge-svg text {
    font-size: 11px;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-feature {
    grid-column: span 2;
    grid-row: auto;
    min-height: 360px;
  }
  .process-step {
    grid-template-columns: 64px 1fr;
    gap: 20px;
  }
  .step-content {
    grid-column: 2 / -1;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-meta-col {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .nav-menu, .status-badge {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .section {
    padding: 80px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-feature {
    grid-column: auto;
    min-height: 280px;
  }
  .process-spine {
    left: 24px;
  }
  .step-marker {
    width: 50px;
    height: 50px;
  }
  .step-num {
    font-size: 0.95rem;
  }
  .process-step {
    grid-template-columns: 50px 1fr;
  }
  .cta-panel {
    padding: 56px 24px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .loader {
    display: none !important;
  }
  .mask-inner {
    transform: none !important;
  }
  .reveal-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   ==========================================================================
   FUSIÓN — componentes y animaciones sumadas desde las otras propuestas
   ==========================================================================
   ========================================================================== */

html { scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--red); color: #fff; font-weight: 600;
  transform: translateY(-160%); transition: transform var(--trans-fast);
}
.skip-link:focus { transform: translateY(0); }

/* --- Barra de progreso de lectura (arriba) --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 400; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  box-shadow: 0 0 10px var(--red);
  pointer-events: none;
}

/* --- Ruido de película muy sutil --- */
.noise-overlay {
  position: fixed; inset: 0; z-index: 500; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Cursor propio: punto + anillo con etiqueta (solo puntero fino) --- */
.cursor-dot, .cursor-ring { display: none; }
body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring {
  display: flex; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9000;
  border-radius: 50%; will-change: transform;
}
body.has-custom-cursor .cursor-dot {
  width: 6px; height: 6px; background: var(--red-bright);
}
body.has-custom-cursor .cursor-ring {
  width: 36px; height: 36px; border: 1px solid rgba(245, 243, 241, 0.35);
  align-items: center; justify-content: center;
  transition: width .35s var(--ease-out-expo), height .35s var(--ease-out-expo),
              background-color .35s ease, border-color .35s ease;
  mix-blend-mode: difference;
}
body.has-custom-cursor .cursor-ring.is-active {
  width: 64px; height: 64px; border-color: transparent; background: rgba(255, 255, 255, 0.9);
}
body.has-custom-cursor .cursor-ring.has-label {
  width: 86px; height: 86px; background: var(--red); border-color: transparent; mix-blend-mode: normal;
}
.cursor-label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s ease;
}
.cursor-ring.has-label .cursor-label { opacity: 1; }

/* --- Header: se esconde al bajar y vuelve al subir --- */
.site-header.is-hidden { transform: translateY(-120%); }
.site-header.is-compact { padding: 12px 0; }
.nav-item.active { color: var(--text-pure); }
.nav-item.active::after { width: 100%; left: 0; }
.brand-img { height: 30px; }
.btn-slash {
  font-family: var(--font-display); font-weight: 700; display: inline-block;
  transition: transform var(--trans-mid);
}
.btn:hover .btn-slash { transform: rotate(-20deg) scale(1.2); }

/* --- Preloader: el isotipo se dibuja --- */
.loader-logo-icon { width: 46px; height: 46px; }
.loader .draw-path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawStroke 1s var(--ease-out-expo) .15s forwards; }
.loader .slash { transform-origin: 60px 60px; transform: scaleY(0); animation: slashGrow .7s var(--ease-out-expo) .55s forwards; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes slashGrow { to { transform: scaleY(1); } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section { overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 45%, rgba(232, 0, 6, 0.10), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg-deep) 100%);
}
.hero-container { position: relative; z-index: 1; }
.hero-title .mask-line { padding-bottom: 0.06em; }
.rotator { display: inline-block; transition: opacity .35s ease, transform .35s var(--ease-out-expo), filter .35s ease; }
.rotator.is-out { opacity: 0; transform: translateY(-30%); filter: blur(6px); }
.rotator.is-in { opacity: 0; transform: translateY(30%); filter: blur(6px); transition: none; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.hero-tags li {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle); color: var(--text-muted); background: rgba(255,255,255,.02);
  transition: border-color var(--trans-fast), color var(--trans-fast);
}
.hero-tags li:hover { border-color: var(--red); color: var(--text-high); }

.hero-mark-wrapper { width: 340px; height: 340px; transition: transform .6s var(--ease-out-expo); will-change: transform; }
.hero-mark-svg { position: relative; z-index: 1; }
.hero-bracket { stroke-dasharray: 120; stroke-dashoffset: 120; }
.hero-slash-poly { opacity: 0; }
body.hero-ready .hero-bracket { animation: drawStroke 1.4s var(--ease-out-expo) forwards; }
body.hero-ready .hero-bracket-bl { animation-delay: .15s; }
body.hero-ready .hero-slash-poly { animation: slashIn .9s var(--ease-out-expo) .35s forwards, slashFloat 6s ease-in-out 1.3s infinite alternate; }
@keyframes slashIn { from { opacity: 0; transform: translate(-18px, -22px); } to { opacity: 1; transform: none; } }

.hero-orbit {
  position: absolute; inset: -14%; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  animation: spinSlow 30s linear infinite;
}
.hero-orbit::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px dashed rgba(232, 0, 6, 0.25);
}
.orbit-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 16px var(--red); }
.orbit-node.n1 { top: 6%; left: 48%; }
.orbit-node.n2 { right: 4%; top: 55%; width: 6px; height: 6px; background: var(--text-high); box-shadow: 0 0 12px rgba(255,255,255,.6); }
.orbit-node.n3 { bottom: 12%; left: 16%; }
.circle-badge { z-index: 2; }

.hero-scroll-hint { position: relative; z-index: 1; width: max-content; }
.hero-scroll-hint:hover .scroll-text { color: var(--text-high); }

/* ==========================================================================
   MARQUEE QUE REACCIONA A LA VELOCIDAD DEL SCROLL
   ========================================================================== */
.velocity-marquee {
  position: relative; z-index: 2; overflow: hidden;
  padding: 26px 0; background: var(--red);
  border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(0,0,0,.2);
  transform: rotate(-1.4deg) scale(1.03); margin: 10px 0 30px;
}
.vm-track { display: flex; width: max-content; will-change: transform; }
.vm-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex-shrink: 0; }
.vm-group span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 3rem);
  letter-spacing: -0.02em; color: #fff; white-space: nowrap; line-height: 1;
}
.vm-group .vm-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.9); }
.vm-group .vm-sep { color: #0b0a0e; font-size: clamp(1.8rem, 4vw, 3.3rem); }

/* ==========================================================================
   CICLO (ajustes)
   ========================================================================== */
.cycle-viewport { width: 100%; }
.cycle-section { border-top: none; }

/* ==========================================================================
   TITULARES QUE SE REVELAN PALABRA A PALABRA
   ========================================================================== */
.split-words .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .sw > span {
  display: inline-block; transform: translateY(105%);
  transition: transform .9s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.split-words.in-view .sw > span { transform: none; }

/* ==========================================================================
   SERVICIOS — BENTO
   ========================================================================== */
.bento-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bento-grid .service-card { min-height: 250px; transition: border-color var(--trans-fast), box-shadow var(--trans-fast), transform .5s var(--ease-out-expo), opacity .8s var(--ease-out-expo); }
.bento-grid .service-feature { grid-column: span 2; grid-row: span 2; min-height: 520px; }
.bento-grid .service-card:last-child { grid-column: span 4; min-height: 0; flex-direction: row; align-items: center; gap: 32px; }
.bento-grid .service-card:last-child .card-top { margin: 0; flex-direction: row-reverse; gap: 16px; }
.bento-grid .service-card:last-child .card-bottom { display: flex; align-items: baseline; gap: 28px; flex: 1; }
.bento-grid .service-card:last-child .card-title { margin: 0; white-space: nowrap; }
.service-card .card-title { font-size: 1.4rem; }

.mini-terminal {
  margin: 8px 0 28px; border-radius: 14px; overflow: hidden;
  background: #0f0e14; border: 1px solid rgba(20,19,24,.2);
  box-shadow: 0 18px 40px rgba(20,19,24,.18);
}
.mt-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mt-head span { width: 9px; height: 9px; border-radius: 50%; background: #3a3844; }
.mt-head span:first-child { background: var(--red); }
.mt-head em { margin-left: 8px; font-style: normal; font-family: var(--font-mono); font-size: .7rem; color: #77737f; }
.mt-body {
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.7; color: #d9d6dd;
  padding: 16px 18px; min-height: 170px; white-space: pre-wrap; margin: 0;
}
.mt-body .k { color: #ff5a5f; } .mt-body .s { color: #9fe0b6; } .mt-body .c { color: #6c6877; } .mt-body .p { color: #c9b8ff; }
.mt-body .caret { display: inline-block; width: 7px; height: 1em; background: var(--red-bright); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.pipeline { margin: 4px 0 20px; }
.pipeline-row { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; color: #5d5968; margin-bottom: 10px; }
.pl-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulseGreen 2s infinite; }
.pipeline-bar { height: 5px; border-radius: 5px; background: rgba(20,19,24,.08); overflow: hidden; }
.pipeline-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-bright)); border-radius: 5px; transition: width 1.6s var(--ease-out-expo) .4s; }
.service-card.in-view .pipeline-bar span { width: 72%; }

/* ==========================================================================
   PROCESO — cielo con platillos detrás
   ========================================================================== */
.process-section { overflow: hidden; }
#processCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.process-section .container { position: relative; z-index: 1; }
.process-step { background: linear-gradient(90deg, rgba(8,7,10,.0), rgba(8,7,10,.55) 20%, rgba(8,7,10,.55) 80%, rgba(8,7,10,0)); }
.process-step.active .step-heading h3 { color: var(--text-pure); }
.step-heading h3 { color: var(--text-muted); transition: color var(--trans-mid); }

/* ==========================================================================
   NOSOTROS (clara)
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #1c1a24 0%, #0d0c11 70%);
  border: 1px solid rgba(20,19,24,.12);
  box-shadow: 0 30px 70px rgba(20,19,24,.22);
}
#aboutCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub { position: absolute; inset: 0; display: grid; place-items: center; }
.hub-ring {
  position: absolute; width: 64%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.14); animation: spinSlow 40s linear infinite;
}
.hub-core {
  width: 112px; height: 112px; border-radius: 30px; display: grid; place-items: center;
  background: #f6f4f1; box-shadow: 0 0 0 10px rgba(246,244,241,.06), 0 0 70px rgba(232,0,6,.35);
  animation: hubPulse 4s ease-in-out infinite;
}
.hub-core svg { width: 64px; height: 64px; }
@keyframes hubPulse { 50% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(246,244,241,.04), 0 0 90px rgba(232,0,6,.45); } }
.hub-sat {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(16,15,21,.85); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-high);
  animation: floatY 5s ease-in-out infinite;
}
.sat-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }
.hub-sat.s1 { top: 16%; left: 10%; }
.hub-sat.s2 { top: 46%; right: 7%; animation-delay: -1.6s; }
.hub-sat.s3 { bottom: 14%; left: 20%; animation-delay: -3.2s; }
@keyframes floatY { 50% { transform: translateY(-10px); } }

.about-content .section-tag { display: inline-block; margin-bottom: 14px; }
.about-content .section-title { margin-bottom: 24px; }
.about-lead { font-size: 1.25rem; line-height: 1.55; color: #141318; font-weight: 500; margin-bottom: 16px; }
.about-body { color: #5d5968; font-size: 1.02rem; line-height: 1.7; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(20,19,24,.1); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--red); letter-spacing: -0.04em; }
.stat-label { font-size: .86rem; color: #5d5968; line-height: 1.4; }

/* ==========================================================================
   POR QUÉ (oscura, 2×2)
   ========================================================================== */
.why-section { background: var(--bg-surface); }
.why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.why-card { position: relative; overflow: hidden; isolation: isolate; min-height: 250px; justify-content: flex-end; }
.why-card:hover .card-glow { opacity: 1; }
.why-num {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--font-display); font-weight: 700; font-size: 3.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(245,243,241,.14);
  transition: color var(--trans-mid), -webkit-text-stroke-color var(--trans-mid);
}
.why-card:hover .why-num { color: rgba(232,0,6,.9); -webkit-text-stroke-color: transparent; }
.why-title { font-size: 1.5rem; max-width: 80%; }

/* ==========================================================================
   COTIZADOR (clara)
   ========================================================================== */
.estimator {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px;
  padding: 20px; border-radius: 28px; background: #fff;
  border: 1px solid rgba(20,19,24,.09); box-shadow: 0 2px 8px rgba(20,19,24,.03), 0 20px 50px rgba(20,19,24,.07);
}
.est-controls { padding: 24px 20px; display: flex; flex-direction: column; gap: 34px; }
.est-group { border: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.est-label { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #141318; font-size: 1rem; padding: 0; }
.est-label span {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(232,0,6,.1); color: var(--red); font-family: var(--font-mono); font-size: .74rem;
}
.est-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.est-pill {
  padding: 10px 16px; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 500;
  color: #3d3a45; background: #f6f4f1; border: 1px solid rgba(20,19,24,.1);
  transition: background-color var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast), transform var(--trans-fast);
}
.est-pill:hover { border-color: rgba(20,19,24,.3); }
.est-pill.active { background: #141318; color: #fff; border-color: #141318; }
.est-pill:active { transform: scale(.96); }
.est-range { width: 100%; accent-color: var(--red); height: 24px; cursor: pointer; }
.est-range-labels { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: .74rem; color: #8a8693; }
.est-range-labels strong { color: #141318; font-size: .9rem; }

.est-result {
  position: relative; overflow: hidden; border-radius: 20px; padding: 30px 28px;
  background: #111016; color: var(--text-high);
  display: flex; flex-direction: column; gap: 18px;
}
.est-result::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -140px;
  background: radial-gradient(circle, rgba(232,0,6,.35), transparent 65%); filter: blur(20px); pointer-events: none;
}
.est-result-head { display: flex; justify-content: space-between; align-items: center; position: relative; }
.est-badge { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--red-bright); }
.est-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .66rem; color: var(--text-muted); letter-spacing: .1em; }
.est-metric { position: relative; display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle); }
.est-m-label { font-size: .8rem; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.est-m-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text-pure); transition: opacity .25s ease, transform .25s ease; }
.est-metric-big .est-m-val { font-size: 2.3rem; color: var(--red-bright); letter-spacing: -0.03em; }
.est-m-val.is-updating { opacity: 0; transform: translateY(6px); }
.est-cta { position: relative; margin-top: auto; width: 100%; }
.est-note { position: relative; font-size: .78rem; color: var(--text-faint); text-align: center; }

/* ==========================================================================
   CTA / CONTACTO (oscura)
   ========================================================================== */
.cta-section { background: var(--bg-deep); }
.cta-panel { transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo); }
.cta-glow-spot { transition: left .6s var(--ease-out-expo), top .6s var(--ease-out-expo); }
.slash-accent { color: var(--red-bright); display: inline-block; margin-left: .08em; animation: slashTilt 3s ease-in-out infinite; }
@keyframes slashTilt { 50% { transform: rotate(-12deg); } }
.whatsapp-card {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 26px 18px 18px; border-radius: 22px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-medium);
  text-align: left; transition: border-color var(--trans-fast), background var(--trans-fast), transform .3s var(--ease-out-expo);
}
.whatsapp-card:hover { border-color: #25d366; background: rgba(37,211,102,.08); }
.whatsapp-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #25d366; color: #fff; flex-shrink: 0; box-shadow: 0 8px 26px rgba(37,211,102,.35); }
.whatsapp-text { display: flex; flex-direction: column; gap: 2px; }
.whatsapp-text strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-pure); }
.whatsapp-text span { font-size: .88rem; color: var(--text-muted); }
.whatsapp-arrow { font-size: 1.4rem; color: var(--text-muted); margin-left: 8px; transition: transform var(--trans-fast), color var(--trans-fast); }
.whatsapp-card:hover .whatsapp-arrow { transform: translate(3px, -3px); color: #25d366; }
.cta-email-link { gap: 12px; }
.email-text:hover { color: var(--red-bright); }

/* ==========================================================================
   FOOTER — wordmark gigante
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; padding-bottom: 0; }
.footer-giant { margin-top: 56px; line-height: .78; text-align: center; overflow: hidden; }
.fg-word {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.06em;
  font-size: clamp(4rem, 17.5vw, 16rem);
  color: transparent; -webkit-text-stroke: 1px rgba(245,243,241,.13);
  background: linear-gradient(180deg, rgba(245,243,241,.10), rgba(245,243,241,0) 85%);
  -webkit-background-clip: text; background-clip: text;
  transform: translateY(var(--fg-y, 40%));
  transition: transform .2s linear;
}
.fg-accent { color: var(--red); -webkit-text-stroke: 0; -webkit-text-fill-color: var(--red); }
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-pill); color: var(--text-high); border: 1px solid var(--border-medium);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity var(--trans-mid), transform var(--trans-mid), background var(--trans-fast);
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--red); border-color: var(--red); }

/* ==========================================================================
   RESPONSIVE (fusión)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-mark-wrapper { width: 230px; height: 230px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid .service-feature { grid-column: span 2; grid-row: auto; min-height: 0; }
  .bento-grid .service-card:last-child { grid-column: span 2; flex-direction: column; align-items: stretch; }
  .bento-grid .service-card:last-child .card-top { flex-direction: row; margin-bottom: 24px; }
  .bento-grid .service-card:last-child .card-bottom { display: block; }
  .bento-grid .service-card:last-child .card-title { margin-bottom: 12px; white-space: normal; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 520px; width: 100%; }
  .estimator { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-section { padding-top: 130px; }
  .hero-visual { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid .service-feature,
  .bento-grid .service-card:last-child { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stat-label { font-size: .76rem; }
  .whatsapp-card { width: 100%; }
  .container, .nav-wrapper { padding: 0 16px; }
  .cycle-tab { padding: 8px 12px; }
  .cycle-tab .tab-num { display: none; }
  .process-step { background: rgba(8,7,10,.6); }
  .est-controls { padding: 12px 6px; }
  .estimator { padding: 12px; }
}
@media (max-width: 480px) {
  .brand-img { height: 24px; }
  .nav-pill { padding: 8px 10px 8px 16px; }
  .nav-actions .btn-sm { display: none; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .cta-panel { padding: 48px 18px; }
  .whatsapp-card { padding: 14px; gap: 12px; }
  .whatsapp-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .split-words .sw > span { transform: none !important; }
  .hero-bracket { stroke-dashoffset: 0 !important; }
  .hero-slash-poly { opacity: 1 !important; }
  .fg-word { transform: none !important; }
  .velocity-marquee { transform: none; }
}

/* --- Correcciones tras prueba en navegador --- */
/* overflow:hidden convertía la sección en contenedor de scroll y anulaba el sticky */
.cycle-section.is-scrub { overflow: clip; }

/* Titular del hero: 3 líneas limpias en escritorio */
.hero-container { grid-template-columns: minmax(0, 1fr) 340px; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.3rem); }
@media (min-width: 821px) { .hero-title .mask-inner { white-space: nowrap; } }
@media (max-width: 1024px) { .hero-container { grid-template-columns: 1fr; } }
/* la fila de fases debe partir en la izquierda: centrada se desplazaba una fase completa */
.cycle-section.is-scrub .cycle-display { justify-content: flex-start; }
@media (max-width: 480px) { .mono-dot, .mono-city { display: none; } }
