/* =========================================
   byMovers · Sitio multipágina
   Paleta corporativa byLogic · tema claro
   ========================================= */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --transition: 220ms cubic-bezier(.2,.7,.2,1);
  --header-h: 72px;   /* alto del header sticky: lo usan el menú móvil y el JS */

  /* ---- Paleta corporativa byLogic ---- */
  --brand-orange: #F9B233;
  --brand-green:  #3AA935;
  --brand-blue:   #009EE3;
  --brand-navy:   #00355F;
  --brand-black:  #000000;

  --grad:      linear-gradient(135deg, #009EE3 0%, #3AA935 100%);
  --grad-warm: linear-gradient(135deg, #009EE3 0%, #3AA935 55%, #F9B233 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,158,227,.12), rgba(58,169,53,.12));

  /* ---- Superficie (tema claro único) ---- */
  --bg: #f4f7fb;
  --bg-soft: #ffffff;
  --surface:   rgba(0,53,95,.035);
  --surface-2: rgba(0,53,95,.06);
  --border:        rgba(0,53,95,.10);
  --border-strong: rgba(0,53,95,.18);
  --text: #16242f;
  --heading: #00355F;
  --muted: #5a6b7b;
  --shadow: 0 22px 60px rgba(0,53,95,.12);
  color-scheme: light;
}

html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Salto al contenido: fuera de la vista hasta recibir el foco, nunca display:none
   (tiene que seguir en el orden de tabulación y ser el primer elemento enfocable) */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 11px 20px; border-radius: 999px;
  background: var(--brand-navy); color: #fff;
  font-size: .9rem; font-weight: 600;
  transform: translateY(-300%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--brand-blue); outline-offset: 2px; }
#app:focus { outline: none; }   /* destino del salto: recibe el foco sin pintar un marco a toda la página */
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ---- Aurora background ---- */
.aurora {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .22;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 520px; height: 520px; background: var(--brand-blue); top: -150px; left: -120px; }
.blob-2 { width: 600px; height: 600px; background: var(--brand-orange); top: 30%; right: -200px; animation-delay: -6s; }
.blob-3 { width: 450px; height: 450px; background: var(--brand-green); bottom: -150px; left: 30%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,-30px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: .5;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 34px; width: auto; flex: none; }

.primary-nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  padding: 8px 11px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; white-space: nowrap;
  color: var(--muted);
  transition: var(--transition);
}
.nav-link:hover { color: var(--heading); background: var(--surface); }
.nav-link.active {
  color: var(--heading);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.header-actions { display: flex; gap: 10px; align-items: center; flex: none; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: var(--transition);
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* ---- Selector de idioma (desplegable) ---- */
.lang-dd { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--heading); font-weight: 700; font-size: .8rem; letter-spacing: .03em;
  cursor: pointer; transition: var(--transition);
}
.lang-current:hover { background: var(--surface-2); }
.lang-current::after {
  content: ''; width: 6px; height: 6px; margin-left: 1px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}
.lang-dd.open .lang-current::after { transform: rotate(-135deg) translateY(1px); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px; padding: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.lang-dd.open .lang-menu { display: flex; }
.lang-menu a {
  padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: var(--text);
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--surface); }
.lang-menu a.active { color: var(--heading); font-weight: 700; background: var(--surface-2); }

/* ---- Desplegable de aplicaciones (nav) ---- */
.nav-dd { position: relative; }
/* El toggle hereda el aspecto de .nav-link: aquí solo se resetea el <button> */
.nav-dd-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; line-height: inherit;
}
.nav-dd-toggle::after {
  content: ''; width: 5px; height: 5px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}
.nav-dd.open .nav-dd-toggle::after { transform: rotate(-135deg) translateY(1px); }

.nav-dd-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  min-width: 400px; padding: 8px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
  z-index: 60;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.nav-dd.open > .nav-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* En escritorio el panel también abre al pasar el ratón: lo hace main.js con la
   clase .open, para que el estado visual y aria-expanded no puedan divergir.
   Sin JavaScript no hay quien mueva la clase, así que ahí sí manda el CSS. */
@media (scripting: none) and (min-width: 961px) {
  .nav-dd:hover > .nav-dd-menu,
  .nav-dd:focus-within > .nav-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

.nav-dd-feature {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--text);
  transition: var(--transition);
}
.nav-dd-feature:hover { background: var(--surface); }
.nav-dd-feature-ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--brand-blue);
}
.nav-dd-feature-ic svg { width: 22px; height: 22px; }
.nav-dd-feature strong { display: block; color: var(--heading); font-size: .95rem; }
.nav-dd-feature em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); }

