:root {
  --bg-0: #121419;
  --bg-1: #1a1d24;
  --chrome-100: #f3f6fb;
  --chrome-300: #cdd4e0;
  --chrome-500: #98a0b2;
  --chrome-700: #565d6f;
  --accent: #d1975a;
  --accent-2: #e8b579;
  --accent-soft: rgba(209, 151, 90, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-bg-strong: rgba(255, 255, 255, 0.065);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --text-0: #f2f4f7;
  --text-1: #9aa1b0;
  --text-2: #6b7280;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #1c1f27 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  color: var(--text-0);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, .brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p { color: var(--text-1); line-height: 1.65; font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Custom cursor ---------- */

body.custom-cursor, body.custom-cursor a, body.custom-cursor button,
body.custom-cursor input, body.custom-cursor textarea { cursor: none; }

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-soft);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(209, 151, 90,0.45);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.cursor-ring.cursor-hover {
  width: 56px; height: 56px;
  background: rgba(209, 151, 90,0.07);
  border-color: var(--accent);
}

/* ---------- Fondo ambiental ---------- */

.ambient-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  will-change: transform;
}
.b1 { width: 620px; height: 620px; top: -160px; left: -120px; background: var(--accent); animation: driftA 34s ease-in-out infinite; }
.b2 { width: 520px; height: 520px; bottom: -180px; right: -100px; background: #8a5a2b; animation: driftB 40s ease-in-out infinite; }
.b3 { width: 400px; height: 400px; top: 40%; left: 60%; background: var(--chrome-500); opacity: .12; animation: driftA 46s ease-in-out infinite reverse; }
@keyframes driftA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, 40px); } }
@keyframes driftB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-50px, -30px); } }
@media (prefers-reduced-motion: reduce) { .ambient-blob { animation: none; } }

/* Marca de agua: el logo enorme, fijo y tenue detrás de toda la página */
.bg-watermark {
  position: fixed;
  top: 50%; left: 50%;
  width: min(90vw, 900px);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: .045;
  filter: grayscale(1) brightness(1.6);
  animation: watermarkSpin 240s linear infinite;
}
@keyframes watermarkSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bg-watermark { animation: none; } }

/* ---------- Layout de secciones ---------- */

main { position: relative; z-index: 1; }

.scene {
  padding: 110px 20px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-inner {
  width: min(1180px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.scene-head { text-align: center; margin-bottom: 44px; }
.scene-head h2, .about-text h2, .contact-glass h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: var(--text-0);
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.scene-head-lg {
  font-size: clamp(2.5rem, 5.6vw, 4rem) !important;
  letter-spacing: -0.02em;
}

/* ---------- Glass base ---------- */

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 0 40px rgba(255,255,255,0.02),
    0 30px 70px -25px rgba(0,0,0,0.6);
  position: relative;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(209, 151, 90,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* ---------- HUD corners ---------- */

.hud-corners::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  pointer-events: none;
  border-radius: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 14px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 14px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1.5px 14px no-repeat;
  opacity: 0.3;
  transition: opacity .4s var(--ease);
}
.hud-corners:hover::after { opacity: 0.9; }

/* ---------- Sheen (navbar) ---------- */

.sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.08) 47%, rgba(209, 151, 90,0.16) 50%, rgba(255,255,255,0.08) 53%, transparent 65%);
  background-size: 250% 250%;
  background-position: 200% 0;
  pointer-events: none;
  animation: sheen 8s ease-in-out infinite;
}
@keyframes sheen {
  0% { background-position: 220% 0; }
  45%, 100% { background-position: -60% 0; }
}

/* ---------- Tilt sheen ---------- */

