/* ============================================================
   BRUTOBOT · Landing — pro redesign (life + character)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Background ramp — dark with subtle warmth */
  --bg:        #0a0d12;
  --bg-1:      #0d1117;
  --bg-2:      #161b22;
  --bg-3:      #1f2530;

  /* Text */
  --text:      #f0f6fc;
  --text-soft: #c9d1d9;
  --text-mute: #8b949e;
  --text-faint:#6b7280;

  /* Accent — punchy orange (original DNA) */
  --accent:        #f97316;
  --accent-hi:     #fb923c;
  --accent-deep:   #c2410c;
  --accent-purple: #c2410c; /* reemplazado: violeta removido, usa naranja profundo */
  --accent-yellow: #fbbf24;
  --accent-rgb:    249, 115, 22;

  /* Borders */
  --line:      rgba(255,255,255,0.08);
  --line-md:   rgba(255,255,255,0.14);
  --line-warm: rgba(249,115,22,0.30);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Type */
  --font-sans: 'Sora', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
/* Global atmospheric backdrop (mesh + grid) shared across all sections */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -10;
  background:
    radial-gradient(45% 40% at 18% 78%, rgba(249,115,22,0.22), transparent 65%),
    radial-gradient(40% 35% at 82% 22%, rgba(139,92,246,0.18), transparent 65%),
    radial-gradient(35% 30% at 55% 45%, rgba(249,115,22,0.10), transparent 65%);
  animation: mesh-shift 26s ease-in-out infinite;
  filter: blur(56px);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -9;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg-1); }

/* ---------- Keyframes ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.0); }
  50%     { box-shadow: 0 0 0 12px rgba(249,115,22,0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes particle-drift {
  from { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.5; }
  to   { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}
@keyframes mesh-shift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(6%,-5%) scale(1.05); }
  66%     { transform: translate(-5%,4%) scale(0.96); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
@keyframes blinkCursor {
  50% { opacity: 0; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-r)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-r)) rotate(-360deg); }
}

/* ---------- Scroll reveal (fade-up + blur) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
  will-change: opacity, transform, filter;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }
[data-reveal-delay="6"] { transition-delay: .48s; }

body[data-fx-blur="off"] [data-reveal] {
  opacity: 1; transform: none; filter: none; transition: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 80px 0; } .container { padding: 0 22px; } }

/* ---------- Section fade transitions (smooth blur between sections) ---------- */
.section, .marquee-section, .splash, .hero, .contact-section {
  position: relative;
}
.section-fade-top,
.section-fade-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.section-fade-top {
  top: 0;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.section-fade-bottom {
  bottom: 0;
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}
body[data-fx-blur="off"] .section-fade-top,
body[data-fx-blur="off"] .section-fade-bottom { display: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--line-warm);
  border-radius: var(--r-pill);
  background: rgba(249,115,22,0.06);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

.section-title {
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 18px 0 18px;
  text-wrap: balance;
}
.section-title .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-hi) 60%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title .accent { color: var(--accent); }
.section-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-mute);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 64px;
  text-wrap: pretty;
}
.section-head { max-width: 780px; margin-bottom: 60px; }
.section-head.is-centered { text-align: center; margin-inline: auto; }
.section-head.is-centered .section-lead { margin-inline: auto; }

