*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

/* ═══ VARIABLES ═══ */
:root {
  --ink: #f5f5f7;
  --ink2: #ffffff;
  --ink3: #f0f0f2;
  --paper: #1a1a2e;
  --paper2: #16213e;
  --lime: #7cb518;
  --lime2: #5c8a10;
  --cyan: #0891b2;
  --warm: #ea580c;
  --muted: #6b7280;
  --muted2: #4b5563;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(124, 181, 24, 0.25);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
}

[data-theme="dark"] {
  --ink: #05050a;
  --ink2: #0d0d18;
  --ink3: #141425;
  --paper: #f0ede8;
  --paper2: #e8e4dd;
  --lime: #c8f53a;
  --lime2: #a8d820;
  --cyan: #00e5ff;
  --warm: #ff6b35;
  --muted: #6b6b8a;
  --muted2: #9090aa;
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(200, 245, 58, 0.2);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--lime) var(--ink3);
}

body::-webkit-scrollbar {
  width: 10px
}

body::-webkit-scrollbar-track {
  background: var(--ink3);
  border-radius: 10px
}

body::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 10px
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--lime2)
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ═══ SCROLL PROGRESS ═══ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ═══ CUSTOM CURSOR ═══ */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 245, 58, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s, opacity 0.2s;
}

body:hover #cursor-ring {
  opacity: 1
}

/* ═══ TOAST ═══ */
#toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: var(--lime);
  color: var(--ink);
  padding: 0.7rem 1.4rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  animation: toastIn 0.35s ease forwards, toastOut 0.35s ease 2.8s forwards;
  pointer-events: none;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0)
  }

  to {
    opacity: 0;
    transform: translateY(-10px)
  }
}

/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3.5rem;
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0.85;
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  z-index: -1;
  transition: background 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--lime);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 16px;
  height: 16px
}

.logo-mark svg path:first-child {
  fill: var(--ink)
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  line-height: 1
}

.logo-text span {
  color: var(--lime)
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none
}

nav ul a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--lime)
}

.nav-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: var(--lime);
  color: var(--ink);
  border: none;
  padding: 0.65rem 1.4rem;
  cursor: none;
  font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}

.nav-btn:hover {
  background: var(--lime2);
  transform: translateY(-1px)
}

.theme-toggle,
.lang-toggle {
  background: var(--ink3);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  margin-left: 0.6rem;
}

.lang-toggle {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono)
}

.theme-toggle:hover,
.lang-toggle:hover {
  transform: scale(1.05);
  border-color: var(--lime)
}

html[data-theme="dark"] .lang-toggle,
html[data-theme="dark"] .theme-toggle {
  color: #fff !important
}

html:not([data-theme="dark"]) .lang-toggle,
html:not([data-theme="dark"]) .theme-toggle {
  color: #1a1a2e !important
}

.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  background: none;
  border: none;
  padding: 4px
}

.ham span {
  width: 24px;
  height: 2px;
  background: var(--paper);
  display: block;
  transition: all 0.3s
}

