/* ============================================================
   Gengar · Landing agente Hermes — styles.css
   Estética: blueprint técnico + acento violeta/rosa/cyan
   Vanilla CSS · sin frameworks · respeta prefers-reduced-motion
   ============================================================ */

/* ====================== tokens ====================== */
:root {
  /* base blueprint (inspirado en low-cost-coding-llm) */
  --color-ink: #0a0e13;
  --color-panel: #10161e;
  --color-raise: #151d28;
  --color-line: #202d3d;
  --color-fog: #8ba0b4;
  --color-snow: #e9f1f8;

  /* acento de marca (tus violetas) — reemplazan al verde lima */
  --color-accent: #a855f7;        /* violeta principal */
  --color-accent-2: #d946ef;      /* rosa */
  --color-accent-3: #22d3ee;      /* cyan */
  --color-accent-glow: #c084fc;   /* violeta claro para hovers */
  --color-warn: #ffb454;          /* ámbar para datos secundarios */
  --color-ok: #6ee7c8;            /* mint para estados ok */

  /* fondo principal (mezcla blueprint con tu violeta oscuro) */
  --color-bg: #0d0717;
  --color-bg-2: #1a0f2e;

  /* tipografía */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --font-pixel: "Press Start 2P", "Courier New", ui-monospace, monospace;

  /* easings */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emph: cubic-bezier(0.4, 0, 0.2, 1);

  /* radios */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
}

/* ====================== reset base ====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--color-line) var(--color-ink);
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-snow);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--color-accent);
  color: #0a0e13;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-ink);
}
::-webkit-scrollbar-thumb {
  background: var(--color-line);
  border-radius: 8px;
}

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

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

/* ====================== fondo técnico blueprint ====================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(168, 85, 247, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 110%, rgba(217, 70, 239, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(34, 211, 238, 0.05), transparent 60%),
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

/* ====================== skip link ====================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-ink);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border-radius: var(--r-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-snow);
  outline-offset: 2px;
}

/* ====================== nav ====================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav.scrolled {
  border-bottom-color: var(--color-line);
  background: rgba(13, 7, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-snow);
  letter-spacing: -0.01em;
}
.nav-brand-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  animation: glow-pulse 3.2s ease-in-out infinite;
}
.nav-brand-dim {
  color: var(--color-fog);
  font-weight: 400;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--color-fog);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover {
  color: var(--color-snow);
}
.lang-btn.is-active {
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.08);
}
.lang-divider {
  width: 1px;
  height: 1rem;
  background: var(--color-line);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  padding: 0.4rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-snow);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-fog);
  transition: color 0.2s;
  position: relative;
}
.nav-menu a:hover {
  color: var(--color-accent);
}
.nav-menu a.nav-cta {
  color: var(--color-accent);
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(168, 85, 247, 0.6);
  border-radius: var(--r-sm);
  letter-spacing: 0.18em;
}
.nav-menu a.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-ink);
}



.tc-conv-label:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
}

.tc-conv-label-text {
  color: #b8b8c8;
  flex: 1;
  min-width: 0;
}
.tc-conv--hermes .tc-conv-label-bullet { color: #ec4899; }
.tc-conv--hermes .tc-conv-label-text { color: #f3f3f7; }

.tc-line-text--client {
  color: #d4d4dc;
  padding-left: 0.95rem;
  font-style: normal;
  white-space: pre-wrap;
}

/* Copy button en el label */
.tc-conv--hermes .tc-conv--hermes /* Estado: copiado */
35%  { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.18), 0 0 24px rgba(52, 211, 153, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25), 0 0 16px rgba(52, 211, 153, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  }


.tc-chrome-file {
  font-size: 0.72rem;
  color: #8a8a99;
  margin-left: 0.4rem;
}@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(13, 7, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-line);
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease-out), opacity 0.25s;
  }
  .nav-menu.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-menu a {
    display: block;
    padding: 0.85rem 0;
    width: 100%;
  }
}

