/* ============ TOKENS ============ */
:root {
  /* Marca */
  --bg: #0b0c09;
  --panel: #13150f;
  --panel-2: #1a1d14;
  --line: #262a1e;
  --line-2: #343a29;
  --ink: #eceee4;
  --mute: #8f9684;
  --lime: #c6ff3d;
  --lime-ink: #0b0c09;
  --lime-2: #b3ec24;
  --lime-glow: rgba(198, 255, 61, 0.14);
  --lime-glow-strong: rgba(198, 255, 61, 0.32);
  --lime-glow-soft: rgba(198, 255, 61, 0.06);

  /* Alias de los nombres anteriores (secciones que se conservan) */
  --bg-2: #0f110c;
  --bg-elev: var(--panel);
  --bg-card: var(--panel);
  --border: var(--line);
  --border-2: var(--line-2);
  --border-hover: #454c37;
  --text: var(--ink);
  --text-dim: #b4baa7;
  --text-mute: var(--mute);
  --accent: var(--lime);
  --accent-2: var(--lime-2);
  --accent-glow: var(--lime-glow);
  --accent-glow-strong: var(--lime-glow-strong);
  --accent-glow-soft: var(--lime-glow-soft);
  --danger: #ff6b6b;
  --danger-glow: rgba(255, 107, 107, 0.12);

  /* Tipografía */
  --display: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --radius: 14px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Curvas y duraciones */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-quick: 140ms;
  --dur-fast: 180ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;
  --dur-enter: 480ms;
  --dur-exit: 220ms;

  color-scheme: dark;
}

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

html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: var(--display);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

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

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

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

section {
  scroll-margin-top: 96px;
}

main,
header,
footer,
section,
.fab-wa,
.skip-link {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* ============ NAV (píldora flotante) ============ */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 8px 20px;
  background: rgba(19, 21, 15, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px #000;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.nav.scrolled .nav-inner {
  background: rgba(19, 21, 15, 0.9);
  border-color: var(--line-2);
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.logo:hover {
  opacity: 0.85;
}

.logo-mark {
  width: 21px;
  height: 24px;
  flex-shrink: 0;
}

.logo .accent {
  color: var(--lime);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--mute);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-links a[aria-current="true"] {
  color: var(--ink);
}

.nav-links a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--ink);
  }

  .nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  touch-action: manipulation;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-quick) var(--ease-out);
}

.nav-toggle:active {
  transform: scale(0.94);
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  top: 80px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 99;
  background: rgba(19, 21, 15, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 20px 20px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-drawer),
    opacity var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-slow);
}

.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease-drawer),
    opacity var(--dur-base) var(--ease-out),
    visibility 0s;
}

.nav-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-drawer a:last-of-type {
  border-bottom: none;
}

.nav-drawer a:active {
  color: var(--lime);
}

.nav-drawer .btn-primary {
  display: flex;
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  color: var(--lime-ink);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 420px) {
  .nav-inner {
    padding-left: 16px;
    gap: 10px;
  }

  .nav-cta {
    padding: 9px 14px !important;
    font-size: 12.5px !important;
  }

  .logo {
    font-size: 17px;
    gap: 8px;
  }
}

/* Celulares muy angostos (iPhone SE 1ª gen, Android chicos): el CTA vive en el menú */
@media (max-width: 374px) {
  .nav-cta {
    display: none !important;
  }
}

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 120px 0;
  position: relative;
}

section.compact {
  padding: 80px 0;
}