/* ═══ HERO ═══ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 3.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--lime) 1px, transparent 1px), linear-gradient(90deg, var(--lime) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.04;
}

.hero-circuit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  opacity: 0.07;
  background-image: linear-gradient(90deg, transparent 49%, var(--lime) 49%, var(--lime) 51%, transparent 51%), linear-gradient(transparent 49%, var(--lime) 49%, var(--lime) 51%, transparent 51%);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, black 30%, transparent 100%);
}

.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--lime) 0%, transparent 65%);
  opacity: 0.08;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-orb2 {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  opacity: 0.06;
  left: 10%;
  bottom: -50px;
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lime);
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.3s ease forwards;
  position: relative;
  z-index: 1;
}

.hero-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--lime)
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-headline .line1 {
  display: block;
  opacity: 0;
  animation: slideRight 0.7s 0.4s ease forwards
}

.hero-headline .line2 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lime);
  opacity: 0;
  animation: slideRight 0.7s 0.5s ease forwards;
}

.hero-headline .line3 {
  display: block;
  color: var(--lime);
  opacity: 0;
  animation: slideRight 0.7s 0.6s ease forwards;
}

.tw-cursor {
  animation: blink 0.7s ease-in-out infinite
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s 0.9s ease forwards;
}

.hero-desc {
  max-width: 420px;
  font-size: 1rem;
  color: var(--muted2);
  line-height: 1.75;
  font-weight: 300
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0
}

/* LIVE BADGE */
.hero-live-badge {
  position: absolute;
  top: 9rem;
  right: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--lime);
  letter-spacing: 0.08em;
  border: 1px solid var(--border2);
  padding: 0.4rem 0.9rem;
  background: rgba(200, 245, 58, 0.06);
  animation: fadeUp 0.5s 1.2s ease forwards;
  opacity: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 245, 58, 0.4)
  }

  50% {
    box-shadow: 0 0 0 5px rgba(200, 245, 58, 0)
  }
}

.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--lime);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 22s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ticker-track span::after {
  content: '◆';
  font-size: 0.5rem
}

@keyframes ticker {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ═══ MARQUEE ═══ */
.marquee-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.3;
  flex-shrink: 0;
  transition: color 0.2s, opacity 0.2s;
}

.marquee-track span:hover {
  color: var(--lime);
  opacity: 0.8
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ═══ SERVICES ═══ */
#servicios {
  padding: 7rem 3.5rem;
  position: relative
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border)
}

.service-card {
  background: var(--ink);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  background: var(--ink2)
}

.service-card:hover::before {
  transform: scaleX(1)
}

.service-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  letter-spacing: 0.05em;
  color: var(--lime);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s;
}

.service-card:hover .service-num {
  opacity: 0.25
}

.service-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(200, 245, 58, 0.1);
  border-color: var(--lime)
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  line-height: 1.2
}

.service-desc {
  font-size: 0.88rem;
  color: var(--muted2);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem
}

.stag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.service-card:hover .stag {
  color: var(--lime);
  border-color: var(--lime)
}

.service-estimate-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--lime);
  background: transparent;
  border: 1px solid var(--border2);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  transform: translateY(4px);
}

.service-card:hover .service-estimate-btn {
  opacity: 1;
  transform: translateY(0)
}

.service-estimate-btn:hover {
  background: rgba(200, 245, 58, 0.1)
}

/* ═══ STATS ═══ */
#stats {
  padding: 6rem 3.5rem;
  background: var(--lime);
  position: relative;
  overflow: hidden
}

.stats-bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 18vw;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
  align-items: center
}

.stat-card {
  text-align: center
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(5, 5, 10, 0.6);
  letter-spacing: 0.1em
}

.stats-divider {
  width: 1px;
  height: 80px;
  background: rgba(5, 5, 10, 0.15);
  margin: 0 auto
}

/* ═══ ESTIMADOR ═══ */
#estimador {
  padding: 7rem 3.5rem;
  background: var(--ink2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.estimador-inner {
  max-width: 900px;
  margin: 0 auto
}

.estimador-card {
  background: var(--ink3);
  border: 1px solid var(--border);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.estimador-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
}

.est-step {
  display: none
}

.est-step.active {
  display: block;
  animation: fadeUp 0.4s ease
}

.est-step-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--lime);
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
}

.est-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem
}

.est-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  background: var(--ink);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  min-width: 120px;
}

.est-opt:hover {
  border-color: var(--lime);
  background: rgba(200, 245, 58, 0.05)
}

.est-opt.selected {
  border-color: var(--lime);
  background: rgba(200, 245, 58, 0.12)
}

.est-opt-icon {
  font-size: 1.5rem
}

.est-opt-label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--paper)
}

.est-opt-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono)
}