/* ---------- Language picker ---------- */
.lang-picker {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
  opacity: 0.45;
}
.lang-btn:hover { opacity: 0.8; border-color: var(--line-md); }
.lang-btn.is-active { opacity: 1; border-color: var(--line-warm); background: var(--bg-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-md);
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease),
              box-shadow .35s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  border-color: transparent;
}
.btn-primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 16px 40px -10px rgba(var(--accent-rgb), 0.55);
}
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(249,115,22,0.05); }
.btn-lg { padding: 17px 28px; font-size: 15px; }
.btn-lg svg { width: 18px; height: 18px; }

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-glow {
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45);
  animation: pulseBtn 2.6s ease-in-out infinite;
}
@keyframes pulseBtn {
  0%,100% { box-shadow: 0 8px 28px -8px rgba(var(--accent-rgb), 0.35), 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
  50%     { box-shadow: 0 14px 38px -10px rgba(var(--accent-rgb), 0.5), 0 0 0 12px rgba(var(--accent-rgb), 0); }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s var(--ease),
              backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(13,17,23,0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 44px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled .nav-logo {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav-logo img { height: 100%; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mute);
  position: relative;
  transition: color .25s var(--ease);
  padding: 14px 4px; /* touch target mínimo 44px — sin cambio visual en desktop */
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-md);
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-menu {
  position: fixed;
  top: 68px; left: 16px; right: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-md);
  border-radius: var(--r-md);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 79;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.mobile-menu.is-open { display: flex; animation: fade-up .4s var(--ease) both; }
.mobile-menu a { padding: 14px 16px; border-radius: var(--r-sm); color: var(--text); font-size: 15px; }
.mobile-menu a:hover { background: var(--bg-3); }
.mobile-menu .btn { margin-top: 10px; justify-content: center; }

/* =============================================================
   SPLASH — Real logo + mouse interaction (3D tilt + spotlight)
   ============================================================= */
.splash {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding: 110px 24px 90px;
}
.splash-mesh { display: none; }
.splash-grid { display: none; }
.splash-spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    420px 420px at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .4s var(--ease), background .25s linear;
}
.splash.is-active .splash-spotlight { opacity: 1; }
body[data-fx-spotlight="off"] .splash-spotlight { display: none; }

/* The interactive logo */
.splash-logo-stage {
  perspective: 1400px;
  margin-bottom: 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Soft circular halo behind the logo (replaces the rectangular drop-shadow) */
.splash-logo-stage::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(360px, 60vw, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 55%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  animation: float 9s ease-in-out infinite;
}
.splash.is-active .splash-logo-stage::after,
.splash-logo-stage:hover::after { opacity: 1; }

.splash-logo {
  --tx: 0deg;
  --ty: 0deg;
  --dx: 0px;
  --dy: 0px;
  width: clamp(280px, 88vw, 800px);
  transform-style: preserve-3d;
  transform: rotateX(var(--tx)) rotateY(var(--ty)) translate3d(var(--dx), var(--dy), 0);
  transition: transform .4s var(--ease-out);
  position: relative;
  will-change: transform;
}
.splash-logo img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

body[data-fx-tilt="off"] .splash-logo {
  transform: none !important;
}

/* Orbital dots around logo */
.splash-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 1px;
  pointer-events: none;
}
.orbit-dot {
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: orbit linear infinite;
}
.orbit-dot.o1 { --orbit-r: clamp(180px, 32vw, 380px); animation-duration: 14s; }
.orbit-dot.o2 { --orbit-r: clamp(220px, 38vw, 460px); animation-duration: 22s; animation-direction: reverse; background: var(--accent-deep); box-shadow: 0 0 14px var(--accent-deep); }
.orbit-dot.o3 { --orbit-r: clamp(260px, 44vw, 540px); animation-duration: 30s; background: var(--accent-yellow); box-shadow: 0 0 12px var(--accent-yellow); width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }

/* Particles container */
.splash-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.particle {
  position: absolute;
  bottom: -5vh;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  filter: blur(1px);
  animation: particle-drift linear infinite;
}

.splash-brand { display: none; }

.splash-tagline {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--text-mute);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.splash-tagline .typed {
  color: var(--accent);
  font-weight: 600;
}
.splash-tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blinkCursor 1s steps(1) infinite;
}

.splash-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
  opacity: 0;
  animation: fade-up .9s var(--ease) .9s both;
}
.splash-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fade-up .9s var(--ease) 1.2s both;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.trust-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.trust-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.5;
}
@media (max-width: 620px) {
  .splash-trust { gap: 12px; }
  .trust-sep { display: none; }
}

.splash-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fade-in 1.4s var(--ease) 1.2s both;
}
.splash-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================================
   HERO (punchy, left-aligned)
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { display: none; }
.hero-grid { display: none; }
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  top: 14%;
  right: -6%;
  width: clamp(280px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(249,115,22,0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(139,92,246,0.45), transparent 60%);
  filter: blur(22px);
  animation: float 8s ease-in-out infinite;
  z-index: -1;
}