@media (max-width: 720px) {
  section {
    padding: 80px 0;
  }

  section.compact {
    padding: 56px 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header.left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
}

/* ============ HERO ============ */
.hero {
  padding: 132px 0 64px;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 78% 42%, rgba(198, 255, 61, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(198, 255, 61, 0.04), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 82px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: initial;
}

.ht-line {
  display: block;
  white-space: nowrap;
}

/* Resaltador: el texto siempre está visible; solo la franja lima se dibuja */
.hl {
  position: relative;
  display: inline-block;
  padding: 0.02em 0.12em 0;
  margin-left: -0.06em;
  transform: rotate(-1.2deg);
  color: var(--ink);
}

.hl::before {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  padding: inherit;
  background: var(--lime);
  color: var(--lime-ink);
  clip-path: inset(0 0 0 0);
  animation: hlSwipe 900ms 250ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes hlSwipe {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-sub2 {
  margin-top: 6px;
  color: var(--mute);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 46ch;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- Teléfono ---------- */
.hero-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.device-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.phone {
  position: relative;
  width: min(280px, 78vw);
  background: #0f110b;
  border: 1px solid var(--line-2);
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 40px 80px -40px #000, 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 72px;
  height: 18px;
  margin-left: -36px;
  border-radius: 999px;
  background: #0f110b;
  z-index: 2;
}

.screen {
  position: relative;
  height: 470px;
  border-radius: 29px;
  background: #ece8dd;
  color: #16180f;
  overflow: hidden;
  font-family: var(--display);
}

.scene {
  position: absolute;
  inset: 0;
  padding: 44px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 420ms;
}

.scene.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s;
}

/* Los mensajes solo "entran" con JS; sin JS se ven completos desde el inicio */
.js .scene.on .in {
  animation: pop 420ms both var(--ease-out);
}

.js .scene.on .in:nth-child(2) { animation-delay: 150ms; }
.js .scene.on .in:nth-child(3) { animation-delay: 650ms; }
.js .scene.on .in:nth-child(4) { animation-delay: 1150ms; }
.js .scene.on .in:nth-child(5) { animation-delay: 1650ms; }

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -44px -14px 6px;
  padding: 40px 14px 10px;
  background: #1f5c4a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.chat-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-head small {
  flex-shrink: 0;
  margin-left: 8px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 11px;
  opacity: 0.8;
}

.msg {
  max-width: 86%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.msg.me {
  align-self: flex-end;
  background: #d8f7c4;
}

.ticket {
  background: #16180f;
  color: #eceee4;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  font-family: var(--mono);
  line-height: 1.65;
}

.ticket b {
  color: var(--lime);
  font-weight: 500;
}

.stars {
  font-size: 28px;
  color: #e0a100;
  letter-spacing: 3px;
  line-height: 1;
  padding: 4px 2px;
}

.g-btn {
  align-self: flex-start;
  background: #1a73e8;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
}

.stamps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
}

.stamps span {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed #b8b09a;
}

.stamps span.f {
  background: #2d5a48;
  border: 0;
}

.g-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  color: #444;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  margin-top: 4px;
}

.g-res {
  font-size: 11.5px;
  color: #555;
  padding: 2px 4px;
}

.g-res b {
  display: block;
  color: #1a0dab;
  font-size: 14px;
  font-weight: 600;
}

.site {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.site-top {
  background: #f3d9a4;
  padding: 18px 14px;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.site-body {
  padding: 12px 14px 14px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-cta {
  background: #16180f;
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  text-align: center;
}

/* Pestañas: solo tienen sentido con JS */
.phone-tabs {
  display: none;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.js .phone-tabs {
  display: flex;
}

.phone-tabs button {
  font: 500 12px var(--mono);
  background: transparent;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .phone-tabs button:hover {
    color: var(--ink);
    border-color: var(--line-2);
  }
}

.phone-tabs button[aria-selected="true"] {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}

/* Etiquetas flotantes */
.float-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(26, 29, 20, 0.92);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: 0 16px 30px -16px #000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: floaty 6s ease-in-out infinite;
}

.float-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.float-tag b {
  color: #f5b400;
  font-weight: 400;
  letter-spacing: 1px;
}

.ft-1 { top: 16%; left: -2%; }
.ft-2 { top: 52%; right: -4%; animation-delay: -2s; }
.ft-3 { bottom: 8%; left: 2%; animation-delay: -4s; }

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

@media (max-width: 1100px) {
  .ft-1 { left: -6%; }
  .ft-2 { right: -8%; }
  .ft-3 { left: -4%; }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 116px;
  }

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

  .hero-title {
    font-size: clamp(38px, 10.6vw, 76px);
  }

  .ft-1 { left: 2%; }
  .ft-2 { right: 0; }
  .ft-3 { left: 4%; }
}

@media (max-width: 480px) {
  .hero-cta-row .btn {
    flex: 1 1 100%;
  }

  .float-tag {
    font-size: 11.5px;
    padding: 6px 10px;
  }

  .ft-1 { left: 0; top: 10%; }
  .ft-2 { right: 0; }
  .ft-3 { left: 0; bottom: 6%; }

  .screen {
    height: 440px;
  }
}

/* ============ CINTA (marquee) ============ */
.marquee {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

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

.marquee-list {
  display: flex;
  list-style: none;
  flex-shrink: 0;
}

.marquee-list li {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.marquee-list li::after {
  content: '/';
  color: var(--lime);
  margin-inline: 24px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ============ GIROS ============ */
.giros {
  padding: 48px 0 24px;
}

.giros-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
  text-align: center;
}

.chips {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink);
}

.chip-you {
  border-color: var(--lime);
  color: var(--lime);
}

@media (max-width: 720px) {
  .giros {
    padding: 36px 0 8px;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-quick) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary {
  background: var(--accent);
  color: var(--lime-ink);
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-2);
    box-shadow: 0 12px 32px var(--accent-glow-strong);
    transform: translateY(-2px);
  }

  .btn-primary:hover:active {
    transform: translateY(-2px) scale(0.97);
  }
}

.btn-primary svg {
  transition: transform var(--dur-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover svg {
    transform: translateX(4px);
  }
}

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

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    border-color: var(--accent);
    background: var(--accent-glow-soft);
    color: var(--accent);
  }
}

.nav-cta {
  white-space: nowrap;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--lime-ink) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-quick) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.nav-cta:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow-strong);
    background: var(--accent-2);
  }
}

