/* ==========================================================================
   Nodos Digitales — sistema de diseño "diagrama de nodos"
   Paleta derivada del logotipo: tinta azul marino + tres señales
   (menta = captación/acción · cielo = datos · coral = operación).
   Tipografía: Bricolage Grotesque (display) · Instrument Sans (cuerpo)
   · Spline Sans Mono (lecturas de sistema: métricas, precios, etiquetas).
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/spline-sans-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  color-scheme: dark;
  /* Tinta */
  --bg: #0a1322;
  --bg-deep: #060d18;
  --surface: #101c30;
  --surface-soft: #0d1727;
  --surface-lift: #17263f;
  --surface-strong: #edf2fa;
  --inverse-text: #10203a;
  --text: #f2f6fd;
  --muted: #94a3be;
  --muted-strong: #c7d2e6;
  --line: rgba(148, 178, 224, .16);
  --line-strong: rgba(75, 224, 160, .45);
  /* Señales */
  --brand: #4be0a0;          /* menta · acción */
  --brand-strong: #7defbd;
  --brand-ink: #05271a;
  --accent: #5bc8f5;         /* cielo · datos */
  --accent-strong: #ff8e66;  /* coral · operación */
  --accent-ink: #2b1206;
  --danger: #ff7a6e;
  --edge: linear-gradient(90deg, var(--brand), var(--accent) 52%, var(--accent-strong));
  /* Superficie y ritmo */
  --dot-grid: radial-gradient(circle, rgba(148, 178, 224, .13) 1px, transparent 1.4px);
  --shadow: 0 28px 70px rgba(3, 9, 20, .5);
  --shadow-soft: 0 14px 34px rgba(3, 9, 20, .32);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --container: 1180px;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3.25rem;
  --space-7: 5rem;
  /* Tipografía */
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-deep: #ffffff;
  --surface: #ffffff;
  --surface-soft: #e9eff8;
  --surface-lift: #f8fafd;
  --surface-strong: #0d1930;
  --inverse-text: #eff4fc;
  --text: #13223c;
  --muted: #56677f;
  --muted-strong: #33445f;
  --line: rgba(19, 34, 60, .14);
  --line-strong: rgba(11, 138, 86, .4);
  --brand: #0b8a56;
  --brand-strong: #076b42;
  --brand-ink: #ffffff;
  --accent: #0a74b0;
  --accent-strong: #c94f22;
  --accent-ink: #ffffff;
  --danger: #c03b2e;
  --dot-grid: radial-gradient(circle, rgba(19, 34, 60, .1) 1px, transparent 1.4px);
  --shadow: 0 24px 60px rgba(16, 27, 44, .16);
  --shadow-soft: 0 12px 28px rgba(16, 27, 44, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    var(--dot-grid) 0 0 / 28px 28px,
    radial-gradient(58rem 30rem at 8% -4%, rgba(75, 224, 160, .09), transparent 62%),
    radial-gradient(48rem 26rem at 96% 0%, rgba(91, 200, 245, .08), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 30rem);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] body {
  background:
    var(--dot-grid) 0 0 / 28px 28px,
    radial-gradient(58rem 30rem at 8% -4%, rgba(11, 138, 86, .08), transparent 62%),
    radial-gradient(48rem 26rem at 96% 0%, rgba(10, 116, 176, .07), transparent 60%),
    var(--bg);
}

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

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

picture {
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}

a:hover {
  color: var(--brand);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  transform: translateY(-180%);
  background: var(--surface-strong);
  color: var(--inverse-text);
  padding: .75rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 620;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg-deep) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 740;
  letter-spacing: -.015em;
  white-space: nowrap;
  color: var(--text);
}

.brand-name b {
  font-weight: 740;
  color: var(--brand);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .1rem;
  order: 2;
  margin-left: auto;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: var(--muted-strong);
  font-weight: 600;
  font-size: .93rem;
  padding: .6rem .74rem;
  border-radius: var(--radius-pill);
  transition: color .16s ease, background-color .16s ease;
}

.nav-menu a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-lift) 80%, transparent);
}

.nav-menu a[aria-current="page"] {
  color: var(--brand);
}

.nav-menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .1rem;
  width: .32rem;
  height: .32rem;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  order: 3;
}

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  border-radius: var(--radius-pill);
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .16s ease;
}

.nav-toggle:hover,
.theme-toggle:hover {
  border-color: var(--line-strong);
}

.theme-toggle::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.nav-toggle {
  display: none;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  display: block;
}

.nav-toggle::before,
.nav-toggle::after {
  position: absolute;
}

.nav-toggle::before {
  transform: translateY(-.42rem);
}

