﻿/* ==========================================================================
   MARKETINGCLOUD CHILE · DESIGN SYSTEM (Layers of Time + Impeccable)
   Direction: The Cosmic Show Board & High-Contrast Chroma
   ========================================================================== */

:root {
  /* Colors */
  --bg: #07080A;
  --bg-alt: #0D0E12;
  --surface: #12141A;
  --surface-hover: #181B24;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.22);
  
  --text: #F3F4F6;
  --text-muted: #9496A1;
  --text-dim: #5C6070;
  
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-subtle: rgba(245, 158, 11, 0.12);
  
  --cyan: #38BDF8;
  --cyan-subtle: rgba(56, 189, 248, 0.12);
  
  --emerald: #10B981;
  --emerald-subtle: rgba(16, 185, 129, 0.12);
  
  --purple: #A78BFA;
  --purple-subtle: rgba(167, 139, 250, 0.12);

  /* Typography */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --step-small: clamp(0.8125rem, 0.8rem + 0.1vw, 0.875rem);
  --step-body: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  --step-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --step-title: clamp(1.5rem, 1.3rem + 1.2vw, 2.2rem);
  --step-head: clamp(2.4rem, 2rem + 3.2vw, 4.4rem);
  --step-giant: clamp(2.8rem, 2.2rem + 5vw, 6.2rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --gap: 16px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

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

.wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   COSMIC CLOUD CANVAS & RETICLE CURSOR (Layers of Time Effect)
   ========================================================================== */
#nebula-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Cursor Core & Reticle (High Contrast, ZERO Text Blur) */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(245, 158, 11, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  /* NO blur filter on cursor so text is ALWAYS sharp */
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background-color 0.2s ease,
              transform 0.1s ease;
}

/* High contrast active state when hovering links or text */
.cursor-ring.active {
  width: 58px;
  height: 58px;
  border-color: #FFFFFF;
  border-width: 2px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.4), 0 0 30px rgba(56, 189, 248, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   STUDIO TOP BAR
   ========================================================================== */
.studio-bar {
  background: rgba(7, 8, 10, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
}

.studio-bar-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timecode-live {
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav.main-nav {
  position: fixed;
  top: 35px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(7, 8, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 3px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s ease;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.nav-cta:hover {
  background: var(--surface-hover);
  border-color: var(--border-focus);
  color: #FFFFFF;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  background: #FFFFFF;
  color: #07080A;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary:hover {
  background: var(--accent);
  color: #07080A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-focus);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #07080A;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-accent:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES (Layers of Time Studio)
   ========================================================================== */
@keyframes chromaticShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseNeon {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8)); }
}

/* ==========================================================================
   CHROMATIC GRADIENT HEADLINES (Layers of Time Giant Typography)
   ========================================================================== */
.chroma-title {
  font-family: var(--font-display);
  font-size: var(--step-giant);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #FFFFFF 0%, #F59E0B 25%, #38BDF8 55%, #A78BFA 80%, #FFFFFF 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromaticShift 7s linear infinite;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-statement {
  font-family: var(--font-display);
  font-size: var(--step-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero-statement .gradient-text {
  background: linear-gradient(90deg, #F59E0B 0%, #38BDF8 35%, #A78BFA 70%, #F59E0B 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromaticShift 6s linear infinite;
}

/* ==========================================================================
   THE BOARD & 4 SERVICES CARDS
   ========================================================================== */
.board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin: var(--gap) 0;
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

@media (max-width: 980px) {
  .col-8, .col-6, .col-4, .col-3 {
    grid-column: span 12;
  }
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease,
              box-shadow 0.25s ease;
  overflow: hidden;
}

.tile:hover {
  border-color: var(--border-focus);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* 4 Main Services Card Styling - Texto 100% Nítido y de Alto Contraste */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease;
  position: relative;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: #151821;
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.05);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card-1:hover::after { background: var(--accent); opacity: 1; }
.service-card-2:hover::after { background: var(--cyan); opacity: 1; }
.service-card-3:hover::after { background: var(--purple); opacity: 1; }
.service-card-4:hover::after { background: var(--emerald); opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 16px;
}

.chip-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.chip-accent {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.chip-cyan {
  background: var(--cyan-subtle);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.chip-purple {
  background: var(--purple-subtle);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.chip-emerald {
  background: var(--emerald-subtle);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li span.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   GIANT CHROMATIC PROJECT SHOWCASE (Layers of Time Style)
   ========================================================================== */
.projects-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.project-giant-item {
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 28px;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              padding 0.3s ease;
  position: relative;
}

.project-giant-item:hover {
  background: rgba(255, 255, 255, 0.015);
  padding-left: 16px;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.project-giant-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, #FFFFFF 0%, #E2E8F0 40%, #94A3B8 70%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.project-giant-item:hover .project-giant-name {
  background: linear-gradient(90deg, #FFFFFF 0%, #F59E0B 25%, #38BDF8 55%, #A78BFA 80%, #F59E0B 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromaticShift 3.5s linear infinite;
  transform: translateX(12px) scale(1.02);
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.35));
}

.project-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 10px;
  max-width: 650px;
}

.project-meta-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.project-link-btn {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.project-link-btn:hover {
  transform: translateX(4px);
  color: #FFFFFF;
}

@media (max-width: 860px) {
  .project-giant-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 36px;
  background: #050608;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  max-width: 1260px;
  margin: 0 auto;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.footer-col p,
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  display: block;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.foot-bottom {
  max-width: 1260px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* Project Stock Photography Thumbnail */
.project-thumb {
  width: 100%;
  height: 145px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--surface);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.9) contrast(1.05);
}

.project-giant-item:hover .project-thumb img {
  transform: scale(1.06);
  filter: brightness(1.05) contrast(1.1);
}

@media (max-width: 980px) {
  .project-giant-item {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .project-thumb {
    height: 200px;
  }
}


/* ==========================================================================
   TOP BAR FINANCIAL INDICATORS & PARTICLE CONTROLS
   ========================================================================== */
.studio-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.finance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #E2E8F0;
  letter-spacing: 0.04em;
}

.finance-badge strong {
  color: #FFFFFF;
}

.physics-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 4px;
}

.physics-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.physics-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.physics-btn.active {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 600;
}

/* ==========================================================================
   AMBIENT BLURRED BACKGROUND PHOTOGRAPHY (Imágenes Difuminadas en Tarjetas)
   ========================================================================== */
.card-ambient-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(0.24);
  opacity: 0.35;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.5s ease;
}

.service-card:hover .card-ambient-bg,
.tile:hover .card-ambient-bg {
  opacity: 0.55;
  filter: blur(10px) brightness(0.32);
  transform: scale(1.05);
}

.card-content-layer {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .physics-controls {
    display: none;
  }
}


/* ==========================================================================
   NEO-BRUTALIST KINETIC HERO (Layers of Time Studio)
   ========================================================================== */
.brutalist-hero {
  padding: 40px 0 70px;
  position: relative;
  overflow: hidden;
}

.brutalist-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 26px;
  text-transform: uppercase;
}

.kinetic-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 30px;
  overflow: visible;
  max-width: 100%;
}

.kinetic-line-1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #9496A1;
  text-transform: uppercase;
  line-height: 1.1;
}

.kinetic-line-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  color: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.28em;
  will-change: transform;
  max-width: 100%;
}

.kinetic-line-2 span {
  display: inline-block;
}

.kinetic-line-2 .outline-text {
  color: transparent;
  -webkit-text-stroke: 2px #FFFFFF;
}

.kinetic-line-3 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8.5vw, 7.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.9;
  background: linear-gradient(90deg, #F59E0B 0%, #38BDF8 35%, #A78BFA 70%, #F59E0B 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromaticShift 6s linear infinite;
  display: block;
  will-change: transform;
}

.kinetic-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.8vw, 1.35rem);
  color: var(--accent);
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-top: 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.08);
  padding: 8px 18px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.brutalist-grid-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .brutalist-grid-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* ==========================================================================
   LEFT SCROLL-SPY RAIL (Menú Lateral que se Arma al Bajar)
   ========================================================================== */
.scroll-rail {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  pointer-events: none;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  right: auto !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.scroll-rail-line {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.scroll-rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--cyan) 50%, var(--purple) 100%);
  border-radius: 2px;
  transition: height 0.08s linear;
}

.scroll-rail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  pointer-events: auto;
}