.tilt {
  /* La posición "estructural" (--stagger, definida por nth-child donde aplique)
     y la inclinación del mouse (--tilt-rx/--tilt-ry, escritas por JS) conviven
     en el mismo transform — así el hover nunca borra el acomodo en escalera. */
  transform: var(--stagger, none) perspective(700px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateY(var(--tilt-y, 0px));
  transition: transform .45s var(--ease-spring), box-shadow .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.16), transparent 55%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.tilt:hover::after { opacity: 1; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  /* El efecto magnético (JS) solo escribe --mgx/--mgy/--mgs, nunca transform. */
  transform: translate(var(--mgx, 0px), var(--mgy, 0px)) scale(var(--mgs, 1));
  transition: transform 0.4s var(--ease-spring), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  border: none;
  position: relative;
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
  background-size: 220% 100%;
  background-position: 160% 0;
  opacity: 0;
  transition: opacity .3s var(--ease), background-position .7s var(--ease);
  pointer-events: none;
}
.btn:hover::before { opacity: 1; background-position: -60% 0; }
.btn-primary {
  background: linear-gradient(135deg, #f2f6fb 0%, #b7c0d1 45%, #d1975a 100%);
  color: #0a0d12;
  box-shadow: 0 10px 30px -8px rgba(209, 151, 90,0.45), inset 0 1px 0 rgba(255,255,255,0.7);
}
.btn-primary:hover { box-shadow: 0 16px 42px -8px rgba(209, 151, 90,0.65), inset 0 1px 0 rgba(255,255,255,0.7); }
.btn-glass {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--text-0);
  backdrop-filter: blur(16px);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: rgba(209, 151, 90,0.4); }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 50;
  border-radius: 999px;
  overflow: hidden;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 16px;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(209, 151, 90,0.3));
  transition: filter .4s var(--ease);
}
.brand:hover .brand-mark { filter: drop-shadow(0 2px 14px rgba(209, 151, 90,0.55)); }
.brand-word {
  font-size: 1.08rem;
  color: var(--text-0);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-divider {
  display: none;
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--glass-border), rgba(255,255,255,0.02));
}
.brand-tagline {
  display: none;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-1);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (min-width: 1320px) {
  .brand-divider, .brand-tagline { display: block; }
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--text-2);
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-1);
}
.nav-links a { transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-2); }
.nav-cta { font-size: 0.8rem; padding: 10px 20px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span { width: 100%; height: 2px; background: var(--text-0); border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  position: fixed;
  top: 76px;
  right: 16px;
  left: 16px;
  z-index: 49;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 4px;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 12px 8px; border-radius: 10px; color: var(--text-1); font-weight: 500; }
.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text-0); }
.mobile-menu .btn { margin-top: 8px; }

/* ---------- Progress rail ---------- */

.progress-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 45;
}
.rail-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.rail-dot span {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  opacity: 0;
  white-space: nowrap;
  transition: opacity .25s;
  pointer-events: none;
}
.rail-dot:hover span { opacity: 1; }
.rail-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

/* ---------- Hero scene ---------- */