/* ====================== hero ====================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.25rem 5rem;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.hero-blob--1 {
  width: 38vw;
  height: 38vw;
  background: #6b3fa0;
  top: -8%;
  left: -8%;
  animation: blob-a 22s ease-in-out infinite alternate;
}
.hero-blob--2 {
  width: 32vw;
  height: 32vw;
  background: #d946ef;
  bottom: -10%;
  right: -6%;
  animation: blob-b 28s ease-in-out infinite alternate;
}
.hero-blob--3 {
  width: 28vw;
  height: 28vw;
  background: #22d3ee;
  top: 30%;
  right: 15%;
  animation: blob-c 19s ease-in-out infinite alternate;
  opacity: 0.35;
}
.hero-blob--4 {
  width: 24vw;
  height: 24vw;
  background: #a855f7;
  top: 55%;
  left: 20%;
  animation: blob-d 25s ease-in-out infinite alternate;
  opacity: 0.4;
}

@keyframes blob-a {
  to { transform: translate(8vw, 6vh) scale(1.15); }
}
@keyframes blob-b {
  to { transform: translate(-6vw, -8vh) scale(1.1); }
}
@keyframes blob-c {
  to { transform: translate(-10vw, 8vh) scale(0.9); }
}
@keyframes blob-d {
  to { transform: translate(6vw, -10vh) scale(1.2); }
}

.hero-parallax {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  will-change: transform;
}
.hero-planet-wrap {
  width: clamp(180px, 30vw, 360px);
  aspect-ratio: 1;
}
.hero-planet {
  width: 100%;
  height: 100%;
  animation: planet-rotate 60s linear infinite;
}
@keyframes planet-rotate {
  to { transform: rotate(360deg); }
}

/* ====================== Átomo ====================== */
/* Cada órbita + su electrón van envueltos en un <g class="orbit-group">
   con la rotación aplicada inline. La elipse se mantiene siempre con
   los mismos rx/ry locales; el <g> la rota como si fuera un plano 3D. */
.orbit-group {
  transform-origin: 100px 100px;
}

.e1, .e2, .e3, .e4, .e5 {
  offset-path: path("M 100,78 a 85,22 0 1,0 0.01,0 z");
  offset-rotate: 0deg;
}
.e1 { animation: orbit 7s linear infinite; }
.e2 { animation: orbit 5s linear infinite reverse; }
.e3 { animation: orbit 9s linear infinite; }
.e4 { animation: orbit 6s linear infinite reverse; }
.e5 { animation: orbit 8s linear infinite; }

@keyframes orbit {
  to { offset-distance: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-planet,
  .e1, .e2, .e3, .e4, .e5 {
    animation: none;
  }
}

.stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  top: -10px;
  border-radius: 50%;
  background: var(--color-snow);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  animation:
    float-down linear infinite,
    twinkle ease-in-out infinite;
}
@keyframes float-down {
  to { transform: translateY(110vh); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--color-fog);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.hero-eyebrow::before {
  content: "▶";
  color: var(--color-accent);
}
.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--color-fog);
  max-width: 36ch;
  margin: 0;
  text-align: center;
  letter-spacing: 0.01em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ====================== HERMES pixel font (H1) ====================== */
