/* =============================================
   ROBOYASO APPS — Premium Design System
   Modern dark aesthetic | Indigo accent
   ============================================= */

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg-primary:     #09090b;
  --bg-elevated:    #18181b;
  --bg-surface:     #27272a;
  --bg-overlay:     rgba(9, 9, 11, 0.8);

  /* Accent */
  --accent:         #6366f1;
  --accent-light:   #818cf8;
  --accent-dark:    #4f46e5;
  --accent-glow:    rgba(99, 102, 241, 0.15);
  --accent-glow-lg: rgba(99, 102, 241, 0.08);

  /* Product Colors */
  --aurix-color:    #f59e0b;
  --aurix-glow:     rgba(245, 158, 11, 0.12);
  --supra-color:    #8b5cf6;
  --supra-glow:     rgba(139, 92, 246, 0.12);

  /* Text */
  --text-primary:   #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted:     #71717a;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.16);
  --border-accent:  rgba(99, 102, 241, 0.3);

  /* Typography */
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --space-xs:       4px;
  --space-sm:       8px;
  --space-md:       16px;
  --space-lg:       24px;
  --space-xl:       32px;
  --space-2xl:      48px;
  --space-3xl:      64px;
  --space-4xl:      96px;
  --space-5xl:      128px;

  /* Radii */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;

  /* Transitions */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:  150ms;
  --duration:       250ms;
  --duration-slow:  500ms;

  /* Shadows */
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg:      0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow:    0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow-lg);
}

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

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

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

::selection {
  background: var(--accent);
  color: white;
}

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

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

ul {
  list-style: none;
}

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

/* --- Grain Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

/* =============================================
   TYPOGRAPHY UTILITIES
   ============================================= */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 16px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-hover);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease-out);
}

/* El blur va en un pseudo-elemento para NO crear stacking context
   en el navbar (que atraparía al overlay del menú móvil) */
.navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background var(--duration) var(--ease-out),
              backdrop-filter var(--duration) var(--ease-out),
              -webkit-backdrop-filter var(--duration) var(--ease-out);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
}

.navbar.scrolled::after {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--duration);
}

.navbar__logo:hover {
  opacity: 1;
}

.navbar__logo-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease-out);
}

.navbar__logo-icon:hover {
  animation: iconShakeSettle 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
}

@keyframes iconShakeSettle {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-6deg); }
  45% { transform: rotate(6deg); }
  70% { transform: rotate(-2deg); }
  85% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.navbar__logo-text {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.navbar__logo-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transform: scaleX(var(--logo-underline-scale, 0));
  transform-origin: var(--logo-underline-origin, 50%) center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.navbar__logo-text span {
  display: inline;
  margin-left: 6px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration);
  position: relative;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--text-primary);
}

.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  pointer-events: none;
}

.navbar__nav a.active::after {
  opacity: 1;
}

.navbar__cta {
  display: none;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.navbar__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out),
              opacity var(--duration);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

/* Mesh Gradient Background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  top: -200px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  animation: float-orb 20s ease-in-out infinite;
}

.hero__bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  animation: float-orb 25s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Subtle dot grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-xl);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-accent);
  background: rgba(99, 102, 241, 0.06);
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__badge-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
  opacity: 0.7;
}

/* =============================================
   PRODUCTS SECTION
   ============================================= */
.products {
  padding: var(--space-5xl) 0;
  position: relative;
}

.products__header {
  margin-bottom: var(--space-4xl);
}

.products__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

/* Product Card */
.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: transform 120ms var(--ease-out);
  transform: translateY(calc(var(--glow-intensity, 0) * -3px));
}

/* Grain texture overlay on cards */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.product-card__glow {
  position: absolute;
  inset: 0;
  opacity: var(--glow-intensity, 0);
  transition: opacity 80ms linear;
  pointer-events: none;
  z-index: 0;
}

.product-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.product-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  width: fit-content;
}

.product-card__name {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.product-card__tagline {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.product-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 420px;
}

.product-card__cta {
  display: flex;
  gap: var(--space-md);
}

/* Product Visual */
.product-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
}

.product-card__icon-wrap {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.product-card__icon-wrap svg {
  width: 56px;
  height: 56px;
}

/* Orbiting rings */
.product-card__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: orbit-spin 30s linear infinite;
}

.product-card__orbit--1 {
  width: 200px;
  height: 200px;
  opacity: 0.15;
}

.product-card__orbit--2 {
  width: 280px;
  height: 280px;
  opacity: 0.08;
  animation-direction: reverse;
  animation-duration: 45s;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Aurix variant */
.product-card--aurix {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.015) 0%, transparent 70%),
    linear-gradient(135deg, rgba(245, 158, 11, 0.02) 0%, transparent 40%, rgba(245, 158, 11, 0.01) 100%),
    var(--bg-elevated);
}