.nav-toggle::after {
  transform: translateY(.42rem);
}

/* --------------------------------------------------------------------------
   Ritmo de secciones
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--space-7);
}

.section-tight {
  padding-block: var(--space-6);
}

/* --------------------------------------------------------------------------
   Héroes
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 5.5rem;
  border-bottom: 1px solid var(--line);
  background:
    var(--dot-grid) 0 0 / 22px 22px,
    radial-gradient(46rem 26rem at 12% 0%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 64%),
    radial-gradient(40rem 24rem at 88% 12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%);
}

.home-hero {
  min-height: min(780px, calc(100svh - 76px));
  display: grid;
  align-items: center;
  padding-block: 4.25rem 3.5rem;
  background:
    var(--dot-grid) 0 0 / 22px 22px,
    radial-gradient(50rem 28rem at 6% -6%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 62%),
    radial-gradient(44rem 26rem at 96% 4%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 60%),
    radial-gradient(30rem 20rem at 70% 105%, color-mix(in srgb, var(--accent-strong) 7%, transparent), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr);
  gap: 3.25rem;
  align-items: center;
}

.hero-copy {
  max-width: 43rem;
}

/* Etiqueta de sistema: punto de nodo + arista */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  margin: 0 0 var(--space-3);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 9px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 4.5px 50%, currentColor 3.1px, transparent 3.8px) left center / 9px 9px no-repeat,
    linear-gradient(90deg, currentColor, transparent) 11px 50% / calc(100% - 11px) 1.5px no-repeat;
  opacity: .9;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  font-weight: 760;
  max-width: 15ch;
  margin-bottom: var(--space-4);
}

/* Arista de nodo: subrayado que se dibuja y cierra en un nodo coral */
h1 span,
.accent-text {
  color: var(--brand);
}

h1 span {
  padding-bottom: .06em;
  background: linear-gradient(90deg, var(--brand), var(--accent)) no-repeat left bottom / 100% .085em;
}

.page-hero h1 {
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.24rem;
  font-weight: 660;
  letter-spacing: -.012em;
  margin-bottom: .72rem;
}

.lead {
  font-size: 1.14rem;
  color: var(--muted-strong);
  max-width: 62ch;
}

.section-head {
  max-width: 48rem;
  margin-bottom: var(--space-5);
}

.section-head.wide {
  max-width: 62rem;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.center .eyebrow::before {
  display: none;
}

.center .eyebrow {
  gap: 0;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.05rem;
  padding: .85rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 640;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  color: inherit;
}

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

.button-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 26%, transparent);
}

.button-primary:hover {
  background: var(--brand-strong);
  color: var(--brand-ink);
}

.button-secondary {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  color: var(--brand);
}

.button-accent {
  background: var(--accent-strong);
  color: var(--accent-ink);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent-strong) 24%, transparent);
}

.button-accent:hover {
  background: color-mix(in srgb, var(--accent-strong) 84%, #ffffff);
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   Medios del héroe
   -------------------------------------------------------------------------- */

.hero-media {
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 8% -1.4rem 8%;
  height: 3.2rem;
  background: var(--edge);
  filter: blur(34px);
  opacity: .38;
  border-radius: 50%;
  pointer-events: none;
}

.hero-media img,
.showcase-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: contain;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.media-note {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  width: min(17.5rem, calc(100% - 2rem));
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--text);
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.media-note strong {
  display: block;
  line-height: 1.2;
}

.media-note span {
  color: var(--muted);
  font-size: .9rem;
}

/* --------------------------------------------------------------------------
   Chips, listas de confianza
   -------------------------------------------------------------------------- */

.hero-badges,
.trust-list,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li,
.pill-list li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: .44rem .85rem;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-weight: 460;
  font-size: .82rem;
  letter-spacing: .02em;
}

.hero-badges li::before,
.pill-list li::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--brand);
}

.hero-badges li:nth-child(3n+2)::before,
.pill-list li:nth-child(3n+2)::before {
  background: var(--accent);
}

.hero-badges li:nth-child(3n)::before,
.pill-list li:nth-child(3n)::before {
  background: var(--accent-strong);
}

.trust-list {
  display: grid;
  gap: .75rem;
  margin-top: var(--space-5);
}

.trust-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  color: var(--muted-strong);
}

.check {
  width: .55rem;
  height: .55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  margin-top: .55rem;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}

/* --------------------------------------------------------------------------
   Lecturas de sistema (prueba del héroe y franja de métricas)
   -------------------------------------------------------------------------- */

.hero-proof,
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-5);
}

.proof-item,
.metric-item {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: .95rem;
}