/* SELECTOR DE MONEDA */
.currency-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.4rem 1rem;
  background: var(--ink);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted2);
}

.currency-btn.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.currency-btn:hover:not(.active) {
  border-color: var(--lime);
  color: var(--lime);
}

/* RESULTADO ESTIMADOR */
.est-result {
  display: none;
  animation: fadeUp 0.5s ease;
  text-align: center;
  padding: 1rem 0
}

.est-result.visible {
  display: block
}

.est-result-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--lime);
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem
}

.est-result-range {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--lime);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.est-result-currency {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em
}

.est-timeline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--lime);
  margin-bottom: 1rem
}

.est-result-details {
  font-size: 0.88rem;
  color: var(--muted2);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.est-result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem
}

.est-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  opacity: 0.6
}

/* PROGRESS DOTS */
.est-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 2rem
}

.est-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--muted);
  transition: all 0.3s;
}

.est-progress-dot.active {
  background: var(--lime);
  border-color: var(--lime)
}

.est-progress-line {
  width: 40px;
  height: 1px;
  background: var(--border)
}

/* ═══ PROCESO ═══ */
#proceso {
  padding: 7rem 3.5rem;
  background: var(--ink2);
  border-top: 1px solid var(--border)
}

.proceso-inner {
  max-width: 1100px;
  margin: 0 auto
}

.proceso-header {
  margin-bottom: 5rem
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative
}

.proceso-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.3;
}

.step {
  padding: 0 1.5rem;
  text-align: center;
  position: relative
}

.step-dot {
  width: 56px;
  height: 56px;
  background: var(--ink3);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.step:hover .step-dot {
  background: var(--lime);
  transform: scale(1.1)
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lime);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem
}

.step-desc {
  font-size: 0.82rem;
  color: var(--muted2);
  line-height: 1.6;
  font-weight: 300
}

/* ═══ PORTFOLIO ═══ */
#trabajos {
  padding: 7rem 3.5rem;
  position: relative
}

.trabajos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1rem
}

.trabajos-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--ink3);
  border: 1px solid var(--border);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  cursor: none;
  transition: transform 0.3s, border-color 0.3s;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime)
}

.work-card.featured {
  grid-row: span 2;
  min-height: 560px
}

.work-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%; /* controla cuánto ocupa arriba */
  
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 6rem; /* 🔥 tamaño grande */
  opacity: 0.08; /* más sutil tipo fondo */

  pointer-events: none;
  z-index: 0;

  transition: transform 0.4s ease, opacity 0.3s ease;
}

.work-card:hover .work-bg {
  transform: scale(1.1);
  opacity: 0.12;
}

.work-bg-a {
  background: linear-gradient(135deg, #0a0a1a, #1a0a3a)
}

.work-bg-b {
  background: linear-gradient(135deg, #0a1a0a, #0a2a1a)
}

.work-bg-c {
  background: linear-gradient(135deg, #1a0a0a, #2a1a0a)
}

.work-bg-d {
  background: linear-gradient(135deg, #0a1a2a, #0a0a2a)
}

.work-bg-e {
  background: linear-gradient(135deg, #1a0a2a, #2a0a1a)
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 50%);
  opacity: 0.95
}

.work-content {
  position: relative;
  z-index: 1
}

.work-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  background: rgba(124, 181, 24, 0.12);
  color: var(--lime);
  border: 1px solid var(--border2);
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.8rem;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.2
}

.work-desc {
  font-size: 0.82rem;
  color: var(--muted2);
  line-height: 1.6;
  font-weight: 300
}

.work-arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: translate(4px, -4px);
  transition: all 0.25s;
  z-index: 2;
  color: var(--lime);
}

.work-card:hover .work-arrow {
  opacity: 1;
  transform: translate(0, 0)
}

/* ═══ TESTIMONIOS ═══ */
#testimonios {
  padding: 7rem 3.5rem;
  background: var(--ink2);
  border-top: 1px solid var(--border)
}

.test-inner {
  max-width: 1000px;
  margin: 0 auto
}

.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 4rem
}