.nav-cta::after {
  display: none !important;
}

/* ============ TRES FORMAS ============ */
.ways {
  padding-top: 80px;
}

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.way {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 260ms var(--ease-out), border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.js .way.reveal.visible {
  transition: opacity var(--dur-enter) var(--ease-out), transform 260ms var(--ease-out),
    border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .way:hover {
    transform: translateY(-6px);
    border-color: var(--lime);
    box-shadow: 0 24px 40px -28px rgba(198, 255, 61, 0.35);
  }
}

.way-kicker {
  font-family: var(--mono);
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.way h3 {
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.way p {
  color: var(--text-dim);
  font-size: 16px;
}

.way-tags {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.way-tags li {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--mute);
}

.way-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--lime);
  min-height: 44px;
}

.way-link svg {
  transition: transform var(--dur-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .way-link:hover svg {
    transform: translateX(4px);
  }
}

@media (max-width: 900px) {
  .ways-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ DEMOS ============ */
.demos {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 250px;
  transition: transform 260ms var(--ease-out), border-color 260ms var(--ease-out);
}

.js .demo-card.reveal.visible {
  transition: opacity var(--dur-enter) var(--ease-out), transform 260ms var(--ease-out), border-color 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .demo-card:hover {
    transform: translateY(-4px);
    border-color: var(--lime);
  }

  .demo-card:hover .demo-go::after {
    transform: translateX(4px);
  }
}

.demo-card:active {
  transform: scale(0.99);
}

.demo-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--line-2);
}

.demo-for {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
}

.demo-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.demo-card p {
  color: var(--text-dim);
  font-size: 15px;
}

.demo-go {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--lime);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.demo-go::after {
  content: '→';
  transition: transform var(--dur-base) var(--ease-out);
}

.demo-all {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-2);
}

@media (max-width: 1000px) {
  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-card {
    min-height: 0;
  }
}

/* ============ TRABAJOS ============ */
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.work-head .section-header {
  margin-bottom: 0;
}

/* Carrusel: scroll horizontal nativo con snap (sin JS también funciona) */
.work-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
}

.work-grid::-webkit-scrollbar {
  display: none;
}

.work-grid:focus-visible {
  outline-offset: 6px;
}

.work-grid > .work-card {
  flex: 0 0 min(560px, 82%);
  scroll-snap-align: start;
}