.hero-content { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  animation: fade-up 1s var(--ease) .1s both;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-hi) 60%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-mute);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
  animation: fade-up 1s var(--ease) .25s both;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 1s var(--ease) .4s both;
}
.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 1s var(--ease) .55s both;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: 14px;
}
.hero-meta-item svg { width: 18px; height: 18px; color: var(--accent); }

/* =============================================================
   SERVICIOS — flip cubes (DNA recovered) + 3D tilt
   ============================================================= */
.services-section {
  background: transparent;
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.cube {
  --tx: 0deg;
  --ty: 0deg;
  perspective: 1200px;
  height: 280px;
  cursor: pointer;
}
.cube-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .8s var(--ease);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: var(--r-md);
  /* translateZ(0.01px) forces a 3D context so preserve-3d & backface-visibility work
     even when --tx/--ty rotations collapse to identity */
  transform: rotateX(var(--tx)) rotateY(var(--ty)) translateZ(0.01px);
}
.cube:hover .cube-inner,
.cube.is-flipped .cube-inner {
  transform: rotateX(var(--tx)) rotateY(calc(180deg + var(--ty))) translateZ(0.01px);
}
body[data-fx-tilt="off"] .cube-inner {
  --tx: 0deg;
  --ty: 0deg;
}

.cube-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity .45s var(--ease);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  overflow: hidden;
}
.cube-front {
  background:
    linear-gradient(160deg, var(--bg-2), var(--bg-3));
  transform: translateZ(1px);
  opacity: 1;
}
.cube:hover .cube-front,
.cube.is-flipped .cube-front {
  opacity: 0;
  transition-delay: .25s;
}
.cube-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 0% 0%, rgba(249,115,22,0.10), transparent 60%);
  pointer-events: none;
}
.cube-back {
  background: linear-gradient(160deg, #2a1310 0%, #3a1c10 100%);
  transform: rotateY(180deg);
  border-color: var(--line-warm);
  opacity: 0;
}
.cube:hover .cube-back,
.cube.is-flipped .cube-back {
  opacity: 1;
  transition-delay: .25s;
}
.cube-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 100% 100%, rgba(249,115,22,0.25), transparent 60%);
  pointer-events: none;
}

.cube-emoji {
  font-size: 28px;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(249,115,22,0.10);
  border: 1px solid var(--line-warm);
}
.cube-q {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.cube-a {
  font-size: 17px;
  line-height: 1.5;
  color: #ffe6c4;
}
.cube-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--line-warm);
  border-radius: var(--r-pill);
  background: rgba(249,115,22,0.08);
}
.cube-arrow {
  align-self: flex-end;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
}
.cube-arrow svg { width: 16px; height: 16px; }

/* =============================================================
   MARQUEE
   ============================================================= */
.marquee-section {
  padding: 56px 0;
  background: transparent;
  overflow: hidden;
  position: relative;
}
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); opacity: 0.85; }
.marquee-section::after  { right: 0; background: linear-gradient(-90deg, var(--bg-1), transparent); opacity: 0.85; }
.marquee {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 45s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.marquee:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(15px, 1.82vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
.marquee-item:nth-child(even) { color: #f97316; }
.marquee-item::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* =============================================================
   SERVICIOS DETALLE — pricing-style cards
   ============================================================= */
.srv-section { background: transparent; }

.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .srv-grid { grid-template-columns: 1fr; } }

.srv-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.25s, transform 0.25s;
}
.srv-card:hover { border-color: var(--line-md); transform: translateY(-4px); }

.srv-card.is-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(249,115,22,0.07) 0%, var(--bg-2) 60%);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(249,115,22,0.12);
}
.srv-card.is-featured:hover { transform: translateY(-6px); }

.srv-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.srv-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.srv-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.srv-tag {
  font-size: 0.875rem;
  color: var(--text-mute);
  margin-bottom: 20px;
  line-height: 1.4;
}
.srv-price {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.srv-price strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-transform: none;
}
.srv-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--line-md);
  background: var(--bg-3);
  color: var(--text);
}
.srv-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(249,115,22,0.06); }
.is-featured .srv-btn {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}
.is-featured .srv-btn:hover { filter: brightness(1.1); color: #000; }

.srv-desc {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.srv-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.srv-features li {
  font-size: 0.875rem;
  color: var(--text-soft);
  padding-left: 24px;
  position: relative;
  line-height: 1.4;
}
.srv-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.is-featured .srv-features li::before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonials-section {
  background: transparent;
}
.lang-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: 40px;
}
.lang-tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: var(--r-pill);
  transition: all .25s var(--ease);
}
.lang-tab:hover { color: var(--text); }
.lang-tab.is-active {
  background: var(--accent);
  color: #0d1117;
}
.t-pane { display: none; }
.t-pane.is-active { display: grid; }
.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

