/* ═══════════════════════════════════════════════════════════════
   RUNIMA CONSULTING — styles.css
   Sistema de diseño: Negro premium + Dorado
═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --bg-card: #141414;
  --bg-card-h: #1A1A1A;

  --gold: #C9A96E;
  --gold-2: #E0BC7E;
  --gold-3: #F0D080;
  --gold-grad: linear-gradient(135deg, #C9A96E 0%, #F0D080 50%, #C9A96E 100%);
  --gold-glow: 0 0 30px rgba(201, 169, 110, .18);

  --white: #FFFFFF;
  --text: #F0EDE8;
  --text-2: #AAAAAA;
  --text-3: #666666;

  --border: rgba(201, 169, 110, .12);
  --border-2: rgba(201, 169, 110, .30);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  --nav-h: 80px;
  --trans: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ── Typography helpers ────────────────────────────────────── */
.text-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-2);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  cursor: pointer;
  border: none;
  transition: transform var(--trans), box-shadow var(--trans), opacity var(--trans);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold-grad);
  color: #0A0A0A;
}

.btn-primary:hover {
  box-shadow: var(--gold-glow), 0 8px 24px rgba(0, 0, 0, .3);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: rgba(201, 169, 110, .07);
  border-color: var(--gold);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ── Interactive Hover Button ──────────────────────────────── */
.interactive-hover-btn {
  position: relative;
  overflow: hidden;
  background: var(--gold-grad);
  border: 2px solid var(--gold);
  color: #0A0A0A;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 15px rgba(201, 169, 110, 0.3);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.interactive-hover-btn .ihb-text-main {
  display: inline-block;
  transform: translateX(4px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 20;
  font-weight: 700;
}

.interactive-hover-btn .ihb-content-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(48px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 20;
  font-weight: 700;
}

.interactive-hover-btn .ihb-bg-circle {
  position: absolute;
  left: 20%;
  top: 40%;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--bg-card);
  transition: all 0.3s ease;
  z-index: 10;
  transform: scale(0);
  opacity: 0;
}

.interactive-hover-btn:hover {
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.6);
  border-color: var(--gold-3); /* Makes the border pop even more */
}

.interactive-hover-btn:hover .ihb-text-main {
  transform: translateX(48px);
  opacity: 0;
}

.interactive-hover-btn:hover .ihb-content-hover {
  transform: translateX(-4px);
  opacity: 1;
}

.interactive-hover-btn:hover .ihb-bg-circle {
  left: 0%;
  top: 0%;
  width: 100%;
  height: 100%;
  transform: scale(2);
  opacity: 1;
  border-radius: var(--radius-pill);
}

/* ── Animations (Intersection Observer) ───────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--trans), border-color var(--trans), backdrop-filter var(--trans);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.logo-text strong {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--trans);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--trans);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 4px;
  transition: color var(--trans);
}

.lang-btn.active {
  color: var(--gold);
}

.lang-btn:hover {
  color: var(--gold-2);
}

.lang-sep {
  color: var(--text-3);
  font-size: .75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans), background var(--trans);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, .98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--trans);
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════
   HERO — Fondo interactivo CSS (patrón 21st.dev / Vercel)
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  /* Posición del cursor en px — actualizada por JS */
  --mouse-x: 50%;
  --mouse-y: 40%;
}