.test-card {
  background: var(--ink3);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  transition: border-color 0.3s;
}

.test-card:hover {
  border-color: var(--lime)
}

.test-quote {
  font-size: 3rem;
  color: var(--lime);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.4
}

.test-text {
  font-size: 0.95rem;
  color: var(--muted2);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
  font-style: italic
}

.test-author {
  display: flex;
  align-items: center;
  gap: 1rem
}

.test-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.test-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem
}

/* ═══ CTA ═══ */
#cta {
  padding: 8rem 3.5rem;
  position: relative;
  overflow: hidden;
  text-align: center
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--lime) 0%, transparent 70%),
    linear-gradient(var(--lime) 1px, transparent 1px), linear-gradient(90deg, var(--lime) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  opacity: 0.04;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 1.5rem
}

.cta-headline em {
  font-style: normal;
  color: var(--lime)
}

.cta-sub {
  color: var(--muted2);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 3rem
}

/* FORMULARIO CONTACTO */
.contact-form {
  background: var(--ink3);
  border: 1px solid var(--border);
  padding: 2.5rem;
  text-align: left;
  margin-bottom: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lime);
  letter-spacing: 0.1em
}

.form-input {
  background: var(--ink);
  border: 1px solid var(--border);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--lime)
}

.form-input::placeholder {
  color: var(--muted)
}

.form-textarea {
  min-height: 120px;
  resize: vertical
}

select.form-input option {
  background: var(--ink2)
}

.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem
}

.btn-xl {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  padding: 1.2rem 3rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-xl:hover {
  background: var(--lime2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 181, 24, 0.25)
}

.btn-main {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  padding: 1rem 2.2rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-main:hover {
  background: var(--lime2);
  transform: translateY(-2px)
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted2);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 1rem 2.2rem;
  transition: all 0.2s;
  display: inline-block;
  background: transparent;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--paper);
  border-color: var(--lime)
}

.cta-contact-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 3rem
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.cta-contact-item:hover {
  color: var(--lime)
}

.cta-contact-item .dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0
}

/* ═══ FOOTER ═══ */
footer {
  background: var(--ink2);
  border-top: 1px solid var(--border);
  padding: 4rem 3.5rem 2rem
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem
}

.footer-brand .logo {
  margin-bottom: 1rem
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em
}

.footer-col ul a:hover {
  color: var(--paper)
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--lime);
  letter-spacing: 0.06em
}

.footer-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite
}

/* ═══ SECTION HELPERS ═══ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--lime)
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.5rem
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted2);
  font-weight: 300;
  line-height: 1.6;
  max-width: 420px
}

/* ═══ MOBILE MENU ═══ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  opacity: 0.98;
  z-index: 400;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open {
  display: flex
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s
}

.mobile-menu a:hover {
  color: var(--lime)
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ═══ REVEAL ANIMATIONS ═══ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0)
}

.exchange-rate-info {
  transition: all 0.3s ease;
}

#exchange-rate-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* WHATSAPP BADGE */
.whatsapp-badge {
    background: rgba(37, 211, 102, 0.12);
    border-left: 3px solid #25D366;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text);
}

.whatsapp-badge .whatsapp-icon {
    font-size: 1.3rem;
}

/* HINT TEXTS */
.form-hint {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 0.25rem;
    font-family: var(--font-mono);
}

/* EMAIL OPCIONAL - estilo más sutil */
.optional-email .form-label {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* PRIVACY NOTE */
.privacy-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 1.5rem;
    font-family: var(--font-mono);
}

/* BOTÓN CON ÍCONO */
.btn-xl span {
    margin-right: 0.5rem;
}