.proof-item strong,
.metric-item strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -.01em;
}

.metric-item:nth-child(3n+2) strong {
  color: var(--accent);
}

.metric-item:nth-child(3n) strong {
  color: var(--accent-strong);
}

.proof-item span,
.metric-item span {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
  font-size: .89rem;
}

/* --------------------------------------------------------------------------
   Rejillas y tarjetas
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.price-card,
.contact-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover,
.price-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  box-shadow: var(--shadow);
}

.card {
  min-height: 100%;
}

/* Las tarjetas son columnas flexibles: el enlace inferior queda siempre
   al mismo nivel en toda la fila, ocupe lo que ocupe el texto. */
.card,
.price-card {
  display: flex;
  flex-direction: column;
}

.card p,
.price-card p,
.contact-card p {
  color: var(--muted-strong);
}

.card h2,
.card h3,
.price-card h2,
.price-card h3 {
  color: var(--text);
}

.card h2,
.price-card h2,
.contact-card h2 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: .75rem;
}

.card p:last-child,
.price-card p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

/* Fila de acción al pie de la tarjeta: texto a la izquierda, nodo-flecha
   a la derecha, separada por una arista fina. La flecha es el puerto. */
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}

.card-link-button {
  appearance: none;
  width: 100%;
  padding: .85rem 0 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.card > .card-link,
.price-card > .card-link {
  margin-top: auto;
}

.card-link::after {
  content: "→";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  font-size: .92em;
  border: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.card-link:hover::after,
.card-link:focus-visible::after {
  transform: translateX(.28rem);
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg-deep);
}

.grid-5 .card-link {
  font-size: .95rem;
  white-space: nowrap;
}

/* Puerto de nodo: cada servicio es un nodo del sistema, con su señal */
.service-card {
  position: relative;
  overflow: hidden;
  --port: var(--brand);
}

.grid > .service-card:nth-child(3n+2) {
  --port: var(--accent);
}

.grid > .service-card:nth-child(3n) {
  --port: var(--accent-strong);
}

.service-card::before {
  content: "";
  display: block;
  height: 11px;
  margin-bottom: 1.05rem;
  background:
    radial-gradient(circle at 5.5px 50%, var(--port) 4px, transparent 4.8px) left center / 11px 11px no-repeat,
    linear-gradient(90deg, var(--port), transparent 82%) 14px 50% / calc(100% - 14px) 1.5px no-repeat;
  transition: filter .25s ease;
}

/* Lavado de luz del color del puerto al pasar el cursor */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 62% at 50% 0%, color-mix(in srgb, var(--port) 11%, transparent), transparent 58%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--port) 46%, var(--line));
  box-shadow:
    0 22px 44px -20px color-mix(in srgb, var(--port) 55%, transparent),
    var(--shadow);
}

.service-card:hover::before {
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--port) 75%, transparent));
}

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

/* --------------------------------------------------------------------------
   Bandas de panel (diagrama)
   -------------------------------------------------------------------------- */

.feature-band,
.system-band {
  border-block: 1px solid var(--line);
  background:
    var(--dot-grid) 0 0 / 24px 24px,
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 46%),
    color-mix(in srgb, var(--surface-soft) 78%, var(--bg-deep));
  color: var(--text);
  padding: var(--space-6) 0;
}

.feature-band p,
.feature-band .lead,
.system-band p,
.system-band .lead {
  color: var(--muted-strong);
}

.feature-band .card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.feature-band .list {
  color: var(--muted-strong);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 4rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.flow-image {
  aspect-ratio: 1200 / 680;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Proceso: nodos unidos por una arista real (la secuencia existe)
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: steps;
  position: relative;
  margin-top: 4.4rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: -1.75rem;
  left: 1.45rem;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--line) 72%, transparent);
  pointer-events: none;
}

.step {
  position: relative;
}

.step::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: -3.15rem;
  left: 0;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .92rem;
}

.step:nth-child(3n+2)::before {
  border-color: var(--accent);
  color: var(--accent);
}

.step:nth-child(3n)::before {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   Precios
   -------------------------------------------------------------------------- */

.price {
  display: flex;
  align-items: end;
  gap: .4rem;
  margin: var(--space-3) 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -.02em;
}

.price small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .3rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.price-card.featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--surface) 97%, transparent), color-mix(in srgb, var(--surface) 97%, transparent)) padding-box,
    linear-gradient(120deg, var(--brand), var(--accent) 55%, var(--accent-strong)) border-box;
  box-shadow: 0 22px 58px color-mix(in srgb, var(--brand) 14%, transparent);
}