/* ── Canvas de ondas — capa más baja del hero ────────────── */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ── Spotlight: radial gradient que sigue al cursor ─────── */
/* Patrón de Vercel/Linear/21st.dev — puro CSS custom props */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(700px circle at var(--mouse-x) var(--mouse-y),
      rgba(201, 169, 110, 0.13) 0%,
      rgba(201, 169, 110, 0.04) 35%,
      transparent 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero.spotlight-active .hero-spotlight {
  opacity: 1;
}

/* ── Orbes flotantes autónomos ───────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 800px;
  height: 800px;
  top: -25%;
  left: 15%;
  background: radial-gradient(circle, rgba(201, 169, 110, .08) 0%, transparent 65%);
  animation: orbDrift1 20s ease-in-out infinite;
}

.orb-2 {
  width: 550px;
  height: 550px;
  top: 25%;
  right: -12%;
  background: radial-gradient(circle, rgba(201, 169, 110, .05) 0%, transparent 65%);
  animation: orbDrift2 16s ease-in-out infinite;
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -8%;
  left: 5%;
  background: radial-gradient(circle, rgba(201, 169, 110, .06) 0%, transparent 65%);
  animation: orbDrift3 22s ease-in-out infinite;
}

@keyframes orbDrift1 {

  0%,
  100% {
    transform: translate(0px, 0px);
  }

  25% {
    transform: translate(50px, -35px);
  }

  50% {
    transform: translate(25px, 25px);
  }

  75% {
    transform: translate(-35px, -15px);
  }
}

@keyframes orbDrift2 {

  0%,
  100% {
    transform: translate(0px, 0px);
  }

  33% {
    transform: translate(-45px, 30px);
  }

  66% {
    transform: translate(30px, -40px);
  }
}

@keyframes orbDrift3 {

  0%,
  100% {
    transform: translate(0px, 0px);
  }

  40% {
    transform: translate(30px, -45px);
  }

  70% {
    transform: translate(-25px, 20px);
  }
}

/* ── Grid dorado ─────────────────────────────────────────── */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 110, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, black 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Reducir movimiento ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  .orb-1,
  .orb-2,
  .orb-3 {
    animation: none;
  }

  .hero-spotlight {
    transition: none;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-2);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  animation: fadeInUp .8s ease .2s both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  animation: fadeInUp .8s ease .4s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp .8s ease .6s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp .8s ease .8s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease 1s both;
}

.stat {
  text-align: left;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-2);
}

.stats-disclaimer {
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 12px;
  animation: fadeInUp .8s ease 1.1s both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    opacity: 1;
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  50.01% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════════════════════════════════════════════════════════
   DIAGNÓSTICO
════════════════════════════════════════════════════════════ */
.diagnostico {
  background: var(--bg-2);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.pain-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pain-card p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}

.diag-cta {
  text-align: center;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(201, 169, 110, .04) 0%, transparent 100%);
}

.diag-cta p {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 28px;
}

/* ════════════════════════════════════════════════════════════
   SERVICIOS
════════════════════════════════════════════════════════════ */
.servicios {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Fuerza exactamente 2 columnas */
  gap: 20px;
  align-items: stretch;
  /* Asegura que la altura sea idéntica en cada fila */
}

/* ── Perspectiva 3D para el grid de servicios ────────────── */
.services-grid {
  perspective: 1200px;
}

/* ── Service Card — Frosted Glass + 3D Tilt ─────────────── */
.service-card {
  /* Glassmorphism dark */
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 169, 110, .15);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  /* Tilt vía JS — transición al soltar */
  transition: border-color .25s ease, box-shadow .25s ease, transform .45s cubic-bezier(.23, 1, .32, 1);
  transform-style: preserve-3d;
  will-change: transform;
  /* Variables del spotlight */
  --mouse-x: 50%;
  --mouse-y: 50%;
  cursor: pointer;
}

/* Spotlight interno — sigue al ratón dentro de cada card */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mouse-x) var(--mouse-y),
      rgba(201, 169, 110, .14) 0%,
      transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 0;
}

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

/* Asegurar que el contenido esté por encima del spotlight */
.service-card>* {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  border-color: rgba(201, 169, 110, .35);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, .1),
    0 24px 64px rgba(0, 0, 0, .5),
    0 0 40px rgba(201, 169, 110, .07);
}

/* Featured card */
.service-card.featured {
  background: rgba(201, 169, 110, .04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(201, 169, 110, .28);
}

.service-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-grad);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 2;
}

.service-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 169, 110, .1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.service-icon-wrap {
  display: flex;
}

.service-icon {
  font-size: 2.2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.service-card p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.service-list li {
  font-size: .85rem;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.service-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
  transition: letter-spacing var(--trans);
}

.service-link:hover {
  letter-spacing: .02em;
}

/* ════════════════════════════════════════════════════════════
   CASOS DE ÉXITO — Case Showcase Blocks
════════════════════════════════════════════════════════════ */
.casos { background: var(--bg-2); }

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Bloque individual ─────────────────────────────────── */
.case-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--trans);
}

.case-block:hover { border-color: var(--border-2); }

/* Flip para caso 2 */
.case-block.reverse { grid-template-columns: 2fr 1fr; }
.case-block.reverse .case-visual { order: 2; }
.case-block.reverse .case-story  { order: 1; }