.nav-dd-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.nav-dd-grid a {
  padding: 9px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--text); white-space: nowrap;
  transition: var(--transition);
}
.nav-dd-grid a:hover { background: var(--surface); }
.nav-dd-grid a.active { color: var(--heading); font-weight: 700; background: var(--surface-2); }

.nav-dd-all {
  display: block; margin-top: 4px;
  padding: 8px 12px; border-radius: 8px;
  text-align: right; font-size: .85rem; font-weight: 600;
  color: var(--brand-blue);
  transition: var(--transition);
}
.nav-dd-all:hover { background: var(--surface); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(0,158,227,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(58,169,53,.6); }
.btn-ghost {
  background: var(--surface); color: var(--heading);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-wasap { background: #25D366; color: #fff; box-shadow: 0 10px 30px -10px rgba(37,211,102,.6); }
.btn-wasap:hover { transform: translateY(-2px); }

/* ---- Typography ---- */
.display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 22px;
}
.display.sm { font-size: clamp(2rem, 4vw, 3.2rem); }
.gradient-text {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 28px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  margin-bottom: 14px;
}
h2, h3, h4, h5 { color: var(--heading); }

/* ---- Pill ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  margin-bottom: 24px;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(58,169,53,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(58,169,53,.18); }
  50% { box-shadow: 0 0 0 8px rgba(58,169,53,0); }
}

/* ---- Page wrap ---- */
.view { padding: 64px 0 110px; }
.view-in { animation: viewIn 480ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.82rem; color: var(--muted);
  padding: 26px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb span { color: var(--heading); font-weight: 600; }

/* ---- Hero ---- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
  padding-top: 40px;
}
.hero-text .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: var(--heading);
}
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

/* Hero visual (suite image) */
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Section head ---- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 70px auto 44px;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0;
}
.section-sub {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 60ch;
  font-size: 1.02rem;
}

/* ---- Bloques home ---- */
.grid-4-blocks { margin-top: 30px; }
.block-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.block-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.block-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.block-card:hover::before { transform: scaleX(1); }
.block-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.block-card h2, .block-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; margin: 8px 0 12px; }
.block-card p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.block-link {
  color: transparent; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  font-weight: 600; font-size: 0.9rem;
}

/* ---- 3 columnas trío ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio-card {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.trio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trio-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; margin: 0 0 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trio-card p { color: var(--muted); margin: 0 0 20px; }
.trio-card .qs-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--heading); margin: 0 0 10px; }
.trio-card .qs-price small { font-size: .8rem; font-weight: 500; color: var(--muted); }

/* ---- Ready banner ---- */
.ready-banner {
  margin-top: 24px; padding: 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  display: flex; align-items: center; gap: 28px;
  box-shadow: var(--shadow);
}
.ready-banner > div { min-width: 140px; }
.ready-banner .step {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .12em; text-transform: uppercase; font-size: .9rem;
}
.ready-banner h3 { margin: 4px 0 0; font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; }
.ready-banner p { color: var(--muted); margin: 0; }

/* ---- Quote block ---- */
.quote-block {
  text-align: center; max-width: 820px; margin: 40px auto;
  padding: 50px 30px; border-radius: var(--radius-lg);
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
}
.quote-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em; margin: 10px 0 20px;
}
.quote-block p { color: var(--text); margin: 0 0 14px; }
.quote-block strong {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- CTA banner ---- */
.cta-banner {
  margin-top: 30px; padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: var(--brand-navy);
  display: flex; align-items: center; gap: 30px; justify-content: space-between;
}
.cta-banner .eyebrow { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }
.cta-banner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 8px 0 10px; letter-spacing: -0.01em; color: #fff;
}
.cta-banner p { margin: 0; color: rgba(255,255,255,.78); }
.cta-banner p a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); }

@media (max-width: 720px) {
  .ready-banner, .cta-banner { flex-direction: column; align-items: flex-start; padding: 28px; }
  .grid-4-blocks { grid-template-columns: 1fr !important; }
}