/* ===== SECCIÓN DE DEMOS ===== */
.demos-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.demos-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.demo-card {
    background: var(--card-bg);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.demo-card:hover {
    transform: translateY(-8px);
    border-color: var(--lime);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.demo-card:hover .demo-image img {
    transform: scale(1.05);
}

.demo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--lime);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 1px;
}

.demo-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.demo-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.demo-content {
    padding: 1.5rem;
}

.demo-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.demo-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.demo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.demo-feature {
    background: rgba(200, 245, 58, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--lime);
}

.demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s;
}

.demo-cta:hover {
    gap: 0.75rem;
}

/* MODAL DEMO */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.demo-modal.active {
    display: flex;
}

.demo-modal-content {
    max-width: 1200px;
    width: 90%;
    max-height: 85vh;
    background: var(--card-bg);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--lime);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-modal-header {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-modal-header h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.demo-modal-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: color 0.3s;
}

.demo-modal-close:hover {
    color: var(--lime);
}

.demo-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.demo-preview {
    background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.demo-preview-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.demo-preview h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.demo-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.demo-metric {
    text-align: center;
    padding: 1rem;
    background: rgba(200, 245, 58, 0.05);
    border-radius: 1rem;
}

.demo-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lime);
    font-family: var(--font-mono);
}

.demo-metric-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.demo-interactive {
    background: rgba(200, 245, 58, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.demo-btn-simulate {
    background: var(--lime);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: transform 0.2s;
}

.demo-btn-simulate:hover {
    transform: scale(1.02);
}

.demo-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 280px; /* Asegura altura mínima */
}

.demo-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 0; /* No deja que el párrafo empuje de más */
}

.demo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: auto; /* EMPUJA EL CTA HACIA ABAJO */
    padding-bottom: 2rem;
}

.demo-cta {
    margin-top: auto; /* Refuerzo para que el botón "Ver demo" siempre esté alineado */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Mejora del Placeholder para que se vea más pro */
.demo-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: radial-gradient(circle at center, rgba(200, 245, 58, 0.1) 0%, transparent 70%);
}

/* ============================================
   DEMO SECTION - CON IMÁGENES REALES
   ============================================ */

.demos-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.demos-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.demo-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.demo-card:hover {
    transform: translateY(-8px);
    border-color: var(--lime);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.demo-card:hover .demo-image img {
    transform: scale(1.05);
}

.demo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--lime);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 1px;
}

.demo-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Fallback si no carga la imagen */
.demo-image img {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.demo-content {
    padding: 1.5rem;
}

.demo-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.demo-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.demo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.demo-feature {
    background: rgba(200, 245, 58, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--lime);
}

.demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s;
}

.demo-cta:hover {
    gap: 0.75rem;
}

.nav-link-demo {
    position: relative;
}

.nav-link-demo::after {
    content: "✨";
    position: absolute;
    top: -8px;
    right: -15px;
    font-size: 12px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@media (max-width: 768px) {
    .demos-section {
        padding: 3rem 1rem;
    }
    
    .demos-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-modal-body {
        padding: 1rem;
    }
    
    .demo-metrics {
        grid-template-columns: 1fr;
    }
}



/* ═══ RESPONSIVE ═══ */
@media(max-width:1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .trabajos-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto
  }

  .work-card.featured {
    grid-row: span 1;
    min-height: 260px
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem
  }

  .stats-divider {
    display: none
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem
  }
}