/* ── Columna visual ────────────────────────────────────── */
.case-visual {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background-image: radial-gradient(
    circle at 50% 0%,
    rgba(201, 169, 110, .06) 0%,
    transparent 60%
  );
}

.case-block.reverse .case-visual {
  border-right: none;
  border-left: 1px solid var(--border);
}

.case-num {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  letter-spacing: -.02em;
  user-select: none;
}

.case-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(201, 169, 110, .08);
  border: 1px solid rgba(201, 169, 110, .2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

/* Métrica (Caso 1) */
.case-metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.metric-value sup {
  font-size: 1rem;
  font-weight: 700;
}

.metric-label {
  font-size: .78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  max-width: 160px;
  text-align: center;
}

/* Ring de progreso (Caso 2) */
.case-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.case-ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(201, 169, 110, .12);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: url(#goldGrad);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s ease;
}

.ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-status-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── Columna story ─────────────────────────────────────── */
.case-story {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-sector-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.case-company {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.in-progress-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* ── Timeline ──────────────────────────────────────────── */
.case-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

/* Línea conectora: un segmento por item, del fondo del nodo actual al centro del siguiente */
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;     /* centro del nodo 40px (40/2 - 1 = 19) */
  top: 40px;      /* justo debajo del nodo actual */
  bottom: -20px;  /* 20px dentro del item siguiente = centro del próximo nodo */
  width: 1px;
  opacity: 0.45;
}

.timeline-item.problem:not(:last-child)::before  { background: #ff6060; }
.timeline-item.solution:not(:last-child)::before { background: var(--gold); }
.timeline-item.result:not(:last-child)::before   { background: #60c060; }

.timeline-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline-item.problem .timeline-node {
  background: var(--bg-2);
  border: 1.5px solid rgba(255, 80, 80, .5);
  color: #ff6060;
  box-shadow: inset 0 0 0 40px rgba(255, 80, 80, .08);
}

.timeline-item.solution .timeline-node {
  background: var(--bg-2);
  border: 1.5px solid rgba(201, 169, 110, .5);
  color: var(--gold);
  box-shadow: inset 0 0 0 40px rgba(201, 169, 110, .08);
}

.timeline-item.result .timeline-node {
  background: var(--bg-2);
  border: 1.5px solid rgba(80, 200, 80, .5);
  color: #60c060;
  box-shadow: inset 0 0 0 40px rgba(80, 200, 80, .08);
}

.timeline-item.pending .timeline-node {
  background: var(--bg-2);
  border: 1.5px solid rgba(150, 150, 150, .3);
  color: var(--text-3);
  box-shadow: inset 0 0 0 40px rgba(150, 150, 150, .06);
}

.timeline-body {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.timeline-item.problem .timeline-label  { color: #ff6060; }
.timeline-item.solution .timeline-label { color: var(--gold); }
.timeline-item.result .timeline-label   { color: #60c060; }
.timeline-item.pending .timeline-label  { color: var(--text-3); }

.timeline-body p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Link CTA ──────────────────────────────────────────── */
.case-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-block;
  margin-top: auto;
  transition: letter-spacing var(--trans), opacity var(--trans);
}

.case-link:hover {
  letter-spacing: .02em;
  opacity: .8;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .case-block,
  .case-block.reverse {
    grid-template-columns: 1fr;
  }
  .case-block.reverse .case-visual { order: 0; }
  .case-block.reverse .case-story  { order: 1; }
  .case-block.reverse .case-visual {
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
  .case-visual {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 32px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .case-num { font-size: 3.5rem; }
  .case-story { padding: 36px 32px; }
}

/* ════════════════════════════════════════════════════════════
   PROCESO
════════════════════════════════════════════════════════════ */
.proceso {
  background: var(--bg);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 16px;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  position: relative;
}

.step-num::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--gold-grad);
  z-index: -1;
  opacity: .15;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.step-body p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
}

.process-connector {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 32px;
  min-width: 20px;
  opacity: .35;
}

/* ════════════════════════════════════════════════════════════
   PACKS
════════════════════════════════════════════════════════════ */
.packs {
  background: var(--bg-2);
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.pack-card:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.pack-card.featured {
  border-color: rgba(201, 169, 110, .35);
  background: linear-gradient(160deg, rgba(201, 169, 110, .07) 0%, var(--bg-card) 55%);
}

.pack-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-grad);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pack-popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-grad);
  color: #0A0A0A;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pack-icon {
  font-size: 2rem;
}

.pack-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.pack-target {
  font-size: .85rem;
  color: var(--text-3);
}

.pack-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pack-features li {
  font-size: .88rem;
  color: var(--text-2);
}

.pack-card.featured .pack-features li {
  color: var(--text);
}

.packs-note {
  text-align: center;
  font-size: .9rem;
  color: var(--text-3);
}

/* ════════════════════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--bg);
  padding: 60px 0;
}

.cta-box {
  text-align: center;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  background: linear-gradient(135deg, rgba(201, 169, 110, .05) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-grad);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   CONTACTO
════════════════════════════════════════════════════════════ */
.contacto {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0;
}

.contacto .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.contact-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-success {
  display: none;
  background: rgba(80, 200, 80, .08);
  border: 1px solid rgba(80, 200, 80, .25);
  color: #70d070;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  align-items: center;
  gap: 10px;
}

.form-success:not([hidden]) {
  display: flex;
}

.form-error {
  display: none;
  background: rgba(255, 80, 80, .08);
  border: 1px solid rgba(255, 80, 80, .25);
  color: #ff7070;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
}

.form-error:not([hidden]) {
  display: block;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.contact-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--trans);
}

a.contact-value:hover {
  color: var(--gold);
}

.contact-soon {
  color: var(--text-3);
  font-style: italic;
}

.wa-direct {
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
}

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

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-logo-text {
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-logo-text strong {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: .88rem;
  color: var(--text-3);
  max-width: 260px;
}

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

.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: .88rem;
  color: var(--text-3);
  transition: color var(--trans);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .8rem;
  color: var(--text-3);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: .8rem;
  color: var(--text-3);
  transition: color var(--trans);
}

.footer-legal a:hover {
  color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   WHATSAPP WIDGET
════════════════════════════════════════════════════════════ */
.wa-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 14px 20px 14px 16px;
  box-shadow: 0 8px 32px rgba(37, 211, 102, .3);
  transition: transform var(--trans), box-shadow var(--trans);
  animation: fadeInUp .8s ease 1.5s both;
}

.wa-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, .4);
}

.wa-ring {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(37, 211, 102, .4);
  animation: ringPulse 2.5s ease infinite;
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: .7;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.wa-label {
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   ROBOT PANEL — RUNA (Asistente IA de contacto)
════════════════════════════════════════════════════════════ */

/* ── Contenedor principal del panel ─────────────────────── */
.robot-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
}

/* ── Flotación: capa externa ─────────────────────────────── */
.robot-float-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: robotFloat 3.2s ease-in-out infinite;
  margin-bottom: 6px;
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

/* ── Inclinación: capa media (JS controla transform) ─────── */
.robot-lean-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.22s ease-out;
}

/* ── Robot: capa interna (salto / celebración) ───────────── */
.ai-robot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Salto al hacer click */
@keyframes robotJump {
  0%   { transform: translateY(0)    scaleX(1)    scaleY(1); }
  20%  { transform: translateY(-24px) scaleX(1.06) scaleY(0.96); }
  50%  { transform: translateY(-8px)  scaleX(0.97) scaleY(1.03); }
  72%  { transform: translateY(-16px) scaleX(1.03) scaleY(0.98); }
  100% { transform: translateY(0)    scaleX(1)    scaleY(1); }
}

.ai-robot.robot-jumping {
  animation: robotJump 0.65s cubic-bezier(.36,.07,.19,.97) !important;
}

/* Celebración (formulario completo) */
.ai-robot.robot-celebrating .robot-body {
  border-color: rgba(201,169,110,.95) !important;
  box-shadow: 0 0 40px rgba(201,169,110,.45) !important;
}

.ai-robot.robot-celebrating .robot-head {
  border-color: rgba(201,169,110,.95) !important;
  box-shadow: 0 0 30px rgba(201,169,110,.35) !important;
}

.ai-robot.robot-celebrating .arm-left {
  animation: none !important;
  transform: rotate(-50deg) !important;
  transform-origin: top center;
  transition: transform 0.4s ease !important;
}

.ai-robot.robot-celebrating .arm-right {
  animation: none !important;
  transform: rotate(50deg) !important;
  transform-origin: top center;
  transition: transform 0.4s ease !important;
}

.ai-robot.robot-celebrating .status-dot {
  background: #44dd88 !important;
  opacity: 1 !important;
  transform: scale(1.3) !important;
  animation: none !important;
}

/* ── Antena ──────────────────────────────────────────────── */
.robot-antenna {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -1px;
  z-index: 1;
}

.antenna-orb {
  width: 11px;
  height: 11px;
  background: var(--gold-3);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold), 0 0 20px rgba(201, 169, 110, .45);
  animation: antennaPulse 2s ease-in-out infinite;
  margin-bottom: 2px;
}