@font-face {
  font-family: "Press Start 2P";
  src: url("assets/fonts/press-start-2p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.hermes-pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0;
  text-align: center;
  color: var(--color-snow);
  -webkit-text-stroke: 0;
  text-shadow:
    2px 2px 0 var(--color-accent),
    4px 4px 0 var(--color-accent-2);
  image-rendering: pixelated;
  user-select: none;
  position: relative;
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .hermes-pixel {
    animation: hermes-flicker 6s ease-in-out infinite;
  }
}
@keyframes hermes-flicker {
  0%, 92%, 100% { opacity: 1; }
  94%, 96% { opacity: 1; text-shadow:
    2px 2px 0 var(--color-accent),
    4px 4px 0 var(--color-accent-2),
    0 0 18px var(--color-accent); }
  95% { opacity: 0.85; }
}
@media (max-width: 880px) {
  .hermes-pixel {
    font-size: clamp(2rem, 11vw, 4rem);
    letter-spacing: 0.03em;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: transparent;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 1px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(-4px); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

/* ====================== botones ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-ink);
  box-shadow: 0 6px 24px -10px rgba(168, 85, 247, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(168, 85, 247, 0.65);
  background: var(--color-accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--color-snow);
  border-color: var(--color-line);
}
.btn-ghost:hover {
  border-color: var(--color-fog);
  color: var(--color-accent);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ====================== secciones base ====================== */
.section {
  padding: 5rem 1.25rem;
  position: relative;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.container.narrow {
  max-width: 720px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--color-snow);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--color-fog);
  margin: 0 0 2.5rem;
  max-width: 60ch;
}

/* ====================== reveals ====================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* mask-line: texto que sube desde abajo (inspirado en low-cost) */
.mask-line {
  display: block;
  overflow: hidden;
}
.mask-line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: var(--rv-delay, 0ms);
}
.is-in .mask-line > span,
.mask-line.is-in > span {
  transform: translateY(0);
}

/* ====================== Que es — mono subtitle (matrix style) ====================== */
.que-es-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-snow);
  margin: 0 0 1rem;
}
.que-es-body strong {
  color: var(--color-accent-glow);
  font-weight: 600;
}
.matrix-fx {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-snow);
  background: linear-gradient(180deg, var(--color-snow), var(--color-fog));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  padding: 0.15em 0.4em;
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}
.matrix-fx::before {
  content: "▸";
  margin-right: 0.5em;
  color: var(--color-accent);
  -webkit-text-fill-color: var(--color-accent);
  animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* ====================== Comparativa ====================== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (min-width: 880px) {
  .compare-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.compare-card {
  position: relative;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.25s var(--ease-out);
}
.compare-card:hover {
  border-color: var(--color-fog);
  transform: translateY(-2px);
}
.compare-card-featured {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.04), var(--color-panel));
  position: relative;
}
.compare-badge {
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.compare-img {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--color-ink);
  aspect-ratio: 8/5;
}
.compare-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-snow);
}
.compare-block h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-warn);
  margin: 0 0 0.35rem;
}
.compare-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-fog);
  line-height: 1.6;
}
.compare-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-fog);
  font-style: italic;
  border-top: 1px dashed var(--color-line);
  padding-top: 0.85rem;
  margin: 0;
}
/* terminal-reply: block estilo "respuesta de Hermes" para compare cards */
.terminal-reply {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.04), transparent 60%), var(--color-ink);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  padding: 0.75rem 0.95rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}
.terminal-reply-prompt {
  display: flex;
  gap: 0.05rem;
  color: var(--color-fog);
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}
.terminal-reply-prompt .tr-arrow  { color: var(--color-accent-2); }
.terminal-reply-prompt .tr-name   { color: var(--color-accent-3); }
.terminal-reply-prompt .tr-at     { color: var(--color-fog); }
.terminal-reply-prompt .tr-host   { color: var(--color-accent-3); font-weight: 600; }
.terminal-reply-prompt .tr-colon  { color: var(--color-fog); }
.terminal-reply-prompt .tr-path   { color: var(--color-snow); }
.terminal-reply-prompt .tr-dollar { color: var(--color-fog); margin-left: 0.15rem; }
.terminal-reply-line {
  color: var(--color-snow);
  font-style: italic;
}

/* ==========================================================================
   Terminal chat unificado (Por qué Hermes y no las alternativas)
   ========================================================================== */