/* ---- Grid 4 features ---- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--brand-blue);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---- Timeline ---- */
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.timeline li {
  position: relative; padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.timeline .step {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .15em;
}
.timeline h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---- Page hero (subpáginas) ---- */
.page-hero { max-width: 820px; padding: 18px 0 50px; }
.page-hero .lead { font-size: 1.18rem; }

/* ---- Split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.split h2, .split h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; margin: 0 0 18px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--border);
  position: relative; color: var(--text);
}
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* ---- Módulos incluidos (con iconos) ---- */
.module-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 30px;
}
.module-card {
  padding: 24px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.module-card::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0;
  transition: var(--transition); z-index: 0;
}
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.module-card:hover::after { opacity: 1; }
.module-card .m-icon {
  position: relative; z-index: 1;
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0,158,227,.7);
}
.module-card:nth-child(4n+2) .m-icon { background: linear-gradient(135deg,#3AA935,#009EE3); }
.module-card:nth-child(4n+3) .m-icon { background: linear-gradient(135deg,#F9B233,#3AA935); }
.module-card:nth-child(4n)   .m-icon { background: linear-gradient(135deg,#00355F,#009EE3); }
.module-card .m-icon svg { width: 26px; height: 26px; }
.module-card span { position: relative; z-index: 1; display: block; font-weight: 600; color: var(--heading); font-size: .98rem; }
.module-card small { position: relative; z-index: 1; display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }

/* ---- Apps grid (con mockups) ---- */
.grid-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app-card {
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden; display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.app-shot { background: #eef3f8; border-bottom: 1px solid var(--border); }
.app-shot img { width: 100%; height: auto; display: block; }
.app-body { padding: 26px 28px 30px; }
.app-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.app-card h2, .app-card h3 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; }
.app-card .badge {
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--grad-soft); color: var(--brand-navy);
  border: 1px solid var(--border);
}
.app-card .kicker {
  color: transparent; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  font-weight: 600; margin: 4px 0 12px;
}
.app-card p:not(.kicker) { margin: 0; color: var(--muted); }

/* ---- Services ---- */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-soft);
  position: relative; transition: var(--transition);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.service h2, .service h3 { margin: 8px 0 10px; font-size: 1.2rem; }
.service p { margin: 0; color: var(--muted); }
.service .svc-price { margin-top: 12px; font-weight: 700; color: var(--brand-navy); font-size: .92rem; }

/* ---- Integraciones / API ---- */
.api-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  margin-top: 10px;
}
.code-card {
  border-radius: var(--radius-lg);
  background: #06243b;
  border: 1px solid #0c3a5e;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.code-card .code-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: #08304d; border-bottom: 1px solid #0c3a5e;
}
.code-card .code-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.code-card .code-head .lbl { margin-left: 10px; color: #7fa8c4; font-size: .8rem; }
.code-card pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  color: #cfe3f1; font-size: .82rem; line-height: 1.7;
}
.code-card .tok-m { color: #F9B233; }
.code-card .tok-u { color: #5ec6f2; }
.code-card .tok-s { color: #7fe0a0; }
.code-card .tok-k { color: #ff8a8a; }
.code-card .tok-c { color: #5d7d93; }

.integration-logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px;
}
.int-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
  transition: var(--transition);
}
.int-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.int-chip .ic {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--brand-blue);
}
.int-chip .ic svg { width: 22px; height: 22px; }
.int-chip .ic b { font-family: 'Space Grotesk', sans-serif; font-size: .92rem; font-weight: 700; letter-spacing: -.02em; color: var(--brand-navy); }
.int-chip .ic.ic-logo { background: #fff; border: 1px solid var(--border); }
.int-chip .ic.ic-logo img { width: 28px; height: 28px; object-fit: contain; }
/* Tarjeta con el logotipo del proveedor a buen tamaño + subtítulo */
.int-chip.int-logo { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-height: 92px; }
.int-chip.int-logo img { height: 30px; max-width: 100%; width: auto; object-fit: contain; object-position: left center; }
.int-chip.int-logo small { color: var(--muted); font-size: .82rem; }

/* ---- Partner destacado (muvly.ai) ---- */
.muvly-partner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: center;
  padding: 40px 44px; border-radius: var(--radius-lg);
  background: var(--grad-soft); border: 1px solid var(--border-strong);
}
.muvly-figure { text-align: center; }
.muvly-figure img { max-width: 260px; width: 100%; height: auto; margin: 0 auto 14px; }
.muvly-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(249,178,51,.18); border: 1px solid rgba(249,178,51,.45); color: #9a6b07;
}
.muvly-partner h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 8px 0 12px; }
.muvly-partner p { color: var(--muted); margin: 0 0 18px; }
@media (max-width: 880px) { .muvly-partner { grid-template-columns: 1fr; gap: 24px; padding: 30px; text-align: center; } .muvly-partner .check-list { text-align: left; } }
.int-chip strong { display: block; color: var(--heading); font-size: .98rem; }
.int-chip small { color: var(--muted); font-size: .82rem; }

.api-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 30px; }

@media (max-width: 880px) {
  .api-hero { grid-template-columns: 1fr; }
}

/* ---- Pricing ---- */
.billing-toggle {
  display: inline-flex; padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; margin-top: 18px;
}
.billing-toggle button {
  padding: 10px 18px; border: none; background: transparent;
  border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 0.9rem;
  transition: var(--transition);
}
.billing-toggle button.active {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(0,158,227,.6);
}

.promo-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 8px 16px; border-radius: 999px;
  background: rgba(249,178,51,.16); border: 1px solid rgba(249,178,51,.4);
  color: #9a6b07; font-size: .86rem; font-weight: 600;
}

.grid-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 80px; }
.plan {
  padding: 36px 30px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; position: relative; transition: var(--transition);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan h2, .plan h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; margin: 0 0 6px; letter-spacing: .04em; }
.plan-tag { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; min-height: 2.6em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price strong {
  font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan .price span { color: var(--muted); }
.plan .price-sub { color: var(--muted); font-size: .85rem; margin: 0 0 14px; min-height: 1.2em; }
.plan .price-promo { color: #9a6b07; font-size: .82rem; font-weight: 600; margin: 0 0 20px; min-height: 1.2em; }
.plan .check-list { flex: 1; margin-bottom: 24px; }
.plan-featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box, var(--grad) border-box;
  box-shadow: 0 30px 60px -30px rgba(0,158,227,.5);
  transform: translateY(-8px);
}
.plan-featured:hover { transform: translateY(-12px); }
.ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-warm); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(249,178,51,.7);
}

.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.addons > div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 12px;
}
.addons strong { font-weight: 600; color: var(--heading); }
.addons span { color: var(--muted); font-size: 0.9rem; }
.footnote { text-align: center; color: var(--muted); margin-top: 30px; font-size: 0.9rem; }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 24px; margin-bottom: 12px;
  transition: var(--transition);
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--heading);
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--muted); transition: transform var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brand-blue); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--border-strong);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font: inherit; transition: var(--transition);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-navy);            /* 11.7:1 sobre el relleno del campo */
  box-shadow: 0 0 0 2px var(--brand-blue);    /* halo a opacidad completa */
}
.form-note {
  margin-top: 14px; padding: 10px 14px;
  background: rgba(58,169,53,.12); border: 1px solid rgba(58,169,53,.35);
  color: #2a7d27; border-radius: 10px; font-size: 0.9rem;
}
.form-note.error { background: rgba(220,53,69,.1); border-color: rgba(220,53,69,.35); color: #b02a37; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
/* Honeypot: fuera de pantalla, invisible para humanos */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { display: grid; gap: 14px; }
.info-card { padding: 22px 24px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.info-card h2, .info-card h4 { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.info-card a, .info-card p { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--heading); }
.info-card .sub { font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.info-card.highlight { background: var(--grad-soft); border-color: var(--border-strong); }
.info-card.highlight p { font-weight: 500; font-size: 0.95rem; }

/* ---- Legal pages ---- */
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin: 36px 0 12px;
  color: var(--heading); padding-top: 12px; border-top: 1px solid var(--border);
}
.legal-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; margin: 24px 0 10px; color: var(--heading); }
.legal-body p { color: var(--muted); margin: 0 0 12px; line-height: 1.65; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul { color: var(--muted); margin: 8px 0 18px; padding-left: 22px; line-height: 1.65; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--brand-blue); font-weight: 600; }

/* ---- Footer (navy) ---- */
.site-footer {
  background: var(--brand-navy); color: rgba(255,255,255,.82);
  padding: 60px 0 30px; margin-top: 70px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h2 { margin: 0 0 14px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.55); }
.footer-grid a { display: block; padding: 6px 0; color: rgba(255,255,255,.82); font-size: 0.92rem; transition: var(--transition); }
.footer-grid a:hover { color: #fff; }
.footer-grid .muted { color: rgba(255,255,255,.6); }
.footer-social {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; gap: 14px;
}
.footer-social .muted { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.6); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%; color: rgba(255,255,255,.8); transition: var(--transition);
}
.social-row a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-2px); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: 0.85rem;
}
.muted { color: var(--muted); }