@keyframes antennaPulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 8px var(--gold), 0 0 20px rgba(201,169,110,.45); }
  50%       { transform: scale(1.4); box-shadow: 0 0 14px var(--gold), 0 0 34px rgba(201,169,110,.7); }
}

.antenna-stick {
  width: 3px;
  height: 20px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,169,110,.2));
  border-radius: 2px;
}

/* ── Cabeza ──────────────────────────────────────────────── */
.robot-head {
  width: 108px;
  height: 76px;
  background: #0c0c0c;
  border: 1.5px solid rgba(201, 169, 110, .55);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 22px rgba(201,169,110,.1), inset 0 0 16px rgba(0,0,0,.6);
}

/* Visor / pantalla de la cara */
.robot-visor {
  width: 80px;
  height: 48px;
  background: rgba(201, 169, 110, .035);
  border: 1px solid rgba(201, 169, 110, .2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  position: relative;
  overflow: hidden;
}

/* Línea de escaneo */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,.7), transparent);
  top: 0;
  animation: scanLine 2.4s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0%   { top: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Ojos */
.robot-eye {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  position: relative;
  box-shadow: 0 0 8px rgba(201,169,110,.55), inset 0 0 5px rgba(201,169,110,.15);
  animation: eyeIris 3.5s ease-in-out infinite;
}

@keyframes eyeIris {
  0%, 38%, 100% { transform: scale(1); }
  48%, 52%      { transform: scale(0.55); }
  62%           { transform: scale(1); }
}

.eye-pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
  pointer-events: none;
}