/* Escritorio: dos proyectos por vista, alineados al contenedor */
@media (min-width: 1000px) {
  .work-grid {
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .work-grid > .work-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

.carousel-nav {
  display: none;
  gap: 10px;
  flex-shrink: 0;
}

.js .carousel-nav {
  display: flex;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out), transform var(--dur-quick) var(--ease-out);
}

.carousel-btn:active {
  transform: scale(0.94);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-btn:not(:disabled):hover {
    border-color: var(--lime);
    color: var(--lime);
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  transition: width 300ms var(--ease-out), background-color 300ms var(--ease-out);
}

.carousel-dots i.on {
  width: 24px;
  background: var(--lime);
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover {
    border-color: var(--line-2);
  }

  .work-card:hover .work-shot > img {
    transform: scale(1.03);
  }
}

.work-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f110b;
  border-bottom: 1px solid var(--line);
}

.work-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(19, 21, 15, 0.92);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}

.work-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.work-bar span {
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-shot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  padding-top: 31px;
  transition: transform 600ms var(--ease-out);
}

.work-self {
  position: absolute;
  inset: 31px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 8%;
  background:
    radial-gradient(ellipse 70% 60% at 85% 50%, rgba(198, 255, 61, 0.1), transparent 70%),
    var(--bg);
}

.work-self img {
  width: 30px;
  height: 34px;
  margin-bottom: 14px;
}

.ws-big {
  font-weight: 900;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.ws-hl {
  background: var(--lime);
  color: var(--lime-ink);
  padding: 0 0.1em;
  display: inline-block;
  transform: rotate(-1.2deg);
}

.ws-here {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  border: 1px solid rgba(198, 255, 61, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

.work-body {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.work-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.work-top h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.work-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}

.work-body p {
  color: var(--text-dim);
  font-size: 15px;
}

.work-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
  color: var(--lime);
}

.more-link {
  margin-top: 28px;
  text-align: center;
}

.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--line-2);
}

@media (hover: hover) and (pointer: fine) {
  .more-link a:hover,
  .work-link:hover {
    color: var(--lime);
  }
}

@media (max-width: 760px) {
  .work-head {
    margin-bottom: 28px;
  }

  .js .carousel-nav {
    display: none;
  }

  .work-grid > .work-card {
    flex-basis: 86%;
  }
}

/* ============ HISTORIA (scroll) ============ */
.story {
  padding-bottom: 80px;
}

.story-quote {
  font-size: clamp(40px, 7.4vw, 104px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.sq-line {
  display: block;
}

.sq-accent {
  color: var(--lime);
}

/* Palabras que genera el JS para el efecto de scroll */
.sq-word {
  display: inline-block;
  will-change: color, opacity;
}

.story-lead {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 44ch;
}

.story-grid {
  margin-top: 72px;
}

.story-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Versión base (sin JS o pantallas chicas): cada paso con su teléfono */
.story-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step-time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-copy h3 {
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.step-copy p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 17px;
  max-width: 40ch;
}

.phone-sm {
  width: 240px;
}

.phone-sm .screen {
  height: 400px;
}

.story-stage {
  display: none;
}

@media (max-width: 760px) {
  .story-grid {
    margin-top: 48px;
  }

  .story-step {
    grid-template-columns: 1fr;
    padding: 24px 20px 28px;
    gap: 24px;
  }

  .step-phone {
    display: flex;
    justify-content: center;
  }
}

/* Versión con pin (la activa el JS en pantallas ≥ 760 px sin reduced-motion) */
.story-pin .story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}

.story-pin .story-steps {
  gap: 0;
}

.story-pin .story-step {
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  opacity: 0.28;
  transition: opacity 400ms var(--ease-out);
}


.story-pin .story-step.on {
  opacity: 1;
}

.story-pin .step-phone {
  display: none;
}

.story-pin .story-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100vh;
  justify-content: center;
  padding-top: 40px;
}

.story-stage::before {
  content: '';
  position: absolute;
  inset: 10% -10%;
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(198, 255, 61, 0.09), transparent 62%);
  pointer-events: none;
}

.story-stage .screen {
  height: min(520px, 62vh);
}

.story-dots {
  display: flex;
  gap: 8px;
}

.story-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  transition: width 300ms var(--ease-out), background-color 300ms var(--ease-out);
}

.story-dots i.on {
  width: 24px;
  background: var(--lime);
}

/* Versión con pin en celular (< 760 px): teléfono fijo y pasos que entran
   con desenfoque y deslizamiento mientras se hace scroll */