.product-card--aurix .product-card__glow {
  background: radial-gradient(ellipse at 70% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
}

.product-card--aurix .product-card__badge {
  background: rgba(245, 158, 11, 0.1);
  color: var(--aurix-color);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.product-card--aurix .product-card__name {
  color: var(--aurix-color);
}

.product-card--aurix .product-card__icon-wrap {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.product-card--aurix .product-card__icon-wrap svg {
  color: var(--aurix-color);
}

.product-card--aurix .product-card__orbit {
  border-color: var(--aurix-color);
}

/* Suprecerebro variant */
.product-card--supra {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.015) 0%, transparent 70%),
    linear-gradient(315deg, rgba(139, 92, 246, 0.02) 0%, transparent 40%, rgba(139, 92, 246, 0.01) 100%),
    var(--bg-elevated);
}

.product-card--supra .product-card__glow {
  background: radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
}

.product-card--supra .product-card__badge {
  background: rgba(139, 92, 246, 0.1);
  color: var(--supra-color);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.product-card--supra .product-card__name {
  color: var(--supra-color);
}

.product-card--supra .product-card__icon-wrap {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.product-card--supra .product-card__icon-wrap svg {
  color: var(--supra-color);
}

.product-card--supra .product-card__orbit {
  border-color: var(--supra-color);
}

/* Coming Soon Card */
.product-card--soon {
  border-style: dashed;
  background: transparent;
}

.product-card--soon:hover {
  border-color: var(--border-hover);
}

.product-card--soon .product-card__inner {
  grid-template-columns: 1fr;
  text-align: center;
  padding: var(--space-3xl);
}

.product-card--soon .product-card__content {
  align-items: center;
}

.product-card--soon .product-card__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-hover);
  margin-bottom: var(--space-lg);
}

.product-card--soon .product-card__icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.product-card--soon .product-card__name {
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.product-card--soon .product-card__desc {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   PROCESS SECTION
   ============================================= */
.process {
  padding: var(--space-5xl) 0;
  background: var(--bg-elevated);
  position: relative;
}

/* Subtle top/bottom fade borders */
.process::before,
.process::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.process::before { top: 0; }
.process::after { bottom: 0; }

.process__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.process__header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

/* Connecting line */
.process__timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--border-hover), var(--border));
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hover);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.process-step__number span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--duration);
}

.process-step__number svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: color var(--duration);
}

.process-step:hover .process-step__number {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(99, 102, 241, 0.06);
}

.process-step:hover .process-step__number span,
.process-step:hover .process-step__number svg {
  color: var(--accent-light);
}

.process-step__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.process-step__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 200px;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  padding: var(--space-5xl) 0;
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about__content {
  max-width: 480px;
}

.about__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.about__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.about__value {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 15px;
  color: var(--text-secondary);
}

.about__value-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__value-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

/* Stats */
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.stat-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-align: center;
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

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

.stat-card__num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-card__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.cta-section__inner {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  overflow: hidden;
}

.cta-section__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.cta-section__sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.footer__brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.footer__nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--duration);
}

.footer__nav a:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__location {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  color: var(--text-muted);
}

.footer__location svg {
  width: 14px;
  height: 14px;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  padding: 160px 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--accent-glow-lg) 0%, transparent 65%);
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
}

.contact-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.contact-hero__title .text-accent {
  color: var(--accent-light);
}

.contact-hero__sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact Layout */
.contact-main {
  padding: var(--space-2xl) 0 var(--space-5xl);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Info column */
.contact__info-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.contact__info-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact__info-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color var(--duration) var(--ease-out);
}

.contact__info-item:hover {
  border-color: var(--border-hover);
}

.contact__info-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__info-item-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

.contact__info-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact__info-item-val {
  font-size: 13px;
  color: var(--text-muted);
}

/* Form card */
.contact__form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.contact__form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.contact__form-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

/* Form elements */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

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

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out);
  -webkit-appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__select {
  cursor: pointer;
}

.form__select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.form__textarea {
  resize: vertical;
  min-height: 130px;
}

.form__submit {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  cursor: pointer;
}

/* Success message */
.form__success {
  display: none;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.form__success.visible {
  display: block;
}

.form__success-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.form__success-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-light);
}

.form__success-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.form__success-sub {
  font-size: 15px;
  color: var(--text-secondary);
}

/* =============================================
   RESPONSIVE — MOBILE-FIRST OVERHAUL
   ============================================= */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .process__timeline::before {
    display: none;
  }

  .product-card__inner {
    gap: var(--space-xl);
  }

  .cta-section__inner {
    padding: var(--space-3xl) var(--space-xl);
  }
}