.t-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.t-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.t-card:hover {
  border-color: var(--line-warm);
  transform: translateY(-6px);
  background: var(--bg-3);
}
.t-card:hover::before { opacity: 1; }

.t-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--accent);
}
.t-stars svg { width: 14px; height: 14px; }
.t-quote {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  color: #0d1117;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.t-name { font-size: 15px; font-weight: 600; }
.t-role { font-size: 13px; color: var(--text-mute); }
.t-flag { margin-left: auto; font-size: 22px; }

/* =============================================================
   CONTACT — Interview form (sends to CRM)
   ============================================================= */
.contact-section {
  background: transparent;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  width: 1100px; height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.contact-section > * { position: relative; z-index: 1; }
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: stretch;
}
.contact-aside {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.contact-aside .eyebrow { margin-bottom: 8px; }

.contact-aside h2 {
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.contact-aside h2 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-aside p {
  color: var(--text-mute);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 auto 28px;
  max-width: 60ch;
}
.contact-bullets {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px auto 0;
  max-width: 880px;
}
.contact-bullets li {
  display: inline-flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.4;
  align-items: center;
}
.contact-bullets li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

.contact-form {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 620px) { .contact-form { padding: 28px 22px; } }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
@media (max-width: 760px) {
  .field-grid-2, .field-grid-3 { grid-template-columns: 1fr; gap: 18px; }
}
.contact-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.contact-form-head .step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-form-head .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 11px;
  border: 1px solid var(--line-warm);
  border-radius: var(--r-pill);
  background: rgba(249,115,22,0.08);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field label .req { color: var(--accent); margin-left: 4px; }
.field input,
.field textarea,
.field select {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.contact-submit small { font-size: 12px; color: var(--text-faint); max-width: 30ch; line-height: 1.5; }
.form-status {
  font-size: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: none;
}
.form-status.is-ok { display: block; border-color: rgba(34,197,94,0.4); color: #86efac; }
.form-status.is-err { display: block; border-color: rgba(239,68,68,0.4); color: #fca5a5; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: linear-gradient(180deg, transparent, rgba(10,13,18,0.85) 60%, var(--bg) 100%);
  padding: 72px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--text-mute); font-size: 14px; max-width: 32ch; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-mute); font-size: 14px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-faint);
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--text-mute);
  transition: all .25s var(--ease);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* =============================================================
   FLOATING WHATSAPP
   ============================================================= */
.fab-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 70;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform .25s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 28px; height: 28px; }
.fab-whatsapp::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* =============================================================
   TWEAKS PANEL
   ============================================================= */
.tweaks {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 90;
  font-family: var(--font-mono);
  display: none;
}
.tweaks.is-on { display: block; }
.tweaks-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-md);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all .25s var(--ease);
}
.tweaks-toggle:hover { color: var(--accent); border-color: var(--accent); }
.tweaks-toggle svg { width: 18px; height: 18px; }
.tweaks-panel {
  position: absolute;
  bottom: 56px;
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-md);
  border-radius: var(--r-md);
  padding: 14px;
  width: 240px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tweaks.is-open .tweaks-panel { display: flex; }
.tweaks-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.tweak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .2s;
}
.tweak-row:hover { background: var(--bg-3); }
.tweak-switch {
  position: relative;
  width: 32px; height: 18px;
  background: var(--bg-3);
  border-radius: 999px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: background .25s var(--ease);
}
.tweak-switch::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-soft);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.tweak-row.is-on .tweak-switch {
  background: rgba(249,115,22,0.35);
  border-color: var(--accent);
}
.tweak-row.is-on .tweak-switch::after {
  background: var(--accent);
  transform: translateX(14px);
}
@media (max-width: 720px) { .tweaks { bottom: 88px; } }