.terminal-chat {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.04), transparent 50%), var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tc-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-line);
}
.tc-dots {
  display: flex;
  gap: 0.32rem;
}
.tc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.tc-dot-r { background: #ff5f57; }
.tc-dot-y { background: #febc2e; }
.tc-dot-g { background: #28c840; }
.tc-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-fog);
  flex: 1;
  text-align: center;
  margin-right: 38px; /* compensar los dots */
}
.tc-meta {
  display: none;
}
.tc-body {
  padding: 1.1rem 0.95rem 1.3rem 0.95rem;
}
.tc-block {
  margin-bottom: 0.45rem;
}
.tc-block:last-child {
  margin-bottom: 0;
}
.tc-msg {
  margin-bottom: 0.5rem;
}
.tc-msg:last-child {
  margin-bottom: 0;
}
.tc-prompt {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  word-break: break-word;
}
.tc-msg-user .tc-arrow { color: var(--color-accent-2); }
.tc-msg-user .tc-name  { color: var(--color-fog); font-weight: 600; }
.tc-msg-user .tc-at    { color: var(--color-fog); }
.tc-msg-user .tc-host  { color: var(--color-fog); font-weight: 600; }
.tc-msg-user .tc-colon { color: var(--color-fog); }
.tc-msg-user .tc-path  { color: var(--color-snow); }
.tc-msg-user .tc-dollar{ color: var(--color-fog); }
.tc-msg-user .tc-cmd   { color: var(--color-fog); font-style: italic; margin-left: 0.4rem; }
.tc-msg-hermes .tc-arrow { color: var(--color-accent-2); }
.tc-msg-hermes .tc-name  { color: var(--color-accent-3); font-weight: 600; }
.tc-msg-hermes .tc-at    { color: var(--color-fog); }
.tc-msg-hermes .tc-host  { color: var(--color-accent-3); font-weight: 600; }
.tc-msg-hermes .tc-colon { color: var(--color-fog); }
.tc-msg-hermes .tc-path  { color: var(--color-snow); }
.tc-msg-hermes .tc-dollar{ color: var(--color-fog); }
.tc-text {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-snow);
  padding-left: 1.1rem;
  white-space: pre-wrap;
}
.tc-msg-user .tc-text {
  color: var(--color-fog);
  font-style: normal;
  white-space: normal;
}
.tc-msg-hermes .tc-text {
  font-style: italic;
}
.tc-cursor {
  display: inline-block;
  color: var(--color-accent-3);
  margin-left: 0.05rem;
  animation: tr-blink 1.05s steps(1) infinite;
}
.tc-sep {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-line);
  margin: 0.85rem 0;
  letter-spacing: 0.15em;
  user-select: none;
}
.tc-sep-icon {
  color: var(--color-accent);
  margin: 0 0.4rem;
  font-size: 0.9rem;
}
@media (max-width: 720px) {
  .tc-title { font-size: 0.7rem; margin-right: 0; }
  .tc-prompt { font-size: 0.75rem; }
  .tc-text { font-size: 0.82rem; padding-left: 0.9rem; }
  .tc-body { padding: 0.85rem 0.75rem 1rem 0.75rem; }
}
.tc-sep-icon {
  color: var(--color-accent);
  margin: 0 0.4rem;
  font-size: 0.9rem;
}

/* ====================== Capacidades / Neural ====================== */
/* Por ahora el core central + SVG de conexiones están ocultos en todos los
   tamaños. La geometría del grid 1col/2col rompe las líneas y se ve como
   error de diseño. Cuando publiquemos y veamos mobile real, decidimos si
   lo reincorporamos con un layout adaptado o lo dejamos solo en desktop. */
.neural-wrap {
  margin-top: 1rem;
}
.neural-svg { display: none !important; }
.neural-core { display: none !important; }
/* halo removido por feedback: "queda feo, parece vibecoding mal hecho" */
.neural-core-icon {
  color: var(--color-accent);
  width: 28px;
  height: 28px;
}
.neural-core-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-snow);
  margin: 0;
}
.domains {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
}
@media (min-width: 700px) {
  .domains { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .domains { grid-template-columns: repeat(3, 1fr); }
}
.domain-card {
  background: var(--color-panel);
  border: 1px solid color-mix(in srgb, var(--domain, var(--color-accent)) 35%, transparent);
  border-left: 3px solid var(--domain, var(--color-accent));
  border-radius: var(--r-md);
  padding: 1.25rem;
  transition: border-color 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s;
}
.domain-card:hover {
  border-color: var(--domain, var(--color-accent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--domain, var(--color-accent)) 25%, transparent),
              0 8px 24px color-mix(in srgb, var(--domain, var(--color-accent)) 18%, transparent);
  transform: translateY(-2px);
}
.domain-icon {
  width: 28px;
  height: 28px;
  color: var(--domain, var(--color-accent));
  margin-bottom: 0.6rem;
}
.domain-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--domain, var(--color-accent));
}
.domain-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.domain-card li {
  font-size: 0.88rem;
  color: var(--color-fog);
  line-height: 1.5;
  padding-left: 0.85rem;
  position: relative;
}
.domain-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--domain, var(--color-accent));
}
.domain-card li strong {
  color: var(--color-snow);
  font-weight: 600;
}