.rail-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0B0D12;
  border: 2px solid var(--border);
  transition: all 0.25s ease;
  position: relative;
}

.rail-item:hover .rail-dot,
.rail-item.active .rail-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.2);
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  pointer-events: none;
}

.rail-item:hover .rail-label,
.rail-item.active .rail-label {
  opacity: 1;
  color: #FFFFFF;
  font-weight: 700;
  transform: translateX(0px);
  pointer-events: auto;
}

@media (max-width: 1350px) {
  .scroll-rail .rail-label {
    display: none;
  }
}

@media (max-width: 980px) {
  .scroll-rail {
    display: none;
  }
}


/* ==========================================================================
   CIUDAD CÓSMICA PARALLAX TRASERA (Activision H.E.R.O. Style Monoliths)
   Letras colosales en la base como edificios espaciales por detrás
   ========================================================================== */
.bg-kinetic-stream {
  position: fixed;
  bottom: 0;
  top: auto;
  left: 0;
  width: 100vw;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 1; /* Detrás de .wrap (z-index: 2) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.bg-kinetic-stream.is-active {
  opacity: 0.45; /* Claramente visible en la base como ciudad espacial detrás de tarjetas */
  visibility: visible;
  transform: translateY(0);
}

.bg-kinetic-rail {
  display: inline-flex;
  align-items: flex-end;
  gap: 75px;
  will-change: transform;
  padding-bottom: 0;
}