.story-pin-m .story-grid {
  height: 100vh;
  height: 100svh;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  padding: 92px 0 18px;
}

.story-pin-m .story-steps {
  position: relative;
  flex: none;
  height: 196px;
  gap: 0;
}

.story-pin-m .story-step {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 520ms var(--ease-out), filter 520ms var(--ease-out), transform 520ms var(--ease-out);
}

.story-pin-m .story-step.on {
  opacity: 1;
  filter: blur(0);
  transform: none;
  pointer-events: auto;
}

.story-pin-m .step-copy h3 {
  font-size: clamp(26px, 8vw, 34px);
}

.story-pin-m .step-copy p {
  font-size: 15.5px;
  margin-top: 8px;
}

.story-pin-m .step-phone {
  display: none;
}

.story-pin-m .story-stage {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.story-pin-m .story-stage .phone {
  width: min(240px, 64vw);
  padding: 8px;
  border-radius: 32px;
}

.story-pin-m .story-stage .screen {
  height: calc(100svh - 92px - 196px - 18px - 44px);
  max-height: 430px;
  min-height: 250px;
  border-radius: 25px;
}

.site-top-blue {
  background: #cfe3f7;
}

/* Lenis: estilos recomendados */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .price-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
  }

  .price-card.featured:hover {
    border-color: var(--accent);
  }
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(198, 255, 61, 0.04), var(--bg-card) 60%);
  box-shadow: 0 0 40px var(--accent-glow-soft);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--lime-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.price-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.price-tagline {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 42px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.price-amount .from {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-amount .num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-amount .cur {
  font-size: 14px;
  color: var(--text-mute);
  font-weight: 500;
}

.price-maintenance {
  font-size: 13px;
  color: var(--text-dim);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.price-maintenance strong {
  color: var(--text);
  font-weight: 600;
}

.price-for {
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.price-desc {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.price-cta {
  margin-top: auto;
}

.pricing-note {
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ PROMISES / COMPROMISO ============ */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .promise-grid {
    grid-template-columns: 1fr;
  }
}

.promise-card {
  position: relative;
  padding: 32px 32px 32px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.promise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 480ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .promise-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
  }

  .promise-card:hover::before {
    transform: scaleY(1);
  }
}

.promise-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.promise-card h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.promise-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ============ PROCESS ============ */
.promises-block {
  margin-top: 112px;
}

@media (max-width: 720px) {
  .promises-block {
    margin-top: 72px;
  }
}

.process {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

/* Desktop connecting rail */
.steps::before {
  content: '';
  position: absolute;
  top: 55px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-2), var(--border-2), transparent);
  z-index: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  transition:
    border-color var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
  }

  .step:hover .step-num {
    text-shadow: 0 0 24px var(--accent-glow-strong);
  }
}

.step-num {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: text-shadow var(--dur-slow) var(--ease-out);
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ============ ABOUT ============ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-visual {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  transition: border-color var(--dur-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .about-visual:hover {
    border-color: var(--border-hover);
  }
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-glow) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(198, 255, 61, 0.08) 0%, transparent 40%);
}

.code-window {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}

.code-dot.g {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.code-title {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}

.code-lines {
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.9;
}

.code-lines .kw {
  color: var(--accent);
}

.code-lines .str {
  color: #f5d67b;
}

.code-lines .fn {
  color: #7dd3fc;
}

.code-lines .comment {
  color: var(--text-mute);
  opacity: 0.6;
}

.code-lines .indent {
  padding-left: 18px;
}

.code-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s steps(2, end) infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* En celular la ventana de código crece con su contenido (no se corta) */
@media (max-width: 560px) {
  .about-visual {
    aspect-ratio: auto;
  }

  .code-window {
    padding: 18px 16px;
  }

  .code-lines {
    font-size: 11.5px;
    line-height: 1.8;
  }

  .code-lines .indent {
    padding-left: 12px;
  }
}

.about-text h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.about-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--lime-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 24px var(--accent-glow);
}

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

.about-signature-text .role {
  color: var(--text-mute);
  font-size: 12px;
}

.about-signature {
  flex-wrap: wrap;
}

.about-portfolio-btn {
  margin-left: auto;
}

@media (max-width: 560px) {
  .about-portfolio-btn {
    margin-left: 0;
    width: 100%;
  }
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}

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

.faq-trigger {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  touch-action: manipulation;
  transition: color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .faq-trigger:hover {
    color: var(--accent);
  }
}

.faq-trigger:active {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform var(--dur-slow) var(--ease-out);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Sin JS las respuestas se ven abiertas; con JS funcionan como acordeón */
html:not(.js) .faq-icon {
  display: none;
}

.js .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-standard);
}

.faq-body-inner {
  padding: 0 26px 24px;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15px;
}

.faq-body-inner a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ CONTACT ============ */
.contact {
  background:
    radial-gradient(ellipse at top, rgba(198, 255, 61, 0.06) 0%, transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.contact h2 span {
  color: var(--accent);
}

.contact-sub {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

form {
  display: grid;
  gap: 18px;
  text-align: left;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-slow) var(--ease-out);
}

form:focus-within {
  border-color: var(--border-hover);
}

@media (max-width: 640px) {
  form {
    padding: 28px 22px;
  }
}

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

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
  transition: color var(--dur-fast) var(--ease-out);
}

.field:focus-within label {
  color: var(--accent);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  min-height: 44px;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-mute);
}

.field .field-error {
  display: none;
  margin-top: 8px;
  color: var(--danger);
  font-size: 12.5px;
  align-items: center;
  gap: 6px;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-glow);
}