.hero-frame {
  width: min(1180px, 100%);
  min-height: min(78vh, 680px);
  border-radius: 42px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-inner { text-align: center; }
.eyebrow { color: var(--text-1); margin-bottom: 24px; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(209, 151, 90,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(209, 151, 90,0); }
  100% { box-shadow: 0 0 0 0 rgba(209, 151, 90,0); }
}

.logo-stage-wrap { perspective: 800px; margin-bottom: 4px; }
.logo-stage {
  position: relative;
  width: 300px;
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform .3s ease-out;
}
.smoke-canvas { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hud-ring {
  position: absolute;
  top: 46%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ring-outer {
  width: 252px; height: 252px;
  border: 1px dashed rgba(209, 151, 90,0.2);
  animation: spin 34s linear infinite;
}
.ring-inner {
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,0.1);
  animation: spin 24s linear infinite reverse;
}
.ring-ticks {
  width: 294px; height: 294px;
  background: repeating-conic-gradient(rgba(209, 151, 90,0.25) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 64%, #000 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 63%, #000 64%, #000 66%, transparent 67%);
  animation: spin 60s linear infinite;
  opacity: 0.42;
}
.satellite {
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 3px var(--accent-soft);
}
.hero-logo {
  position: relative;
  z-index: 2;
  width: 136px;
  margin-bottom: 30px;
  filter: drop-shadow(0 8px 30px rgba(209, 151, 90,0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-inner h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--text-0);
}
.gradient-text {
  background: linear-gradient(100deg, var(--chrome-700) 0%, var(--chrome-100) 22%, var(--accent-2) 34%, var(--chrome-100) 46%, var(--chrome-700) 62%, var(--chrome-500) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -240% 0; } }

.hero-sub {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  z-index: 2;
}
.scroll-line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrollmove 2s infinite; }
@keyframes scrollmove { 0% { opacity: 0; transform: scaleY(0.3); } 40% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); } }

/* ---------- Tags ---------- */

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Services (arco fijo de paneles) ---------- */

.services-arc {
  display: flex;
  gap: 20px;
  justify-content: center;
  perspective: 1000px;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.service-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 260px;
  flex-shrink: 0;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.services-arc .service-card:nth-child(1) { transform: rotateY(10deg) translateZ(-22px); }
.services-arc .service-card:nth-child(2) { transform: rotateY(0deg) translateZ(14px); }
.services-arc .service-card:nth-child(3) { transform: rotateY(-10deg) translateZ(-22px); }
.services-arc .service-card:hover {
  transform: rotateY(0deg) translateZ(46px);
  border-color: rgba(209, 151, 90,0.45);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 40px 80px -30px rgba(209, 151, 90,0.35);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover .service-icon {
  border-color: rgba(209, 151, 90,0.5);
  box-shadow: 0 0 22px rgba(209, 151, 90,0.28);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; color: var(--text-0); margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.service-card p { font-size: 0.85rem; margin: 0 0 14px; }
.service-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.service-list li {
  font-size: 0.8rem;
  color: var(--text-1);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--chrome-100), var(--accent));
}

/* ---------- Process: escalera ascendente hacia el despegue ---------- */

.process-cluster {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  padding: 30px 0 50px;
}
.process-line {
  position: absolute;
  top: 50%;
  left: 3%;
  right: 3%;
  height: 2px;
  z-index: 0;
  transform: translateY(-50%) rotate(-3.4deg);
  pointer-events: none;
}
.process-line-track {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.process-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
  transition: width 1.8s var(--ease);
}
.process-nodes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6.5%;
}
.process-nodes span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.process-nodes.lit span { background: var(--accent-2); border-color: var(--accent); box-shadow: 0 0 12px var(--accent-soft); transform: scale(1.25); }
.process-nodes.lit span:nth-child(1) { transition-delay: .1s; }
.process-nodes.lit span:nth-child(2) { transition-delay: .55s; }
.process-nodes.lit span:nth-child(3) { transition-delay: 1s; }
.process-nodes.lit span:nth-child(4) { transition-delay: 1.45s; }

.process-step {
  border-radius: var(--radius-md);
  padding: 26px 22px;
  width: 232px;
  flex-shrink: 0;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.process-cluster .process-step:nth-child(2) { --stagger: translateY(13px) translateZ(-33px); }
.process-cluster .process-step:nth-child(3) { --stagger: translateY(1px) translateZ(-9px); }
.process-cluster .process-step:nth-child(4) { --stagger: translateY(-10px) translateZ(12px); }
.process-cluster .process-step:nth-child(5) { --stagger: translateY(-20px) translateZ(30px); }
.process-cluster .process-step:hover {
  border-color: rgba(209, 151, 90,0.45);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 34px 70px -28px rgba(209, 151, 90,0.32);
}
.process-cluster .process-step:nth-child(2):hover { --stagger: translateY(6px) translateZ(-18px); }
.process-cluster .process-step:nth-child(3):hover { --stagger: translateY(-5px) translateZ(6px); }
.process-cluster .process-step:nth-child(4):hover { --stagger: translateY(-14px) translateZ(27px); }
.process-cluster .process-step:nth-child(5):hover { --stagger: translateY(-25px) translateZ(45px); }

.process-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.process-step:hover .process-icon {
  border-color: rgba(209, 151, 90,0.5);
  box-shadow: 0 0 20px rgba(209, 151, 90,0.28);
}
.process-icon svg { width: 23px; height: 23px; }

.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(100deg, var(--chrome-700) 0%, var(--chrome-100) 30%, var(--accent-2) 50%, var(--chrome-100) 70%, var(--chrome-700) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
.process-step h3 { margin: 6px 0 6px; font-size: 1.1rem; color: var(--text-0); font-weight: 700; letter-spacing: -0.01em; }
.process-step p { font-size: 0.83rem; margin: 0; }

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 22px;
  width: 100%;
}
.portfolio-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.portfolio-card h3 { font-size: 1.1rem; color: var(--text-0); margin: 4px 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.portfolio-card > p { font-size: 0.85rem; margin: 0 0 12px; }

.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.portfolio-tags span {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(209, 151, 90, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Mini "ventana de navegador" que recrea, sin datos reales, la sensación de cada sistema */
.portfolio-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 14px;
  background: #0b0c10;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--glass-border);
}
.frame-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.frame-url {
  margin-left: 8px;
  font-size: 0.66rem;
  color: var(--text-2);
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 2px 8px;
}
.frame-body { min-height: 168px; display: flex; }

.frame-body--self {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(209, 151, 90, 0.18), transparent 70%);
}
.frame-self-logo { width: 40px; opacity: .9; }
.frame-body--self p { font-size: 0.78rem; color: var(--text-1); margin: 0; }

/* Estos dos temas son intencionalmente distintos a la paleta del sitio — son "capturas" de otros productos */
.frame-body--teal { background: linear-gradient(165deg, #f4fbfa 0%, #e6f5f2 100%); }
.frame-body--teal .frame-side { background: linear-gradient(175deg, #14877c 0%, #0c5f56 100%); }
.frame-body--teal .frame-stat strong { color: #0f766e; }

.frame-body--green { background: linear-gradient(165deg, #f3faf4 0%, #e5f5e8 100%); }
.frame-body--green .frame-side--green { background: linear-gradient(175deg, #1c9048 0%, #106030 100%); }
.frame-body--green .frame-stat strong { color: #15803d; }

.frame-side {
  width: 34%;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.frame-side-item {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 5px 6px;
  border-radius: 5px;
}
.frame-side-item.active { background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }

.frame-main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.frame-stats { display: flex; gap: 6px; margin-bottom: 4px; }
.frame-stat {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 7px 4px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(15, 30, 25, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.frame-stat strong { display: block; font-size: 0.92rem; font-family: var(--font-display); font-weight: 700; }
.frame-stat span { font-size: 0.55rem; color: #6b7280; }
.frame-stat-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 1px;
}
.frame-stat-icon svg { width: 11px; height: 11px; }
.frame-stat-icon--teal { background: rgba(15, 118, 110, 0.12); color: #0f766e; }
.frame-stat-icon--green { background: rgba(21, 128, 61, 0.12); color: #15803d; }

.frame-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  color: #374151;
  background: #fff;
  border-radius: 7px;
  padding: 6px 8px;
  box-shadow: 0 2px 5px rgba(15, 30, 25, 0.06);
}
.frame-row-label { flex: 1; font-weight: 500; }
.frame-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.56rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.frame-avatar--teal { background: linear-gradient(140deg, #14877c, #0c5f56); }
.frame-pill {
  font-size: 0.5rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.frame-pill--ok { background: rgba(21, 128, 61, 0.12); color: #15803d; }
.frame-pill--wait { background: rgba(202, 138, 4, 0.14); color: #a16207; }

.frame-occ-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  color: #374151;
  background: #fff;
  border-radius: 7px;
  padding: 6px 8px;
  box-shadow: 0 2px 5px rgba(15, 30, 25, 0.06);
}
.frame-occ-row .frame-row-label { flex: 0 0 32%; font-weight: 500; }
.frame-progress {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.12);
  overflow: hidden;
}
.frame-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1c9048, #15803d);
}
.frame-occ-pct { font-weight: 700; color: #15803d; font-size: 0.6rem; width: 26px; text-align: right; }

/* ---------- About ---------- */

.about-glass {
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: 1020px;
}
.about-text p { font-size: 0.95rem; }
.about-points { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 26px; }
.point { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-1); }
.point .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(209, 151, 90,0.7); flex-shrink: 0; }
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
}
.about-logo { width: 100px; z-index: 2; filter: drop-shadow(0 10px 30px rgba(209, 151, 90,0.35)); }
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.ring-1 { width: 190px; height: 190px; animation: spinring 22s linear infinite; border-top-color: var(--accent); opacity: .8; }
.ring-2 { width: 246px; height: 246px; animation: spinring 34s linear infinite reverse; border-right-color: var(--accent-2); opacity: .6; }
.ring-2 .satellite-alt { background: var(--accent-2); box-shadow: 0 0 10px 3px rgba(232, 181, 121, 0.5); }
@keyframes spinring { to { transform: rotate(360deg); } }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1020px;
  margin-top: 24px;
}
.mv-card { border-radius: var(--radius-lg); padding: 30px 28px; }
.mv-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.mv-icon svg { width: 24px; height: 24px; }
.mv-card .tag { display: block; margin: 4px 0 10px; }
.mv-text { font-size: 0.92rem; margin: 0; }

.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  min-width: 112px;
  position: relative;
}
.stat-glass strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--accent-2); text-shadow: 0 0 18px rgba(209, 151, 90,0.35); }
.stat-glass span { font-size: 0.72rem; color: var(--text-2); }

/* ---------- Contact ---------- */

.contact-glass {
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  text-align: center;
  width: 100%;
  max-width: 640px;
}
.contact-sub { max-width: 420px; margin: 0 auto 26px; font-size: 0.95rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-item {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  text-align: left;
  justify-content: flex-start;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color .3s var(--ease);
}
.contact-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); border-color: rgba(209, 151, 90,0.4); }
.contact-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.85rem; color: var(--text-0); font-weight: 600; }
.contact-item span { font-size: 0.76rem; color: var(--text-2); }

.contact-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: #7bcf9e; }
.form-status.error { color: #e88a8a; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.3s, background 0.3s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-2); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: rgba(209, 151, 90,0.55);
  background: rgba(255,255,255,0.08);
}

/* ---------- Final scene ---------- */

.final-inner { text-align: center; }
.final-logo {
  width: 110px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 10px 34px rgba(209, 151, 90,0.4));
  animation: float 6s ease-in-out infinite;
}
.final-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.final-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 34px;
}
.footer-copy { font-size: 0.75rem; color: var(--text-2); margin-top: 40px; }

/* ---------- WhatsApp FAB ---------- */

.whatsapp-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #35d488, #17a865);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(23,168,101,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 40;
  transition: transform 0.3s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 26px; height: 26px; color: #fff; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .tilt { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
  .services-arc { flex-wrap: wrap; max-width: 620px; }
  .services-arc .service-card:nth-child(n) { transform: none; width: calc(50% - 10px); }
  .services-arc .service-card:nth-child(n):hover { transform: translateZ(20px); }
  .process-cluster { flex-wrap: wrap; max-width: 620px; padding: 0; }
  .process-cluster .process-step:nth-child(n) { transform: none; width: calc(50% - 11px); }
  .process-cluster .process-step:nth-child(n):hover { transform: translateY(-6px); }
  .process-line { display: none; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .about-glass { grid-template-columns: 1fr; padding: 30px; gap: 20px; }
  .about-visual { height: 170px; order: -1; }
  .about-visual .ring-2 { width: 190px; height: 190px; }
  .about-visual .ring-1 { width: 150px; height: 150px; }
  .about-logo { width: 76px; }
  .mv-grid { grid-template-columns: 1fr; }
  .progress-rail { right: 10px; gap: 12px; }
  .rail-dot span { display: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .scene-inner { padding: 84px 0 30px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-glass { padding: 28px 22px; }
  .services-arc { gap: 12px; }
  .services-arc .service-card:nth-child(n) { width: calc(50% - 6px); padding: 18px 14px; }
  .service-card p { display: none; }
  .service-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .process-cluster { gap: 12px; }
  .process-step { width: calc(50% - 6px); padding: 18px 16px; }
  .process-step p { font-size: 0.76rem; }
  .logo-stage { width: 180px; height: 190px; }
  .hero-logo { width: 68px; margin-bottom: 26px; }
  .ring-outer { width: 148px; height: 148px; }
  .ring-inner { width: 116px; height: 116px; }
  .ring-ticks { width: 174px; height: 174px; }
  .eyebrow { font-size: 0.58rem; padding: 8px 14px; margin-bottom: 16px; }
  .scene-head { margin-bottom: 26px; }
  .hero-inner h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 0.92rem; margin-bottom: 22px; }
  .scroll-cue { display: none; }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