@media(max-width:768px) {

  nav ul,
  .nav-btn {
    display: none
  }

  .theme-toggle,
  .lang-toggle {
    display: flex
  }

  .ham {
    display: flex
  }

  #hero {
    padding: 7rem 1.5rem 5rem
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start
  }

  .hero-live-badge {
    top: 6.5rem;
    right: 1.5rem;
    font-size: 0.6rem
  }

  section,
  #servicios,
  #proceso,
  #trabajos,
  #testimonios,
  #cta,
  footer,
  #estimador {
    padding-left: 1.5rem;
    padding-right: 1.5rem
  }

  .services-grid {
    grid-template-columns: 1fr
  }

  .trabajos-grid {
    grid-template-columns: 1fr
  }

  .proceso-steps {
    grid-template-columns: 1fr 1fr
  }

  .proceso-steps::before {
    display: none
  }

  .test-grid {
    grid-template-columns: 1fr
  }

  .services-header,
  .trabajos-header {
    flex-direction: column;
    align-items: flex-start
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-top {
    grid-template-columns: 1fr
  }

  .estimador-card {
    padding: 1.5rem
  }

  .est-options {
    gap: 0.5rem
  }

  .est-opt {
    min-width: calc(50% - 0.5rem);
    padding: 0.8rem
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .work-card {
    position: relative;
    min-height: 280px
  }

  .work-arrow {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 1rem;
    left: 1rem;
    transform: none;
    opacity: 1;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    font-size: 0.8rem;
    border: none
  }

  .work-content {
    margin-bottom: 2rem
  }

  .work-card:hover .work-arrow {
    transform: none
  }
}

/* ═══ COMPARADOR ═══ */
#comparador {
  padding: 7rem 3.5rem;
  background: var(--ink2);
  border-top: 1px solid var(--border);
}
.comparador-inner { max-width: 1100px; margin: 0 auto; }

.cmp-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  border: 1px solid var(--border);
  border-bottom: none;
}
.cmp-head {
  padding: 1.5rem 1.2rem;
  border-right: 0.5px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ink);
}
.cmp-head:last-child { border-right: none; }
.cmp-head--empty { background: var(--ink3); }
.cmp-head--featured { border-top: 3px solid var(--lime); }
.cmp-head__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.cmp-head__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  line-height: 1;
}
.cmp-head__name--lime { color: var(--lime); }
.cmp-recommended {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: rgba(200, 245, 58, 0.15);
  color: var(--lime);
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--border2);
}

.cmp-rows { border: 1px solid var(--border); border-top: none; border-bottom: none; }
.cmp-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  border-bottom: 0.5px solid var(--border);
}
.cmp-row:last-child { border-bottom: none; }
.cmp-cell {
  padding: 1rem 1.2rem;
  border-right: 0.5px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.5;
}
.cmp-cell:last-child { border-right: none; }
.cmp-cell--label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  background: var(--ink3);
}
.cmp-cell--featured { background: rgba(200, 245, 58, 0.04); }

/* Íconos de estado */
.cmp-check, .cmp-cross, .cmp-mid {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 500;
}
.cmp-check {
  background: rgba(200, 245, 58, 0.15);
  border: 1px solid var(--border2);
}
.cmp-check::after { content: '✓'; color: var(--lime); font-size: 10px; }
.cmp-cross {
  background: rgba(220, 60, 60, 0.1);
  border: 1px solid rgba(220, 60, 60, 0.2);
}
.cmp-cross::after { content: '✕'; color: #dc3c3c; font-size: 9px; }
.cmp-mid {
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.2);
}
.cmp-mid::after { content: '~'; color: var(--warm); }

/* CTA row */
.cmp-cta-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  border: 1px solid var(--border);
  border-top: none;
}
.cmp-cta-cell {
  padding: 1.4rem 1.2rem;
  border-right: 0.5px solid var(--border);
  display: flex;
  align-items: center;
}
.cmp-cta-cell:last-child { border-right: none; }
.cmp-cta-cell--featured { background: rgba(200, 245, 58, 0.04); }
.cmp-risk {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.cmp-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  opacity: 0.6;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  #comparador { padding-left: 1.5rem; padding-right: 1.5rem; }
  .cmp-grid,
  .cmp-row,
  .cmp-cta-row { grid-template-columns: 1fr 1fr; }
  .cmp-head--empty,
  .cmp-cell--label,
  .cmp-cta-cell:first-child { display: none; }
}