/* ---- Reveal animations ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-in { opacity: 1; transform: none; }
/* Fallback: si no hay JavaScript, mostrar todo el contenido */
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* ---- Tira de clientes / confianza ---- */
.trust-strip { text-align: center; margin-top: 50px; }
.trust-strip .trust-label {
  font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.logo-row {
  display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center;
}
.logo-row .logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.01em; color: var(--brand-navy); opacity: .55;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.logo-row .logo:hover { opacity: 1; }
.logo-row .logo::before {
  content: ''; width: 16px; height: 16px; border-radius: 4px; background: var(--grad);
  display: inline-block;
}
/* Logos en imagen (clientes) */
.logo-row .logo-img {
  height: 38px; width: auto; max-width: 150px; object-fit: contain;
  opacity: .7; transition: var(--transition);
}
.logo-row .logo-img:hover { opacity: 1; transform: translateY(-2px); }

/* ---- Banda de cifras ---- */
.stat-band {
  margin-top: 60px; padding: 44px; border-radius: var(--radius-lg);
  background: var(--brand-navy);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-band .stat { text-align: center; color: #fff; }
.stat-band .stat strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1;
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-band .stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-size: .9rem; }

/* ---- Spotlight (byShare / Internacional) ---- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.spot-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: var(--transition);
}
.spot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.spot-shot { background: #eef3f8; border-bottom: 1px solid var(--border); }
.spot-shot img { width: 100%; display: block; }
.spot-body { padding: 28px 30px 32px; }
.spot-body .block-eyebrow { color: var(--brand-blue); }
.spot-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; margin: 8px 0 12px; }
.spot-body p { color: var(--muted); margin: 0 0 18px; }

/* ---- Testimonios ---- */
/* Carrusel de testimonios (scroll-snap + flechas) */
.testi-carousel { position: relative; }
.testimonials {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px; margin: 0 -4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonials .testimonial {
  flex: 0 0 calc((100% - 40px) / 3);   /* 3 por vista */
  scroll-snap-align: start;
}
.tc-controls { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.tc-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  color: var(--heading); font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); cursor: pointer; transition: var(--transition);
}
.tc-btn:hover { background: var(--surface-2); transform: translateY(-2px); }
.testimonial {
  padding: 30px 28px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testimonial .t-logo {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  min-height: 36px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.02rem;
  color: var(--brand-navy);
}
.testimonial .t-logo img { height: 32px; width: auto; max-width: 150px; object-fit: contain; }
.testimonial .flag { margin-left: auto; font-size: 1rem; opacity: .9; }
.testimonial .stars { color: var(--brand-orange); font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 20px; color: var(--text); font-size: 1rem; line-height: 1.6; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial .who-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}
.testimonial .who strong { display: block; color: var(--heading); font-size: .95rem; }
.testimonial .who span { color: var(--muted); font-size: .82rem; }

/* ---- Banner de cookies ---- */
.cookie-banner {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 18px; z-index: 90; width: min(680px, 92vw);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--brand-navy); color: rgba(255,255,255,.9);
  box-shadow: 0 20px 50px rgba(0,53,95,.35);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; font-size: .88rem; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; }

/* =========================================================================
   Mapa del ecosistema · constelación orbital (página aplicaciones)
   Capa de fondo en <canvas> (aristas, partículas, pulso) + capa de nodos
   en DOM encima (cada nodo es un <button> enfocable).
   Sin JS o en móvil (<=720px) se muestra el bloque estático equivalente.
   ========================================================================= */
.eco { position: relative; margin-top: 30px; }

/* Acento por anillo */
.eco-r0, .eco-r1 { --eco-accent: var(--brand-blue); }
.eco-r2 { --eco-accent: var(--brand-green); }
.eco-r3 { --eco-accent: var(--brand-orange); }
.eco-r4 { --eco-accent: var(--brand-navy); }

/* ---- Barra de filtros y leyenda ---- */
.eco-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.eco-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--muted); font: inherit; font-size: .84rem; font-weight: 600;
  transition: var(--transition);
}
.eco-chip:hover { border-color: var(--border-strong); color: var(--heading); }
.eco-chip[aria-pressed="true"] {
  color: var(--heading); border-color: var(--border-strong);
  background: var(--surface-2);
}
.eco-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--eco-accent, var(--brand-navy)); flex: none; }
.eco-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .8rem; color: var(--muted); }
.eco-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.eco-legend-item b { color: var(--heading); font-weight: 600; }
.eco-line { width: 26px; border-top: 2px solid var(--brand-blue); flex: none; }
.eco-line-dash { border-top: 2px dashed var(--brand-orange); }
.eco-spark { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); flex: none; }