/* ====================== Beneficios ====================== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}
.benefit-card {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.2s var(--ease-out);
}
.benefit-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.benefit-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--color-snow);
}
.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-fog);
  line-height: 1.55;
}

/* ====================== Proceso / Steps ====================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.25s, transform 0.2s var(--ease-out);
}
.step:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.step-num {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--color-ink);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.15em;
}
.step-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-snow);
}
.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-fog);
  line-height: 1.55;
}

/* ====================== FAQ ====================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  padding: 0;
  transition: border-color 0.25s;
}
.faq-item:hover {
  border-color: var(--color-fog);
}
.faq-item[open] {
  border-color: rgba(168, 85, 247, 0.4);
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: var(--color-snow);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  transition: transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  padding: 0 1.25rem 1.1rem;
  margin: 0;
  color: var(--color-fog);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ====================== Contacto ====================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-fog);
}
.field input,
.field select,
.field textarea {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  color: var(--color-snow);
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #ff7a68;
  box-shadow: 0 0 0 3px rgba(255, 122, 104, 0.15);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.form-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 1.2em;
}
.form-status.ok { color: var(--color-ok); }
.form-status.err { color: #ff7a68; }
.form-status.sending { color: var(--color-fog); }

.contact-alt {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.contact-alt p {
  margin: 0;
  color: var(--color-fog);
  font-size: 0.9rem;
}

/* ====================== Footer ====================== */
.footer {
  border-top: 1px solid var(--color-line);
  padding: 2.5rem 1.25rem 2rem;
  background: var(--color-ink);
  margin-top: 3rem;
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-fog);
}
.footer-dim {
  color: var(--color-line);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}
.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-fog);
  letter-spacing: 0.1em;
}