/* Ocultar emoji/icono de demo en móvil */
@media (max-width: 768px) {
    /* Oculta el emoji 🎯 en el menú móvil */
    .mobile-menu a[href="#demos"] {
        font-size: 0;
    }
    .mobile-menu a[href="#demos"]::before {
        content: "Demos";
        font-size: 2.5rem;
    }
    
    /* También oculta cualquier badge o ícono flotante de demo */
    .nav-link-demo::after,
    [class*="demo-badge"],
    .demo-badge {
        display: none !important;
    }
}

/* ═══ COMPARADOR SUMAMENTE RESPONSIVO ═══ */
@media (max-width: 1024px) {
  .cmp-grid,
  .cmp-row,
  .cmp-cta-row {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
  
  .cmp-head__name {
    font-size: 1.1rem;
  }
  
  .cmp-cell {
    padding: 0.8rem;
    font-size: 0.75rem;
  }
  
  .cmp-cell--label {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  #comparador {
    padding: 4rem 1rem;
  }
  
  /* Scroll horizontal para tabla */
  .cmp-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .cmp-grid,
  .cmp-row,
  .cmp-cta-row {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    min-width: 560px;
  }
  
  .cmp-head--empty,
  .cmp-cell--label,
  .cmp-cta-cell:first-child {
    display: flex; /* Mostramos la primera columna fija */
    position: sticky;
    left: 0;
    background: var(--ink3);
    z-index: 2;
    font-weight: 600;
  }
  
  .cmp-head--empty {
    background: var(--ink);
    border-right: 1px solid var(--border);
  }
  
  .cmp-cell--label {
    position: sticky;
    left: 0;
    background: var(--ink3);
    z-index: 1;
    font-weight: 600;
    border-right: 1px solid var(--border);
  }
  
  .cmp-cta-cell:first-child {
    position: sticky;
    left: 0;
    background: var(--ink2);
    z-index: 1;
  }
  
  .cmp-head {
    padding: 1rem 0.8rem;
  }
  
  .cmp-head__name {
    font-size: 0.9rem;
  }
  
  .cmp-head__label {
    font-size: 0.5rem;
  }
  
  .cmp-recommended {
    font-size: 0.5rem;
    padding: 2px 6px;
    margin-top: 0.3rem;
  }
  
  .cmp-cell {
    padding: 0.8rem 0.5rem;
    font-size: 0.7rem;
    gap: 0.3rem;
    word-break: break-word;
  }
  
  .cmp-check, .cmp-cross, .cmp-mid {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
  
  .cmp-check::after, 
  .cmp-cross::after, 
  .cmp-mid::after {
    font-size: 7px;
  }
  
  .cmp-cta-cell {
    padding: 1rem 0.5rem;
  }
  
  .cmp-cta-cell .btn-main {
    padding: 0.6rem 1rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }
  
  .cmp-risk {
    font-size: 0.6rem;
    white-space: nowrap;
  }
  
  .cmp-disclaimer {
    font-size: 0.55rem;
    text-align: center;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .cmp-grid,
  .cmp-row,
  .cmp-cta-row {
    min-width: 500px;
  }
  
  .cmp-head {
    padding: 0.8rem 0.5rem;
  }
  
  .cmp-head__name {
    font-size: 0.8rem;
  }
  
  .cmp-cell {
    padding: 0.6rem 0.4rem;
    font-size: 0.65rem;
  }
  
  .cmp-cell--label {
    font-size: 0.55rem;
  }
  
  .cmp-cta-cell .btn-main {
    padding: 0.5rem 0.8rem;
    font-size: 0.6rem;
  }
  
  .cmp-check, .cmp-cross, .cmp-mid {
    width: 12px;
    height: 12px;
  }
}

/* Scrollbar personalizada para la tabla */
.cmp-table::-webkit-scrollbar {
  height: 6px;
}

.cmp-table::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 10px;
}

.cmp-table::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 10px;
}