/* ── Cuello ──────────────────────────────────────────────── */
.robot-neck {
  width: 38px;
  height: 14px;
  background: #101010;
  border-left:  1.5px solid rgba(201,169,110,.25);
  border-right: 1.5px solid rgba(201,169,110,.25);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.neck-line {
  width: 22px;
  height: 1px;
  background: rgba(201,169,110,.3);
}

/* ── Cuerpo + Brazos ─────────────────────────────────────── */
.robot-body-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.robot-body {
  width: 128px;
  height: 96px;
  background: #0c0c0c;
  border: 1.5px solid rgba(201,169,110,.5);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 28px rgba(201,169,110,.07);
  z-index: 1;
}

.robot-arm {
  width: 17px;
  height: 58px;
  background: #0c0c0c;
  border: 1.5px solid rgba(201,169,110,.38);
  margin-top: 10px;
}

.arm-left {
  border-right: none;
  border-radius: 10px 0 0 10px;
  transform-origin: top center;
  animation: armWaveL 3.2s ease-in-out infinite;
}

.arm-right {
  border-left: none;
  border-radius: 0 10px 10px 0;
  transform-origin: top center;
  animation: armWaveR 3.2s ease-in-out infinite;
}

@keyframes armWaveL {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(4deg); }
}

@keyframes armWaveR {
  0%, 100% { transform: rotate(4deg); }
  50%       { transform: rotate(-4deg); }
}

/* ── Panel interior del cuerpo ───────────────────────────── */
.body-panel {
  width: 88px;
  height: 68px;
  background: rgba(201,169,110,.03);
  border: 1px solid rgba(201,169,110,.14);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 10px;
}

.circuit-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.circuit-line {
  height: 1.5px;
  background: rgba(201,169,110,.55);
  border-radius: 1px;
  animation: circuitTrace 2.8s ease-in-out infinite;
}

.cl-1 { width: 100%; animation-delay: 0s; }
.cl-2 { width: 65%;  animation-delay: .45s; }
.cl-3 { width: 82%;  animation-delay: .9s; }

@keyframes circuitTrace {
  0%, 100% { opacity: .18; }
  50%       { opacity: 1; }
}