.price-card.featured:hover {
  border-color: transparent;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted-strong);
}

.list li + li {
  margin-top: .45rem;
}

.list li::marker {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 1.4rem;
}

.faq details {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  transition: border-color .18s ease;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
}

.faq summary {
  cursor: pointer;
  font-weight: 640;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--brand);
  transition: transform .2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: .75rem 0 0;
  color: var(--muted-strong);
}

/* --------------------------------------------------------------------------
   Migas de pan
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .02em;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: var(--space-5);
  align-items: start;
}

.contact-direct {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: .85rem;
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list span,
.contact-list strong {
  display: block;
}

.contact-list span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.contact-list a,
.contact-action {
  display: block;
  text-decoration: none;
  font-weight: 650;
}

.contact-action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.contact-action:hover,
.contact-action.is-revealed {
  color: var(--brand);
}

.legal-note {
  border-left: 4px solid var(--accent-strong);
  background: color-mix(in srgb, var(--accent-strong) 12%, transparent);
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   CTA: el nodo de cierre (banda invertida con arista tricolor)
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  background:
    radial-gradient(40rem 20rem at 85% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--surface-strong);
  color: var(--inverse-text);
  padding: var(--space-7) 0;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--edge);
}

.cta h2 {
  color: var(--inverse-text);
}

.cta p {
  color: color-mix(in srgb, var(--inverse-text) 76%, transparent);
}

.cta .button-secondary {
  color: var(--inverse-text);
  background: transparent;
  border-color: color-mix(in srgb, var(--inverse-text) 26%, transparent);
}

.cta .button-secondary:hover {
  border-color: color-mix(in srgb, var(--inverse-text) 55%, transparent);
  color: var(--inverse-text);
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-6) 0;
  background:
    var(--dot-grid) 0 0 / 28px 28px,
    color-mix(in srgb, var(--bg-deep) 82%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .7fr));
  gap: var(--space-5);
}

.footer-grid h2 {
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.footer-grid h3 {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
}

.footer-grid p {
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}

.footer-grid a {
  color: var(--muted-strong);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .03em;
}

/* --------------------------------------------------------------------------
   WhatsApp flotante
   -------------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22c46b;
  color: #05120b;
  box-shadow: var(--shadow);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
}

.whatsapp-float svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Movimiento: entrada del héroe y revelado al hacer scroll
   -------------------------------------------------------------------------- */

.js .will-reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero .hero-copy > * {
    animation: rise-in .7s cubic-bezier(.2, .65, .25, 1) both;
  }

  .home-hero .hero-copy > *:nth-child(2) { animation-delay: .07s; }
  .home-hero .hero-copy > *:nth-child(3) { animation-delay: .14s; }
  .home-hero .hero-copy > *:nth-child(4) { animation-delay: .21s; }
  .home-hero .hero-copy > *:nth-child(5) { animation-delay: .28s; }
  .home-hero .hero-copy > *:nth-child(6) { animation-delay: .35s; }

  .home-hero .hero-media {
    animation: rise-in .8s cubic-bezier(.2, .65, .25, 1) .18s both;
  }

  .home-hero h1 span {
    animation: draw-edge .9s cubic-bezier(.6, 0, .3, 1) .55s both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes draw-edge {
  from {
    background-size: 0% .085em;
  }

  to {
    background-size: 100% .085em;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-grid,
  .split {
    gap: 2.5rem;
  }

  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    inset: 76px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: .85rem;
    border-radius: var(--radius);
  }

  .nav-menu a[aria-current="page"]::after {
    left: auto;
    right: .85rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .hero-grid,
  .split,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .faq,
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps::before {
    display: none;
  }

  .steps {
    margin-top: 0;
  }

  .step {
    padding-top: 1.5rem;
  }

  .step::before {
    position: static;
    margin-bottom: 1rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .hero,
  .home-hero {
    padding-block: 3.5rem;
  }

  .home-hero {
    padding-block: 2rem 1.5rem;
  }

  .home-hero .hero-grid {
    gap: 1.5rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .hero-proof,
  .metric-strip,
  .faq {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .home-hero .hero-proof,
  .home-hero .media-note {
    display: none;
  }

  .home-hero .hero-media img {
    max-height: none;
  }

  .flow-image {
    aspect-ratio: 760 / 940;
  }

  .media-note {
    position: static;
    width: 100%;
    margin-top: .75rem;
  }

  .section {
    padding-block: 3.25rem;
  }

  .section-tight {
    padding-block: 2.75rem;
  }

  .card,
  .price-card,
  .contact-card {
    padding: 1.25rem;
  }

  .brand-name {
    font-size: 1.08rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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