.field.has-error .field-error {
  display: flex;
}

/* Honeypot anti-spam — oculto sin display:none para que los bots lo detecten */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

.form-submit {
  justify-self: start;
  position: relative;
  min-width: 180px;
}

.form-submit.loading {
  pointer-events: none;
}

.form-submit.loading .btn-label,
.form-submit.loading svg {
  opacity: 0;
}

.form-submit .spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.form-submit.loading .spinner {
  opacity: 1;
}

.spinner-ring {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10, 10, 10, 0.25);
  border-top-color: var(--lime-ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-note {
  font-size: 12px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-note svg {
  color: var(--accent);
  flex-shrink: 0;
}

.form-success {
  opacity: 0;
  transform: scale(0.96);
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  background: var(--accent-glow);
  border: 1px solid rgba(198, 255, 61, 0.3);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    max-height var(--dur-slow) var(--ease-standard),
    padding var(--dur-slow) var(--ease-standard);
}

.form-success.show {
  opacity: 1;
  transform: scale(1);
  max-height: 100px;
  padding: 20px 24px;
}

.form-success .check {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--lime-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 340px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-quick) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
  }
}

.social-link:active {
  transform: scale(0.94);
}

.footer-col h2 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

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

.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
  display: inline-block;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: var(--accent);
    transform: translateX(2px);
  }
}

.footer-place {
  color: var(--text-mute);
  font-size: 13px;
}

.footer-col a.btn-primary {
  color: var(--lime-ink);
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a.btn-primary:hover {
    color: var(--lime-ink);
    transform: translateY(-2px);
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  color: var(--text-mute);
  font-size: 13px;
}

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

.footer-bottom-links a {
  color: var(--text-mute);
  transition: color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer-bottom-links a:hover {
    color: var(--accent);
  }
}

/* ============ WhatsApp float ============ */
.fab-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: scale(0.9) translateY(8px);
  pointer-events: none;
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.fab-wa.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .fab-wa:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
  }
}

.fab-wa:active {
  transform: scale(0.94);
}

.fab-wa::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: fabPulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.92);
  }

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

/* ============ REVEAL ============ */
/* Sin JS todo se ve: solo ocultamos cuando <html> tiene la clase .js */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out);
}

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

/* Short stagger delays (Emil: 30-80ms) */
.reveal.d1 {
  transition-delay: 60ms;
}

.reveal.d2 {
  transition-delay: 120ms;
}

.reveal.d3 {
  transition-delay: 180ms;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .fab-wa::after,
  .code-cursor,
  .float-tag,
  .js .scene.on .in,
  .hl::before {
    animation: none !important;
  }

  .marquee-track {
    animation: none !important;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .marquee-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .marquee-list[aria-hidden="true"] {
    display: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* iPhone hace zoom al enfocar campos con letra < 16 px: en celular van a 16 px */
@media (max-width: 760px) {
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}