.status-dots {
  display: flex;
  gap: 6px;
  margin-left: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sd-1 { background: #ff5555; animation: sdPulse 3s 0s ease-in-out infinite; }
.sd-2 { background: #ffaa33; animation: sdPulse 3s .6s ease-in-out infinite; }
.sd-3 { background: #44dd88; animation: sdPulse 3s 1.2s ease-in-out infinite; }

@keyframes sdPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%       { opacity: 1;   transform: scale(1.25); }
}

/* ── Aura base (glow debajo del robot) ───────────────────── */
.robot-aura {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 26px;
  background: radial-gradient(ellipse, rgba(201,169,110,.22) 0%, transparent 70%);
  filter: blur(8px);
  animation: auraBreath 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auraBreath {
  0%, 100% { opacity: .6; transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 1;  transform: translateX(-50%) scaleX(1.25); }
}

/* ── Burbuja de chat ─────────────────────────────────────── */
.robot-bubble {
  width: 100%;
  background: rgba(16, 16, 16, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,110,.22);
  border-radius: 12px;
  padding: 14px 18px;
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Colita apuntando hacia el robot (arriba) */
.robot-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(201,169,110,.22);
}

.robot-bubble::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(16,16,16,.88);
}

/* Puntos de "escribiendo..." */
.bubble-typing {
  display: none; /* oculto por defecto */
  gap: 5px;
  align-items: center;
  position: absolute;
}

.bubble-typing.visible {
  display: flex;
}

.bubble-typing span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: typingDot 1.1s ease-in-out infinite;
}

.bubble-typing span:nth-child(2) { animation-delay: .2s; }
.bubble-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typingDot {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%       { opacity: 1;  transform: scale(1.1); }
}

/* Texto del mensaje */
.bubble-text {
  font-size: .87rem;
  color: var(--text);
  line-height: 1.55;
  text-align: center;
  width: 100%;
  transition: opacity .35s ease, transform .35s ease;
}

.bubble-text.fade-out {
  opacity: 0;
  transform: translateY(5px);
}

/* ── Separador dorado ─────────────────────────────────────── */
.robot-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

/* ── Info de contacto rediseñada ─────────────────────────── */
.robot-contact-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rci-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rci-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(201,169,110,.07);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

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

.rci-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.rci-value {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
}

a.rci-value:hover {
  color: var(--gold);
  transition: color var(--trans);
}

/* ── prefers-reduced-motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .robot-float-wrap,
  .robot-lean-wrap,
  .ai-robot,
  .antenna-orb,
  .scan-line,
  .robot-eye,
  .arm-left,
  .arm-right,
  .circuit-line,
  .status-dot,
  .robot-aura,
  .bubble-typing span {
    animation: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   CLIENTES — Cinta de logos (marquee)
════════════════════════════════════════════════════════════ */.testimonios {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.clients-marquee {
  overflow: hidden;
  margin-top: 3rem;
  /* Fade suave en los bordes */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: clientsMarquee 24s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 40px;
    padding: 0 2rem;
  }
}

.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.client-logo img:hover {
  opacity: 1;
}

/* Keyframe: avanza 1/6 del total (6 sets idénticos en el HTML) → loop perfecto */
@keyframes clientsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-16.6667%); }
}

@media (max-width: 768px) {
  .clients-track {
    gap: 52px;
  }
  .client-logo img {
    height: 36px;
  }
}

/* ════════════════════════════════════════════════════════════
   FAQ
════════════════════════════════════════════════════════════ */
.faq {
  background: var(--bg-2);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--trans);
}

.faq-item.open {
  border-color: var(--border-2);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-size: .98rem;
  font-weight: 600;
  font-family: inherit;
  transition: color var(--trans);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-item.open .faq-question {
  color: var(--gold);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: transform var(--trans), color var(--trans);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 28px 24px;
}

.faq-answer p {
  font-size: .93rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Proceso: 2 columnas en tablet */
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .process-connector {
    display: none;
  }

  /* Contacto: 1 columna */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: -1;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  /* Navbar */
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .nav-actions {
    gap: 12px;
  }

  /* Hero */
  .hero-stats {
    gap: 20px;
  }

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

  /* Proceso: 1 columna */
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .step-num {
    flex-shrink: 0;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* CTA Box */
  .cta-box {
    padding: 48px 24px;
  }

  /* WhatsApp */
  .wa-label {
    display: none;
  }

  .wa-widget {
    padding: 14px;
    border-radius: 50%;
  }

  .wa-ring {
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }
}