/* ── Small Tablet / Large Phone (≤900px) ── */
@media (max-width: 900px) {
  .hero__badges {
    gap: var(--space-lg);
    flex-wrap: wrap;
  }

  /* Product cards → single column */
  .product-card__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-card__content {
    align-items: center;
    order: 2;
  }

  .product-card__visual {
    order: 1;
    min-height: 180px;
  }

  .product-card__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .product-card__cta {
    justify-content: center;
  }

  /* About → stacked */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about__content {
    max-width: 100%;
    text-align: center;
  }

  .about__values {
    align-items: center;
  }

  /* Contact → stacked */
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Phone (≤768px) — MAIN MOBILE BREAKPOINT ── */
@media (max-width: 768px) {

  /* ── Container ── */
  .container {
    padding: 0 20px;
  }

  /* ── Mobile Navbar ── */
  .navbar {
    padding: 12px 0;
  }

  .navbar__logo-icon {
    width: 44px;
    height: 44px;
  }

  .navbar__logo-text {
    font-size: 20px;
  }

  .navbar__logo-text span {
    font-size: 14px;
    margin-left: 4px;
  }

  /* ── Hamburger ── */
  .navbar__hamburger {
    display: flex;
    z-index: 201; /* Por encima del overlay del menú */
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--duration);
    position: relative; /* Establece su propio contexto de apilamiento */
  }

  .navbar__hamburger:active {
    background: rgba(255, 255, 255, 0.06);
  }

  .navbar__hamburger span {
    width: 22px;
    height: 2px;
    transition: transform 0.4s var(--ease-out),
                opacity 0.3s var(--ease-out);
  }

  /* ── Fullscreen Mobile Menu ── */
  /* z-index 200: por encima del navbar */
  .navbar__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    /* Fully opaque — no transparency */
    background-color: #09090b;
    background-image:
      radial-gradient(ellipse 60% 40% at 50% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 65%),
      radial-gradient(ellipse 40% 35% at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    z-index: 99;
    /* Top padding = navbar height + extra breathing room */
    padding: 80px var(--space-lg) var(--space-2xl);
    overflow-y: auto;

    /* Hidden by default — animated */
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out),
                visibility 0.35s;
  }

  .navbar__nav.open {
    opacity: 1;
    visibility: visible;
  }

  /* Menu links */
  .navbar__nav li {
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .navbar__nav li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .navbar__nav li:last-child {
    border-bottom: none;
  }

  .navbar__nav a {
    display: block;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    padding: 20px 0;
    transition: color var(--duration), transform var(--duration);

    /* Staggered entrance animation */
    opacity: 0;
    transform: translateY(16px);
    transition: color var(--duration),
                opacity 0.5s var(--ease-out),
                transform 0.5s var(--ease-out);
  }

  .navbar__nav.open a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger delays for each link */
  .navbar__nav li:nth-child(1) a { transition-delay: 0.05s; }
  .navbar__nav li:nth-child(2) a { transition-delay: 0.1s; }
  .navbar__nav li:nth-child(3) a { transition-delay: 0.15s; }
  .navbar__nav li:nth-child(4) a { transition-delay: 0.2s; }
  .navbar__nav li:nth-child(5) a { transition-delay: 0.25s; }

  .navbar__nav a:active,
  .navbar__nav a.active {
    color: var(--accent-light);
  }

  .navbar__nav a.active::after {
    display: none;
  }

  /* ── Sections spacing ── */
  .section {
    padding: var(--space-3xl) 0;
  }

  /* ── HERO — Mobile ── */
  .hero {
    min-height: 100svh;
    padding: var(--space-4xl) 0 var(--space-2xl);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: var(--space-md);
  }

  .hero__subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: var(--space-xl);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__badges {
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
  }

  .hero__badge {
    font-size: 13px;
  }

  /* Reduce orb sizes on mobile */
  .hero__bg::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -80px;
  }

  .hero__bg::after {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -60px;
  }

  /* ── PRODUCTS — Mobile ── */
  .products {
    padding: var(--space-3xl) 0;
  }

  .products__header {
    margin-bottom: var(--space-2xl);
  }

  .products__grid {
    gap: var(--space-xl);
  }

  .product-card__inner {
    padding: var(--space-lg);
    gap: var(--space-xl);
  }

  .product-card__name {
    font-size: 1.6rem;
  }

  .product-card__tagline {
    font-size: 16px;
    margin-bottom: var(--space-md);
  }

  .product-card__desc {
    font-size: 14px;
    margin-bottom: var(--space-lg);
  }

  .product-card__visual {
    min-height: 160px;
  }

  .product-card__icon-wrap {
    width: 88px;
    height: 88px;
  }

  .product-card__icon-wrap svg {
    width: 40px;
    height: 40px;
  }

  .product-card__orbit--1 {
    width: 150px;
    height: 150px;
  }

  .product-card__orbit--2 {
    width: 210px;
    height: 210px;
  }

  /* Coming soon card */
  .product-card--soon .product-card__inner {
    padding: var(--space-xl) var(--space-lg);
  }

  .product-card--soon .product-card__name {
    font-size: 1.1rem;
  }

  /* ── PROCESS — Mobile vertical timeline ── */
  .process {
    padding: var(--space-3xl) 0;
  }

  .process__header {
    margin-bottom: var(--space-2xl);
  }

  .process__timeline {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    padding-left: 40px;
  }

  /* Vertical connecting line */
  .process__timeline::before {
    content: '';
    display: block;
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 19px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--border-hover), var(--border), var(--border-hover));
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-md);
    padding: 0 0 var(--space-xl) 0;
    position: relative;
  }

  .process-step:last-child {
    padding-bottom: 0;
  }

  .process-step__number {
    position: absolute;
    left: -40px;
    top: 0;
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .process-step__number svg {
    width: 18px;
    height: 18px;
  }

  .process-step__label {
    font-size: 15px;
    margin-bottom: var(--space-xs);
  }

  .process-step__desc {
    font-size: 13px;
    max-width: 100%;
  }

  /* ── ABOUT — Mobile ── */
  .about__title {
    font-size: 1.6rem;
  }

  .about__desc {
    font-size: 15px;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .stat-card {
    padding: var(--space-lg);
  }

  .stat-card__num {
    font-size: 2rem;
  }

  .stat-card__label {
    font-size: 12px;
  }

  /* ── CTA — Mobile ── */
  .cta-section {
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .cta-section__inner {
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-lg);
  }

  .cta-section__title {
    font-size: 1.5rem;
  }

  .cta-section__sub {
    font-size: 15px;
    margin-bottom: var(--space-lg);
  }

  .cta-section .btn-lg {
    width: 100%;
  }

  /* ── FOOTER — Mobile ── */
  .footer {
    padding: var(--space-xl) 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-lg);
  }

  .footer__nav a {
    font-size: 14px;
  }

  /* ── CONTACT — Mobile ── */
  .contact-hero {
    padding: 120px 0 var(--space-xl);
  }

  .contact-hero__title {
    font-size: 1.8rem;
  }

  .contact-hero__sub {
    font-size: 15px;
  }

  .contact-main {
    padding: var(--space-lg) 0 var(--space-3xl);
  }

  .contact__info-title {
    font-size: 18px;
  }

  .contact__info-desc {
    font-size: 14px;
    margin-bottom: var(--space-lg);
  }

  .contact__info-item {
    padding: var(--space-md);
  }

  .contact__info-item-icon {
    width: 36px;
    height: 36px;
  }

  .contact__info-item-icon svg {
    width: 16px;
    height: 16px;
  }

  .contact__form-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }

  .contact__form-title {
    font-size: 18px;
    margin-bottom: var(--space-lg);
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .form__input,
  .form__select,
  .form__textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
  }

  .form__submit {
    padding: 16px;
    font-size: 15px;
  }

  /* Section titles mobile */
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-subtitle {
    font-size: 15px;
  }

  .section-label {
    font-size: 12px;
    margin-bottom: var(--space-md);
  }
}

/* ── Small Phone (≤400px) ── */
@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .navbar__logo-text {
    font-size: 17px;
  }

  .navbar__logo-text span {
    font-size: 12px;
  }

  .navbar__logo-icon {
    width: 36px;
    height: 36px;
  }

  .product-card__inner {
    padding: var(--space-md);
  }

  .product-card__name {
    font-size: 1.3rem;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .stat-card__num {
    font-size: 1.8rem;
  }

  .navbar__nav {
    padding: 70px var(--space-md) var(--space-xl);
  }

  .navbar__nav a {
    font-size: 20px;
    padding: 14px 0;
  }

  .cta-section__title {
    font-size: 1.3rem;
  }

  .contact__form-card {
    padding: var(--space-md);
  }
}

/* ── Safe area for notched phones ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
  }

  .navbar__nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Landscape phone ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0 var(--space-xl);
  }

  .hero__badges {
    display: none;
  }

  .navbar__nav {
    gap: 0;
    padding: var(--space-2xl) var(--space-lg);
  }

  .navbar__nav a {
    font-size: 18px;
    padding: 12px 0;
  }
}