.bg-kinetic-phrase {
  display: inline-flex;
  align-items: baseline;
  gap: 32px;
  font-family: var(--font-display);
  font-size: clamp(6.2rem, 16vw, 14.5rem); /* Rascacielos monolíticos colosales */
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.85;
  filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.15)) drop-shadow(0 0 60px rgba(56, 189, 248, 0.15));
}

.bg-k-solid {
  color: #FFFFFF;
  text-shadow: 0 0 45px rgba(255, 255, 255, 0.4);
  position: relative;
}

/* Baliza luminosa en la cima del edificio VENTAJA */
.bg-k-solid::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 25%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444, 0 0 20px #EF4444;
  animation: beaconPulse 1.6s infinite ease-in-out;
}

.bg-k-outline {
  color: transparent;
  -webkit-text-stroke: 2.8px rgba(255, 255, 255, 0.9);
  position: relative;
}

/* Antena espacial en la cima de COMPETITIVA */
.bg-k-outline::after {
  content: '';
  position: absolute;
  top: -10px;
  right: 30%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 12px #38BDF8, 0 0 24px #38BDF8;
  animation: beaconPulse 1.2s infinite ease-in-out alternate;
}

@keyframes beaconPulse {
  0% { opacity: 0.25; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.35); }
}

.bg-k-grad {
  background: linear-gradient(90deg, #F59E0B 0%, #38BDF8 35%, #A78BFA 70%, #F59E0B 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromaticShift 6s linear infinite;
  text-shadow: 0 0 35px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   PHYSICS QUANTUM HUD (Activado con [Shift])
   ========================================================================== */
.physics-shift-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.physics-shift-badge:hover,
.physics-shift-badge:focus-visible {
  background: rgba(245, 158, 11, 0.14);
  border-color: var(--accent);
  outline: none;
}

.shift-key-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  letter-spacing: 0.05em;
}

/* Modal Overlay HUD */
.physics-hud-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.physics-hud-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.physics-hud-panel {
  background: #0E1017;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.12);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.physics-hud-overlay.is-open .physics-hud-panel {
  transform: scale(1) translateY(0);
}

.physics-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.physics-hud-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.physics-hud-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.physics-hud-close:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.physics-hud-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.physics-hud-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  text-align: left;
  width: 100%;
}

.physics-hud-option:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.physics-hud-option.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.physics-hud-option.active .hud-opt-name {
  color: #FFFFFF;
}

.hud-opt-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hud-opt-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.hud-opt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-opt-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.hud-opt-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.hud-opt-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--text-muted);
}

.physics-hud-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.physics-hud-footer strong {
  color: var(--accent);
}

/* Toast flotante de confirmación */
.physics-hud-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(14, 16, 23, 0.94);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 24px rgba(245, 158, 11, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10006;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.physics-hud-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}


/* La ciudad de letras y los astronautas se renderizan 100% unificados en la Segunda Capa (Canvas) */
.bg-kinetic-stream { display: none !important; }


/* ==========================================================================
   PRIMERA CAPA: CONTENIDO 100% NÍTIDO, SIN DIFUMINADO Y DE ALTO CONTRASTE
   ========================================================================== */
.service-card,
.tile,
.brutalist-grid-meta > div:last-child {
  background: #0D0F15 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.card-ambient-bg {
  opacity: 0.14 !important;
  filter: blur(25px) brightness(0.20) !important;
}

.service-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.service-desc {
  color: #D1D5DB !important;
  font-size: 0.96rem !important;
  line-height: 1.65 !important;
}

.service-list li {
  color: #E2E8F0 !important;
  font-size: 0.88rem !important;
}


/* ==========================================================================
   SELECTORES DE PLANETAS POR TECLA (E, T, M, A, P, C)
   ========================================================================== */
.gravity-selector-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gravity-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-right: 2px;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.gravity-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.70rem;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.gravity-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.gravity-btn[data-mode="espacio"].active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.gravity-btn[data-mode="tierra"].active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
  color: #34D399;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.gravity-btn[data-mode="marte"].active {
  background: rgba(239, 68, 68, 0.18);
  border-color: #EF4444;
  color: #F87171;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.gravity-btn[data-mode="agua"].active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38BDF8;
  color: #7DD3FC;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.gravity-btn[data-mode="plasma"].active {
  background: rgba(74, 222, 128, 0.18);
  border-color: #4ADE80;
  color: #86EFAC;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