/* ====================== ticker (doble) ====================== */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: rgba(16, 22, 30, 0.6);
  padding: 0.85rem 0;
  margin: 0;
}
.ticker--top {
  margin: 0 0 2.5rem;
  border-top: none;
  border-bottom: 1px solid var(--color-line);
  background: rgba(10, 14, 19, 0.6);
}
.ticker--bottom {
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--color-line);
  border-bottom: none;
  background: rgba(10, 14, 19, 0.6);
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ticker--top .marquee { animation-direction: normal; }
.ticker--bottom .marquee { animation-direction: reverse; animation-duration: 42s; }
.marquee:hover { animation-play-state: paused; }
.marquee span {
  flex-shrink: 0;
  padding-right: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-fog);
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}
.marquee span::after {
  content: "◆";
  color: var(--color-accent);
  font-size: 0.6rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ====================== reduced motion ====================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .mask-line > span {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee { animation: none !important; }
  .hero-mesh { display: none; }
  .hero-parallax { display: none; }
  .stars { display: none; }
}

/* ==========================================================================
   Comparativa v4: UNA terminal, 3 conversaciones continuas
   ========================================================================== */
.tc-line-prompt-shared {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-left: 0.95rem;
  flex-wrap: nowrap;
  width: fit-content;
}
.tc-line--agent {
  gap: 0;
  padding: 0;
}
.tc-text-shared {
  padding-left: 0.95rem;
  color: #f3f3f7;
}
.tc-cursor-shared {
  display: inline-block;
  animation: cursor-blink 1.05s steps(1) infinite;
}
.tc-shell {
  max-width: 820px;
  margin: 1.5rem auto 0;
  background: #0a0a10;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(168, 85, 247, 0.15);
  font-family: var(--font-mono, 'IBM Plex Mono', 'Fira Code', monospace);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #f3f3f7;
}
.tc-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: rgba(168, 85, 247, 0.08);
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}
.tc-chrome-path {
  font-size: 0.78rem;
  color: #c084fc;
  margin-left: 0.5rem;
  letter-spacing: 0.02em;
}
.tc-chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
}
.tc-chrome-dot:nth-child(1) { background: #ff5f57; }
.tc-chrome-dot:nth-child(2) { background: #febc2e; }
.tc-chrome-dot:nth-child(3) { background: #28c840; }
.tc-chrome-title {
  font-size: 0.78rem;
  color: #c084fc;
  margin: 0 auto;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.tc-body {
  padding: 1.1rem 1.4rem 0.4rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.tc-conv {
  padding: 0.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tc-conv-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #00ff7f;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 auto 0.85rem;
  padding: 0.55rem 1.15rem;
  background: rgba(0, 255, 127, 0.06);
  border: 1px solid rgba(0, 255, 127, 0.4);
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
  font-weight: 600;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  text-shadow: 0 0 6px rgba(0, 255, 127, 0.4);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tc-conv-label:hover {
  background: rgba(0, 255, 127, 0.12);
  border-color: rgba(0, 255, 127, 0.65);
  box-shadow: 0 0 14px rgba(0, 255, 127, 0.25);
}
.tc-conv-label-bullet {
  color: #00ff7f;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 0 6px rgba(0, 255, 127, 0.6);
}
.tc-conv-label-text {
  color: #00ff7f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-conv-label-text {
  color: #b8b8c8;
}

.tc-line {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.2rem 0;
}
.tc-line-prompt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.05rem;
  font-size: 0.8rem;
}
.tc-arrow {
  color: #a855f7;
  margin-right: 0.15rem;
}
.tc-arrow--c { color: #b8b8c8; }
.tc-u, .tc-h {
  color: #d4d4dc;
  font-weight: 600;
}
.tc-a, .tc-c, .tc-d { color: #8a8a99; }
.tc-p { color: #f3f3f7; }
.tc-cmd { color: #ec4899; font-style: italic; margin-left: 0.3rem; }
.tc-line-prompt--r { justify-content: flex-end; padding-left: 1.4rem; }
.tc-u--h, .tc-h--h { color: #c084fc; }
.tc-line-text {
  color: #b8b8c8;
  padding-left: 0.95rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.tc-line-text--r {
  color: #f3f3f7;
  text-align: right;
  padding-left: 0;
  padding-right: 0.95rem;
}
.tc-italic { font-style: italic; }
.tc-cursor {
  display: inline-block;
  color: #c084fc;
  margin-left: 0.15rem;
  animation: tr-blink 1.05s steps(1) infinite;
  font-style: normal;
  vertical-align: middle;
}
.tc-sep {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.15rem 0;
}
.tc-sep-l { flex: 1; height: 1px; background: rgba(168, 85, 247, 0.2); }
.tc-sep-i { color: #a855f7; font-size: 0.9rem; }
.tc-input {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  font-size: 0.8rem;
  padding: 0.6rem 1.4rem 0.85rem 1.4rem;
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  margin-top: 0.4rem;
  color: #8a8a99;
}
.tc-input-cursor {
  display: inline-block;
  color: #c084fc;
  margin-left: 0.25rem;
  animation: tr-blink 1.05s steps(1) infinite;
}
@media (max-width: 720px) {
  .tc-shell { font-size: 0.78rem; }
  .tc-body, .tc-input { padding-left: 0.95rem; padding-right: 0.95rem; }
  .tc-line-prompt { font-size: 0.72rem; }
  .tc-line-text { font-size: 0.78rem; padding-left: 0.7rem; }
  .tc-line-text--r { padding-right: 0.7rem; }
  .tc-line-prompt--r { padding-left: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-cursor, .tc-input-cursor { animation: none; opacity: 0.6; }
}

.tc-conv-label-sub {
  display: block;
  white-space: normal;
  font-size: 0.78rem;
  font-weight: 400;
  color: #8a8a99;
  margin-top: 0.15rem;
  letter-spacing: 0;
}