/* ---- Escenario ---- */
.eco-stage {
  display: none;                       /* solo visible cuando el grafo está activo */
  position: relative;
  height: clamp(520px, 64vw, 820px);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* El header sticky se pinta por encima del mapa (el panel vive dentro del
   escenario), así que todo lo que pueda recibir el foco o ser desplazado a
   la vista reserva su alto: el JS usa el mismo margen al abrir un nodo. */
.eco-stage, .eco-panel, .eco-node, .eco-chip {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.eco.is-live .eco-stage { display: block; }
.eco.is-live .eco-static { display: none; }
.eco-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco-layer { position: absolute; inset: 0; }

/* ---- Nodo (botón enfocable) ---- */
.eco-node {
  position: absolute; left: 0; top: 0;
  width: var(--eco-dot); height: var(--eco-dot);
  margin-left: calc(var(--eco-dot) / -2);
  margin-top: calc(var(--eco-dot) / -2);
  padding: 0; border: 0; background: none;
  border-radius: 50%;
  will-change: transform;
  transition: opacity 240ms ease;
}
/* Orden de apilado: el centro y los anillos con etiqueta fija por encima */
.eco-r2, .eco-r4 { z-index: 1; }
.eco-r1, .eco-r3 { z-index: 2; }
.eco-r0 { z-index: 3; }
.eco-r0 { --eco-dot: 108px; --eco-w: 168px; }
.eco-r1 { --eco-dot: 62px;  --eco-w: 124px; }
.eco-r2 { --eco-dot: 50px;  --eco-w: 130px; }
.eco-r3 { --eco-dot: 58px;  --eco-w: 148px; }
.eco-r3.is-hero { --eco-dot: 76px; --eco-w: 162px; }
.eco-r4 { --eco-dot: 46px;  --eco-w: 132px; }

.eco-dot {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--eco-accent);
  box-shadow: 0 12px 28px -16px rgba(0,53,95,.55);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow var(--transition), border-color var(--transition);
}
.eco-dot::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  background: color-mix(in srgb, var(--eco-accent) 12%, transparent);
  transition: var(--transition);
}
.eco-dot svg { position: relative; width: 46%; height: 46%; }
.eco-r0 .eco-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 22px 50px -18px rgba(0,158,227,.75); }
.eco-r0 .eco-dot::before { background: rgba(255,255,255,.12); }
.eco-r3.is-hero .eco-dot { background: var(--grad-warm); border-color: transparent; color: #fff; box-shadow: 0 18px 42px -16px rgba(249,178,51,.8); }
.eco-r3.is-hero .eco-dot::before { background: rgba(255,255,255,.14); }

.eco-name {
  position: absolute; left: 50%; top: calc(100% + 8px);
  width: var(--eco-w); transform: translateX(-50%);
  font-size: .74rem; font-weight: 600; line-height: 1.25;
  color: var(--heading); text-align: center;
  pointer-events: none;
  /* halo del color del escenario: la etiqueta sigue legible sobre un nodo */
  text-shadow: 0 0 5px var(--bg-soft), 0 0 10px var(--bg-soft), 0 0 14px var(--bg-soft);
}
.eco-r0 .eco-name { font-size: .92rem; }
/* Los anillos de apoyo (servicios y cimientos) solo muestran su nombre al
   resaltarse: así el mapa respira y destacan las apps y las APIs */
.eco-r2 .eco-name, .eco-r4 .eco-name {
  font-size: .69rem; font-weight: 500; color: var(--muted);
  opacity: 0; transition: opacity 200ms ease;
}
.eco-node:hover .eco-name,
.eco-node.is-lit .eco-name,
.eco-node.is-active .eco-name { opacity: 1; color: var(--heading); font-weight: 600; }
.eco-node:focus-visible .eco-name { opacity: 1; }
.eco-r3.is-hero .eco-name { font-size: .82rem; }
.eco-node.is-above .eco-name { top: auto; bottom: calc(100% + 8px); }
.eco-name em {
  display: block; margin-top: 3px;
  font-style: normal; font-weight: 500; font-size: .68rem; line-height: 1.3;
  color: var(--muted);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.eco-node:hover .eco-dot,
.eco-node.is-active .eco-dot { transform: scale(1.1); border-color: var(--eco-accent); }
.eco-node:hover .eco-name em,
.eco-node.is-active .eco-name em { opacity: 1; transform: none; }
.eco-node:focus-visible { outline: none; }
.eco-node:focus-visible .eco-dot { outline: 3px solid var(--brand-blue); outline-offset: 4px; }
.eco-node.is-active { z-index: 6; }
.eco-layer.has-focus .eco-node:not(.is-lit) { opacity: .2; }
.eco-layer.has-burst .eco-node:not(.is-lit) { opacity: .12; }
/* con un nodo abierto, el centro se reduce para no tapar los rótulos */
.eco-layer.has-burst .eco-r0:not(.is-burst) { --eco-dot: 62px; }
.eco-node.is-off { opacity: .14; }
.eco-node.is-burst .eco-dot { transform: scale(1.18); border-color: var(--eco-accent); }

/* ---- Estallido: las capacidades salen despedidas a su propia órbita ---- */
.eco-burst { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 5; }
.eco-cap {
  position: absolute; left: 0; top: 0;
  width: max-content; max-width: 142px;
  padding: 7px 12px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  box-shadow: 0 16px 34px -20px rgba(0,53,95,.5);
  font-size: .73rem; line-height: 1.3; font-weight: 500; color: var(--heading);
  text-align: center;
  opacity: 0; transform: translate(-50%, -50%) scale(.3);
  transition: opacity 380ms ease, transform 620ms cubic-bezier(.16,1.05,.3,1);
}
.eco-cap.is-out {
  opacity: 1;
  transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1);
}

/* ---- Panel de detalle ---- */
.eco-panel {
  position: absolute; top: 16px; right: 16px; bottom: 16px;
  width: min(360px, 42%); z-index: 8;
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateX(20px); pointer-events: none;
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.2,.7,.2,1);
}
.eco-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.eco-panel:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: -3px; }
.eco-panel-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--heading);
  transition: var(--transition);
}
.eco-panel-close:hover { background: var(--surface-2); }
.eco-panel-close svg { width: 16px; height: 16px; }
/* Área de pulsación de 44×44 sin agrandar el botón visible */
.eco-panel-close::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.eco-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--heading);
  background: color-mix(in srgb, var(--eco-accent) 16%, transparent);
}
.eco-panel h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem;
  margin: 12px 34px 6px 0; letter-spacing: -.01em;
}
.eco-panel-short { color: var(--muted); font-size: .9rem; margin: 0 0 4px; }
.eco-panel h4 {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--muted); margin: 20px 0 8px;
}
.eco-panel p { font-size: .9rem; color: var(--text); margin: 0; }
.eco-panel ul { list-style: none; margin: 0; padding: 0; }
.eco-caps li {
  position: relative; padding: 7px 0 7px 20px;
  font-size: .87rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.eco-caps li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px; border-radius: 3px; background: var(--eco-accent);
}
.eco-conn li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.eco-conn strong { display: block; font-size: .88rem; color: var(--heading); }
.eco-conn span { display: block; font-size: .82rem; color: var(--muted); }
.eco-kind {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--heading);
}
.eco-kind-auto { background: color-mix(in srgb, var(--brand-green) 20%, transparent); }
.eco-kind-req  { background: color-mix(in srgb, var(--brand-orange) 26%, transparent); }
.eco-panel-link {
  display: inline-block; margin-top: 18px;
  font-weight: 600; font-size: .88rem; color: var(--brand-blue);
}
.eco-hint { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---- Bloque estático equivalente (sin JS y en móvil) ---- */
.eco-static { display: grid; gap: 30px; }
.eco-static-group > h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; margin: 0 0 4px;
}
.eco-static-group > p { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.eco-static-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.eco-static-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2px 20px;
  transition: var(--transition);
}
.eco-static-card[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.eco-static-card summary {
  list-style: none; cursor: pointer; padding: 15px 0;
  display: flex; flex-direction: column; gap: 3px;
}
.eco-static-card summary::-webkit-details-marker { display: none; }
.eco-static-card summary strong { color: var(--heading); font-size: 1rem; }
.eco-static-card summary em { font-style: normal; color: var(--muted); font-size: .84rem; }
.eco-static-card > p { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.eco-static-card .check-list li { font-size: .88rem; padding: 9px 0 9px 30px; }
.eco-static-card .check-list li::before { top: 13px; }
.eco-static-link { display: inline-block; margin: 14px 0 18px; font-weight: 600; font-size: .86rem; color: var(--brand-blue); }
.eco-static-edges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.eco-static-edges li {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: .85rem; color: var(--muted);
}
.eco-static-edges b { display: block; color: var(--heading); font-weight: 600; font-size: .88rem; margin-bottom: 2px; }

/* Sin JavaScript: no hay grafo, así que tampoco filtros ni pistas de uso */
@media (scripting: none) {
  .eco-stage, .eco-toolbar, .eco-hint { display: none; }
}

/* Movimiento reducido: el grafo se queda quieto y el detalle abre sin animación */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }   /* los desplazamientos del JS son instantáneos */
  .eco-cap, .eco-panel, .eco-dot, .eco-name em, .eco-node { transition: none; }
  .skip-link { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-services, .grid-pricing, .addons, .module-grid, .integration-logos, .api-features, .stat-band { grid-template-columns: repeat(2, 1fr); }
  .testimonials .testimonial { flex-basis: calc((100% - 20px) / 2); }   /* 2 por vista */
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero, .spotlight { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .eco-static-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-static-edges { grid-template-columns: 1fr; }
  .eco-panel { width: min(340px, 46%); padding: 20px 18px 22px; }
}
/* Nav colapsa a hamburguesa cuando deja de caber (≤960px) */
@media (max-width: 960px) {
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 16px; gap: 4px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-130%); transition: transform var(--transition);
  }
  .primary-nav.open { transform: translateY(0); }
  .nav-link { padding: 12px 16px; border-radius: 12px; }
  .menu-btn { display: inline-flex; }
  /* El desplegable pasa a cascada dentro de la columna del menú móvil */
  .nav-dd { width: 100%; }
  .nav-dd-toggle { width: 100%; justify-content: flex-start; text-align: left; }
  .nav-dd-toggle::after { margin-left: auto; }
  .nav-dd-menu {
    position: static; min-width: 0;
    padding: 4px 0 4px 8px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    display: none; opacity: 1; visibility: visible;
    transform: none; transition: none;
  }
  .nav-dd.open > .nav-dd-menu { display: block; transform: none; }
  .nav-dd-all { text-align: left; }
  /* No hay hueco para el grafo al lado: el detalle cubre el escenario */
  .eco-panel { inset: 16px; width: auto; transform: translateY(14px); }
  .eco-panel.is-open { transform: none; }
  .eco-r1, .eco-r2, .eco-r4 { --eco-w: 112px; }
  .eco-r3 { --eco-w: 126px; }
  .eco-name { font-size: .68rem; }
  .eco-cap { max-width: 142px; font-size: .68rem; padding: 6px 10px; }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-apps, .grid-services, .grid-pricing, .addons, .module-grid, .integration-logos, .api-features { grid-template-columns: 1fr; }
  .testimonials .testimonial { flex-basis: 100%; }   /* 1 por vista */
  .stat-band { grid-template-columns: repeat(2, 1fr); padding: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .nav-dd-grid a { white-space: normal; }
  /* Etiquetas largas (FR/EN) no caben en una línea: se permite el salto */
  .cta-row .btn { white-space: normal; text-align: center; }
  /* La constelación no cabe: se colapsa a la rejilla acordeón */
  .eco.is-live .eco-stage, .eco-toolbar, .eco-hint { display: none; }
  .eco.is-live .eco-static { display: grid; }
  .eco-static-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .header-bar { gap: 10px; }
  .header-actions .btn-primary.btn-sm { display: none; }   /* el CTA del header, no el «Aceptar» del banner de cookies */
  .display { font-size: 2.2rem; }
  .nav-dd-grid { grid-template-columns: 1fr; }
  .eco-static-card { padding: 2px 16px; }
  .eco-static-edges li { padding: 10px 13px; }
}