.gravity-btn[data-mode="cuantico"].active {
  background: rgba(192, 132, 252, 0.22);
  border-color: #C084FC;
  color: #E9D5FF;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
}

.k-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 4px;
  border-radius: 2px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #FFFFFF;
}

/* ==========================================================================
   TRANSFORMACIÃ“N TOTAL DE COLOR POR PLANETA
   ========================================================================== */
body {
  transition: background 0.8s ease, color 0.4s ease;
  background: radial-gradient(ellipse at 50% 25%, #050508 0%, #030305 60%, #000000 100%) !important;
}

/* 1. ESPACIO = NEGRO (Zero-G) */
body.mode-espacio {
  background: radial-gradient(ellipse at 50% 25%, #08080C 0%, #040406 60%, #000000 100%) !important;
}

/* 2. TIERRA = VERDE (1.0g) */
body.mode-tierra {
  background: radial-gradient(ellipse at 50% 25%, #032115 0%, #01120B 60%, #000704 100%) !important;
}
body.mode-tierra .service-card,
body.mode-tierra .tile {
  border-color: rgba(16, 185, 129, 0.28) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.08) !important;
}
body.mode-tierra .cursor-dot {
  background-color: #10B981 !important;
  box-shadow: 0 0 12px #10B981, 0 0 24px rgba(16, 185, 129, 0.6) !important;
}

/* 3. MARTE = ROJO (0.38g Gravedad Menor) */
body.mode-deimos,
body.mode-marte {
  background: radial-gradient(ellipse at 50% 25%, #250705 0%, #130302 60%, #060101 100%) !important;
}
body.mode-deimos .service-card,
body.mode-deimos .tile,
body.mode-marte .service-card,
body.mode-marte .tile {
  border-color: rgba(239, 68, 68, 0.28) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.08) !important;
}
body.mode-deimos .cursor-dot,
body.mode-marte .cursor-dot {
  background-color: #EF4444 !important;
  box-shadow: 0 0 12px #EF4444, 0 0 24px rgba(239, 68, 68, 0.6) !important;
}

/* 4. AGUA = AZUL (Oleaje y Viscosidad) */
body.mode-agua {
  background: radial-gradient(ellipse at 50% 25%, #031E35 0%, #011120 60%, #00060F 100%) !important;
}
body.mode-agua .service-card,
body.mode-agua .tile {
  border-color: rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.08) !important;
}
body.mode-agua .cursor-dot {
  background-color: #38BDF8 !important;
  box-shadow: 0 0 12px #38BDF8, 0 0 24px rgba(56, 189, 248, 0.6) !important;
}

/* 5. PLASMA = VERDE NEÃ“N (AmortiguaciÃ³n MagnÃ©tica) */
body.mode-plasma {
  background: radial-gradient(ellipse at 50% 25%, #032A0F 0%, #011808 60%, #000A03 100%) !important;
}
body.mode-plasma .service-card,
body.mode-plasma .tile {
  border-color: rgba(74, 222, 128, 0.35) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(74, 222, 128, 0.12) !important;
}
body.mode-plasma .cursor-dot {
  background-color: #4ADE80 !important;
  box-shadow: 0 0 14px #4ADE80, 0 0 28px rgba(74, 222, 128, 0.7) !important;
}

/* 6. CUÃNTICO = PÃšRPURA IRIDISCENTE (FÃ­sica Entretenida Oscilante) */
body.mode-cuantico {
  background: radial-gradient(ellipse at 50% 25%, #220638 0%, #120320 60%, #05010C 100%) !important;
}
body.mode-cuantico .service-card,
body.mode-cuantico .tile {
  border-color: rgba(192, 132, 252, 0.35) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(192, 132, 252, 0.14) !important;
}
body.mode-cuantico .cursor-dot {
  background-color: #C084FC !important;
  box-shadow: 0 0 14px #C084FC, 0 0 28px rgba(192, 132, 252, 0.7) !important;
}

/* ==========================================================================
   GLOBO FLOTANTE DE WHATSAPP (DIRECTO CON CRISTIAN DÍAZ EN TODAS LAS PÁGINAS)
   ========================================================================== */
.whatsapp-float-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.whatsapp-bubble-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-float-bubble:hover .whatsapp-bubble-inner {
  background: #20BA5A;
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.6);
}

.whatsapp-svg-icon {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

.whatsapp-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes waPing {
  0% { transform: scale(0.85); opacity: 0.9; }
  75%, 100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-bubble-tooltip {
  display: flex;
  flex-direction: column;
  background: rgba(13, 16, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: all 0.2s ease;
}

.whatsapp-bubble-tooltip small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #34D399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.whatsapp-bubble-tooltip strong {
  font-family: var(--font-display);
  font-size: 0.84rem;
  color: #FFFFFF;
}

/* ==========================================================================
   CABECERA MÓVIL SUPERIOR (SLIM, LIVIANA, CERO COLISIÓN)
   ========================================================================== */
.mobile-top-bar {
  display: none;
}

/* En escritorio, ocultar los iconos de las pestañas */
.nav-tab-icon {
  display: none;
}

/* ==========================================================================
   RESPONSIVO MÓVIL TOTAL (HASTA 768px): CABECERA ABAJO + MODO LIVIANO
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Ocultar la barra pesada de escritorio con reloj, UF, dólar y atajos */
  .studio-bar {
    display: none !important;
  }

  /* 2. Cabecera móvil superior ultraliviana (Logo + Estado + Botón Planeta) */
  .mobile-top-bar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(7, 9, 14, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  .mobile-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .mobile-logo span {
    color: var(--accent);
  }

  .mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
  }

  .mobile-planet-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #E2E8F0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  /* 3. CABECERA PRINCIPAL SE MUEVE ABAJO (DOCK DE NAVEGACIÓN MÓVIL) */
  nav.main-nav {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px !important;
    background: rgba(10, 14, 22, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: none !important;
    z-index: 1000 !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  nav.main-nav .logo,
  nav.main-nav .nav-cta {
    display: none !important;
  }

  nav.main-nav .nav-links {
    display: flex !important;
    width: 100% !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    color: #94A3B8 !important;
    text-decoration: none !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    gap: 3px !important;
    min-width: 52px !important;
    transition: all 0.2s ease !important;
  }

  .nav-item.active,
  .nav-item:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .nav-item.active svg {
    stroke: var(--accent) !important;
  }

  .nav-tab-icon {
    display: block !important;
    stroke: currentColor !important;
    transition: stroke 0.2s ease !important;
  }

  /* 4. Espaciado del contenido para móvil (sin hueco gigante arriba ni corte abajo) */
  main.wrap,
  main[style*="padding-top"] {
    padding-top: 58px !important;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 5. GLOBO FLOTANTE DE WHATSAPP EN MÓVIL (ARRIBA DEL DOCK) */
  .whatsapp-float-bubble {
    bottom: calc(72px + env(safe-area-inset-bottom, 8px)) !important;
    right: 14px !important;
  }

  .whatsapp-bubble-inner {
    width: 48px !important;
    height: 48px !important;
  }

  .whatsapp-svg-icon {
    width: 26px !important;
    height: 26px !important;
  }

  .whatsapp-bubble-tooltip {
    display: none !important;
  }

  /* 6. Desactivar cursores personalizados en táctil */
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  /* 7. Ocultar scroll rail en móvil */
  .scroll-rail {
    display: none !important;
  }

  /* 8. Adaptación de tarjetas y cuadrículas */
  .grid-2, .grid-3, .grid-4, .timeline, .profile-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-cta-group, .btn-group {
    flex-direction: column !important;
    width: 100% !important;
  }

  .btn-primary, .btn-secondary, .btn-accent {
    width: 100% !important;
    justify-content: center !important;
  }

  .brutalist-hero {
    padding: 16px 0 35px !important;
  }

  .chroma-title {
    font-size: clamp(2rem, 1.8rem + 3vw, 3.2rem) !important;
    line-height: 1.05 !important;
  }
}


/* ==========================================================================
   ESFERAS PLANETARIAS 3D (SELECTOR DE COLORES Y FÍSICA)
   ========================================================================== */
.gravity-selector-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 13, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 3px 10px;
}

.gravity-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.gravity-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: #94A3B8;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px 3px 5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.gravity-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.gravity-btn.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.planet-sphere {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.gravity-btn:hover .planet-sphere,
.gravity-btn.active .planet-sphere {
  transform: scale(1.24);
}

/* 1. Espacio: Orbe negro profundo con halo estelar */
.sphere-espacio {
  background: radial-gradient(circle at 35% 35%, #475569 0%, #1E293B 50%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.4);
}

/* 2. Tierra: Canica azul con continentes esmeralda */
.sphere-tierra {
  background: radial-gradient(circle at 35% 35%, #38BDF8 25%, #10B981 60%, #064E3B 100%);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(56, 189, 248, 0.65);
}

/* 3. Marte: Ocre rojizo con tormentas de arena */
.sphere-deimos,
.sphere-marte {
  background: radial-gradient(circle at 35% 35%, #F87171 20%, #EF4444 60%, #7F1D1D 100%);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(239, 68, 68, 0.65);
}

/* 4. Agua: Océano cian iridiscente con reflejo */
.sphere-agua {
  background: radial-gradient(circle at 35% 35%, #7DD3FC 15%, #0284C7 55%, #082F49 100%);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(56, 189, 248, 0.75);
}

/* 5. Plasma: Esfera verde neón radiactiva */
.sphere-plasma {
  background: radial-gradient(circle at 35% 35%, #86EFAC 20%, #22C55E 55%, #052E16 100%);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(74, 222, 128, 0.85);
}

/* 6. Cuántico: Cristal púrpura cósmico */
.sphere-cuantico {
  background: radial-gradient(circle at 35% 35%, #E9D5FF 20%, #A855F7 55%, #3B0764 100%);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(168, 85, 247, 0.85);
}

/* ==========================================================================
   TARJETAS Y TEXTO 100% SÓLIDOS Y DE MÁXIMO CONTRASTE
   "el texto y las tarjetas que sean siempre solidos"
   ========================================================================== */
.service-card,
.tile,
.project-giant-item,
.card,
.stat-tile {
  background: #0C0E14 !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

.card-content-layer {
  position: relative;
  z-index: 2;
  background: transparent;
}

.card-ambient-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.20);
  opacity: 0.22;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}


/* ==========================================================================
   CABECERA ATRACTIVA CON LOGO AL CENTRO Y MENÚ STICKY
   "una cabecera atractiva con un logo de marketing cloud al centro al bajar que se mantenga con todos los menu"
   ========================================================================== */
nav.main-nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 28px;
  background: rgba(7, 9, 14, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: top 0.28s ease, padding 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

/* Al bajar que se mantenga fija en el tope con todos los menús */
nav.main-nav.is-scrolled {
  top: 0 !important;
  padding: 9px 28px !important;
  background: rgba(6, 8, 12, 0.97) !important;
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75) !important;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 16px;
}

/* Columna Izquierda: Menús */
.nav-col-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
}

/* Columna Centro: Logo Centrado de MarketingCloud */
.nav-col-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
}

.brand-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  transition: all 0.25s ease;
}

.brand-link:hover .brand-badge-icon {
  border-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
  transform: rotate(-6deg) scale(1.08);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.brand-name span {
  color: var(--accent);
}

/* Columna Derecha: Menús + CTA */
.nav-col-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

/* Enlaces del menú */
.nav-menu-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-menu-link:hover,
.nav-menu-link.active {
  color: #FFFFFF;
}

.nav-menu-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
}

/* Botón CTA derecho */
.nav-cta-btn {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FFFFFF;
  padding: 7px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: var(--accent);
  color: #07080A;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

/* CABECERA MÓVIL CON LOGO CENTRADO */
@media (max-width: 768px) {
  .mobile-top-bar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50px !important;
    background: rgba(7, 9, 14, 0.96) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000 !important;
    padding: 0 14px !important;
  }

  .mobile-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Logo móvil centrado */
  .mobile-top-inner .brand-link {
    margin: 0 auto;
  }

  .mobile-top-inner .brand-name {
    font-size: 1.15rem;
  }

  .mobile-top-inner .brand-badge-icon {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  /* El dock inferior se mantiene abajo */
  nav.main-nav {
    top: auto !important;
    bottom: 0 !important;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px !important;
  }

  .nav-container {
    display: flex !important;
    justify-content: space-around !important;
  }

  .nav-col-left,
  .nav-col-right {
    display: flex !important;
    gap: 4px !important;
    width: 100% !important;
    justify-content: space-around !important;
  }

  .nav-col-center,
  .nav-cta-btn {
    display: none !important; /* En móvil el logo está en la cabecera superior y el botón en flotante */
  }

  .nav-menu-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    color: #94A3B8 !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    gap: 3px !important;
    min-width: 50px !important;
  }

  .nav-menu-link.active::after {
    display: none !important;
  }

  .nav-menu-link.active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .nav-tab-icon {
    display: block !important;
    stroke: currentColor !important;
  }

  /* Responsivo para titular cinético en móvil: NUNCA cortar 'COMPETITIVA' */
  .kinetic-text-wrap {
    overflow: visible !important;
    margin-bottom: 20px !important;
  }

  .kinetic-line-1 {
    font-size: clamp(1rem, 4.2vw, 1.35rem) !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 4px !important;
  }

  .kinetic-line-2 {
    font-size: clamp(1.75rem, 8vw, 2.7rem) !important;
    line-height: 0.95 !important;
    gap: 0 0.22em !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .kinetic-line-2 span {
    display: inline-block !important;
  }

  .kinetic-line-2 .outline-text {
    -webkit-text-stroke: 1.5px #FFFFFF !important;
  }

  .kinetic-line-3 {
    font-size: clamp(2.3rem, 10.5vw, 3.8rem) !important;
    line-height: 0.92 !important;
  }

  /* Evitar cualquier scroll horizontal indeseado en móviles */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}


/* ==========================================================================
   SISTEMA RESPONSIVO SIMPLE, ROBUSTO Y SIN SOBRECARGA
   "el modelo responsivo se rompe, hazlo mas simple sin tantos detalles"
   ========================================================================== */

/* Reglas universales para prevenir cualquier desborde horizontal */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

.wrap, main.wrap {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Ocultar el riel lateral de progreso bajo 1240px para que no tape nunca las tarjetas */
@media (max-width: 1240px) {
  .scroll-rail {
    display: none !important;
  }
}

/* Ajustes para Tablets y Laptops Pequeñas (769px a 1100px) */
@media (max-width: 1100px) {
  .studio-bar-inner {
    padding: 0 12px;
  }
  .finance-badge {
    display: none !important; /* Oculta USD y UF para no desbordar horizontalmente */
  }
  .gravity-selector-bar {
    gap: 4px;
    padding: 2px 6px;
  }
  .gravity-btn {
    padding: 2px 6px;
    font-size: 0.72rem;
  }
  .nav-container {
    gap: 8px !important;
  }
  .nav-col-left, .nav-col-right {
    gap: 10px !important;
  }
  .nav-menu-link {
    font-size: 0.80rem !important;
    padding: 4px 2px !important;
  }
  .nav-cta-btn {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
}

/* Ajustes para Móviles y Pantallas Angostas (<= 820px) */
@media (max-width: 820px) {
  /* 1. Ocultar la barra pesada de indicadores */
  .studio-bar {
    display: none !important;
  }

  /* 2. Cabecera móvil superior fija (52px de altura) */
  .mobile-top-bar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 52px !important;
    background: rgba(7, 9, 14, 0.96) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000 !important;
    padding: 0 16px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .mobile-top-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .mobile-top-inner .brand-link {
    margin: 0 !important;
  }

  .mobile-top-inner .brand-name {
    font-size: 1.15rem !important;
  }

  .mobile-top-inner .brand-badge-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.65rem !important;
  }

  .mobile-planet-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #FFFFFF !important;
    font-family: var(--font-mono) !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  /* 3. Dock de navegación inferior limpio y perfectamente distribuido */
  nav.main-nav {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px !important;
    background: rgba(10, 14, 22, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7) !important;
    z-index: 1000 !important;
    margin: 0 !important;
  }

  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    grid-template-columns: none !important;
  }

  /* Clave para distribución fluida: display: contents elimina el conflicto de 100% + 100% */
  .nav-col-left,
  .nav-col-right {
    display: contents !important;
  }

  .nav-col-center,
  .nav-cta-btn {
    display: none !important;
  }

  .nav-menu-link {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 2px !important;
    border-radius: 8px !important;
    color: #94A3B8 !important;
    font-size: 0.64rem !important;
    font-weight: 600 !important;
    gap: 3px !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }

  .nav-menu-link.active::after {
    display: none !important;
  }

  .nav-menu-link.active,
  .nav-menu-link:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .nav-tab-icon {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
  }

  /* 4. Espaciado y fluidez del contenido */
  main.wrap,
  main[style*="padding-top"] {
    padding-top: 68px !important;
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* 5. Titular Hero y tipografía que NUNCA desborda */
  .kinetic-text-wrap {
    overflow: hidden !important;
    max-width: 100% !important;
    margin-bottom: 18px !important;
  }

  .kinetic-line-1 {
    font-size: clamp(0.9rem, 3.8vw, 1.25rem) !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 4px !important;
  }

  .kinetic-line-2 {
    font-size: clamp(1.4rem, 6.8vw, 2.5rem) !important;
    line-height: 0.98 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 0.2em !important;
    word-break: break-word !important;
  }

  .kinetic-line-2 .outline-text {
    -webkit-text-stroke: 1.2px #FFFFFF !important;
  }

  .kinetic-line-3 {
    font-size: clamp(1.9rem, 9vw, 3.4rem) !important;
    line-height: 0.95 !important;
    word-break: break-word !important;
  }

  .chroma-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    line-height: 1.05 !important;
    word-break: break-word !important;
  }

  /* 6. Grillas y columnas adaptadas a 1 sola columna natural */
  .col-12, .col-8, .col-6, .col-4, .col-3 {
    grid-column: span 12 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tile, .card, .service-card, .price-card, .project-giant-item, .stat-tile {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px 16px !important;
  }

  .project-giant-item {
    grid-template-columns: 1fr !important;
  }

  .grid,
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Evitar que botones o contenedores flex se salgan de pantalla en móvil */
  [style*="display: flex"] {
    flex-wrap: wrap !important;
  }

  .btn-primary, .btn-secondary, .btn-accent {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Botón flotante de WhatsApp situado sobre el dock */
  .whatsapp-float-bubble {
    bottom: calc(68px + env(safe-area-inset-bottom, 8px)) !important;
    right: 12px !important;
  }
}


/* ==========================================================================
   FIX DEFINITIVO DE LA BARRA SUPERIOR (.studio-bar) Y CABECERA (nav.main-nav)
   Barra de planetas espaciosa, con esferas 3D brillantes y aire visual
   ========================================================================== */
.studio-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 50px !important;
  padding: 0 28px !important;
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(90deg, rgba(6, 8, 13, 0.98) 0%, rgba(11, 15, 25, 0.98) 50%, rgba(6, 8, 13, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  z-index: 1002 !important;
  overflow: hidden !important;
  transition: transform 0.28s ease, opacity 0.28s ease !important;
}

.studio-bar-inner {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  white-space: nowrap !important;
}

.studio-bar-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

.timecode-live {
  padding: 4px 10px !important;
  font-size: 0.76rem !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.finance-badge {
  padding: 4px 10px !important;
  font-size: 0.74rem !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.studio-bar-right {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
}

/* Barra de Planetas Xain'd Sleena con más espacio, mejor respiración y estética arcade premium */
.gravity-selector-bar {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  background: rgba(13, 17, 26, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 9999px !important;
  padding: 4px 12px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 18px rgba(56, 189, 248, 0.08) !important;
}

.gravity-label {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #F59E0B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-right: 4px !important;
  padding-left: 4px !important;
  white-space: nowrap !important;
}

.gravity-btn {
  padding: 5px 13px 5px 8px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  gap: 8px !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  color: #CBD5E1 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gravity-btn:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px) !important;
}

.planet-sphere {
  width: 16px !important;
  height: 16px !important;
}

/* Color activo para cada planeta con halo luminoso */
.gravity-btn[data-mode="espacio"].active {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.28) !important;
}

.gravity-btn[data-mode="tierra"].active {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #10B981 !important;
  color: #6EE7B7 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.38) !important;
}

.gravity-btn[data-mode="deimos"].active {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #EF4444 !important;
  color: #FCA5A5 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.38) !important;
}

.gravity-btn[data-mode="agua"].active {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: #38BDF8 !important;
  color: #BAE6FD !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.38) !important;
}

.gravity-btn[data-mode="plasma"].active {
  background: rgba(74, 222, 128, 0.22) !important;
  border-color: #4ADE80 !important;
  color: #BBF7D0 !important;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.42) !important;
}

.gravity-btn[data-mode="cuantico"].active {
  background: rgba(192, 132, 252, 0.25) !important;
  border-color: #C084FC !important;
  color: #F3E8FF !important;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.45) !important;
}

/* Cabecera principal justo debajo de los 50px de studio-bar */
@media (min-width: 821px) {
  nav.main-nav {
    top: 50px !important;
    z-index: 1001 !important;
    padding: 13px 28px !important;
  }
  nav.main-nav.is-scrolled {
    top: 50px !important;
    padding: 10px 28px !important;
    background: rgba(6, 8, 12, 0.97) !important;
  }
  main.wrap,
  main[style*="padding-top"] {
    padding-top: 142px !important;
  }
}

@media (max-width: 1320px) {
  .gravity-label {
    display: none !important;
  }
  .gravity-selector-bar {
    gap: 5px !important;
    padding: 3px 8px !important;
  }
  .gravity-btn {
    padding: 4px 10px 4px 6px !important;
    font-size: 0.74rem !important;
    gap: 6px !important;
  }
}

@media (max-width: 1120px) {
  .finance-badge {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .studio-bar {
    display: none !important;
  }
}


/* ==========================================================================
   SISTEMA DE LOGOS DE MARCAS Y REFERENCIAS (CLIENTES, TECNOLOGÍAS Y PARTNERS)
   ========================================================================== */
.brand-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
}

.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 19, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.brand-logo-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
}

.brand-logo-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Emblemas grandes para tarjetas de Proyectos / Clientes en Portafolio e Index */
.project-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 12px;
}

.project-brand-emblem {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #161B26 0%, #0B0E14 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.project-brand-emblem svg {
  width: 30px;
  height: 30px;
}

/* Barra de Ecosistema de Marcas y Clientes en el Hero */
.ecosystem-brands-bar {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.ecosystem-brands-title {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 12px;
  display: block;
}
