/* ============================================================
   Components — nav, cards, buttons, badges, forms, widgets
   ============================================================ */

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  height: 64px;
  background: rgba(20, 32, 47, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { display: block; width: 200px; height: 40px; }  /* mismo tamaño exacto que el logo del footer (200×40) */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a {
  font-size: var(--text-small);
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--color-text); }
.nav-cta {
  font-size: 12px;
  font-weight: 500;
  padding: var(--space-1) 20px;
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  color: var(--color-text) !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.05); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font: inherit;
  font-size: var(--text-small);
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-dropdown > button:hover { color: var(--color-text); }
.nav-dropdown > button::after { content: '▾'; font-size: 10px; opacity: 0.5; transition: transform 0.2s; }
.nav-dropdown.open > button::after { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #16222f;
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md);
  padding: var(--space-1);
  min-width: 280px;
  z-index: 300;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: var(--text-small);
  color: rgba(240, 244, 248, 0.7);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--color-text); }
.dropdown-menu a small { display: block; font-size: 11px; color: rgba(240, 244, 248, 0.4); margin-top: 1px; }
.dropdown-menu a.dd-highlight { color: var(--color-accent-2); }
.dd-divider { border: none; border-top: 1px solid var(--color-border); margin: 5px var(--space-1); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 18px;
  padding: 4px 10px;
  cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #16222f;
    border-bottom: 1px solid var(--color-border-2);
    padding: var(--space-2) var(--space-3);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 10px 0; }
  .dropdown-menu { position: static; transform: none; min-width: 0; border: none; background: transparent; }
}

/* ── BUTTONS ── */
.btn-primary {
  font-size: var(--text-small);
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 7px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  font-size: var(--text-small);
  padding: 13px 28px;
  border-radius: 7px;
  background: transparent;
  color: var(--color-muted);
  border: 1px solid var(--color-border-2);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--color-text); border-color: rgba(255, 255, 255, 0.25); }

/* ── LOGOS ── */
.logos-wrap { padding: var(--space-6) var(--space-5); max-width: var(--container-max); margin: 0 auto; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.logos-lbl { font-size: 11px; color: var(--color-muted); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; margin-bottom: var(--space-4); }
.logos-grid { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: center; align-items: center; list-style: none; }
.logo-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(240, 244, 248, 0.5);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.logo-pill:hover { color: rgba(240, 244, 248, 0.8); border-color: rgba(255, 255, 255, 0.16); }

/* ── PROBLEM (dos columnas) ── */
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.prob-col { padding: var(--space-4) var(--space-4); background: var(--color-surface); }
.prob-col.left  { border-radius: 12px 0 0 12px; }
.prob-col.right { background: var(--color-surface-2); border: 1px solid var(--color-border-2); border-radius: 0 12px 12px 0; }
.prob-lbl { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.lbl-r { color: rgba(255, 110, 110, 0.85); }
.lbl-g { color: var(--color-accent-2); }
.prob-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; color: var(--color-muted); line-height: 1.6; }
.prob-item.on { color: var(--color-text); }
@media (max-width: 768px) {
  .prob-grid { grid-template-columns: 1fr; }
  .prob-col.left { border-radius: 12px 12px 0 0; }
  .prob-col.right { border-radius: 0 0 12px 12px; }
}

/* ── PRODUCT CARDS ── */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.prod-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  color: inherit;
  text-decoration: none;
}
.prod-card:hover { border-color: var(--color-border-2); }
.prod-card.feat { border-color: rgba(91, 155, 213, 0.35); background: rgba(91, 155, 213, 0.04); }
.prod-num { font-family: var(--font-mono); font-size: 10px; color: var(--color-muted); letter-spacing: 0.1em; margin-bottom: 20px; }
.prod-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 20px; }
.ic-bl { background: rgba(91, 155, 213, 0.14); color: var(--color-accent); }
.ic-gr { background: rgba(45, 224, 138, 0.1); color: var(--color-accent-2); }
.ic-am { background: rgba(247, 201, 74, 0.1); color: var(--color-accent-3); }
.prod-name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.prod-sub { font-size: var(--text-small); color: var(--color-muted); margin-bottom: 20px; line-height: 1.5; }
.prod-feats { list-style: none; flex: 1; }
.prod-feats li { font-size: var(--text-small); color: rgba(240, 244, 248, 0.7); padding: 6px 0; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.prod-feats li::before { content: '→'; color: var(--color-accent); flex-shrink: 0; font-size: 12px; margin-top: 1px; }
.prod-foot { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.prod-client { font-size: 11px; color: var(--color-muted); }
.prod-client strong { color: rgba(240, 244, 248, 0.75); font-weight: 500; }
.prod-cta { display: inline-block; margin-top: var(--space-2); font-size: 12px; color: var(--color-accent); text-decoration: none; }
.prod-cta:hover { text-decoration: underline; }
@media (max-width: 960px) { .prod-grid { grid-template-columns: 1fr; } }

/* ── COMPARE (Contra qué se compara) ── */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.compare-col { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: var(--space-4); }
.compare-col.ec { border-color: rgba(45, 224, 138, 0.35); background: rgba(45, 224, 138, 0.04); }
.compare-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 14px; }
.compare-col.ec .compare-tag { color: var(--color-accent-2); }
.compare-col h3 { margin-bottom: var(--space-2); }
.compare-list { list-style: none; }
.compare-list li { font-size: var(--text-small); color: var(--color-muted); padding: 6px 0; line-height: 1.6; display: flex; gap: 10px; }
.compare-list li::before { content: '·'; color: var(--color-accent); }
.compare-col.ec .compare-list li { color: rgba(240, 244, 248, 0.8); }
.compare-col.ec .compare-list li::before { content: '✓'; color: var(--color-accent-2); font-size: 12px; }
@media (max-width: 960px) { .compare-grid { grid-template-columns: 1fr; } }

/* ── METRICS ── */
.metrics-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.m-card { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; }
.m-val { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--color-accent-2); line-height: 1; margin-bottom: 4px; }
.m-name { font-size: 11px; color: var(--color-muted); letter-spacing: 0.06em; }
.m-desc { font-size: 12px; color: var(--color-muted); margin-top: 6px; line-height: 1.5; }
.m-tag { display: inline-flex; font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: var(--radius-sm); margin: 3px 3px 0 0; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--color-border-2); color: rgba(240, 244, 248, 0.65); }
@media (max-width: 960px) { .metrics-wrap { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ── DIFF ── */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.diff-item { padding: var(--space-4); background: var(--color-surface); }
.diff-item:nth-child(1) { border-radius: 12px 0 0 0; }
.diff-item:nth-child(2) { border-radius: 0 12px 0 0; }
.diff-item:nth-child(3) { border-radius: 0 0 0 12px; }
.diff-item:nth-child(4) { border-radius: 0 0 12px 0; }
.diff-num { font-family: var(--font-mono); font-size: 11px; color: var(--color-accent); letter-spacing: 0.08em; margin-bottom: 14px; }
.diff-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.diff-text { font-size: 14px; color: var(--color-muted); line-height: 1.7; }
@media (max-width: 768px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-item { border-radius: 0; }
  .diff-item:first-child { border-radius: 12px 12px 0 0; }
  .diff-item:last-child { border-radius: 0 0 12px 12px; }
}

/* ── TESTIMONIOS CAROUSEL ── */
.c-wrap { position: relative; }
.c-viewport { overflow: hidden; border-radius: 14px; }
.c-track { display: flex; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.c-slide { min-width: 100%; box-sizing: border-box; }
.c-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border-2);
  border-radius: 14px;
  padding: var(--space-5) 56px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.c-quote {
  font-size: 17px;
  font-weight: 300;
  color: rgba(240, 244, 248, 0.85);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-4);
  position: relative;
  padding-left: var(--space-3);
}
.c-quote::before { content: '"'; position: absolute; left: 0; top: -8px; font-size: 40px; color: var(--color-accent); opacity: 0.35; font-style: normal; line-height: 1; }
.c-name { font-size: 14px; font-weight: 500; color: var(--color-text); margin-bottom: 4px; }
.c-role { font-size: 12px; color: var(--color-muted); }
.c-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: 28px; }
.c-arrow {
  background: var(--color-surface);
  border: 1px solid var(--color-border-2);
  color: rgba(240, 244, 248, 0.6);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-arrow:hover { border-color: rgba(255, 255, 255, 0.25); color: var(--color-text); }
.c-dots { display: flex; gap: 8px; align-items: center; }
.c-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(240, 244, 248, 0.18); border: none; cursor: pointer; padding: 0; transition: all 0.25s; }
.c-dot.c-dot-active { background: var(--color-accent); width: 20px; border-radius: 3px; }
@media (max-width: 640px) { .c-inner { padding: var(--space-4) var(--space-3); } }

/* ── SERVICE CARDS (KYC/KYS/AML/Fraude) ── */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--space-4);
  transition: border-color 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: block;
}
.service-card:hover { border-color: var(--card-accent, var(--color-accent)); transform: translateY(-3px); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--card-accent, var(--color-accent)); opacity: 0; transition: opacity 0.25s; }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 20px; }
.service-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.service-sub { font-size: var(--text-small); color: var(--color-muted); line-height: 1.7; margin-bottom: var(--space-2); }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.07em; padding: 4px 10px; border-radius: 4px; border: 1px solid currentColor; opacity: 0.75; }
@media (max-width: 768px) { .service-grid { grid-template-columns: 1fr; } }

/* ── BENCHMARK TABLE ── */
.bench-wrap { background: var(--color-surface); border: 1px solid var(--color-border-2); border-radius: 14px; overflow-x: auto; margin-top: var(--space-4); }
.bench-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.bench-table th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--color-muted); padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--color-border); background: var(--color-code-bg); }
.bench-table td { padding: 14px 20px; font-size: var(--text-small); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.bench-table tr:last-child td { border-bottom: none; }
.bench-table td.bench-ec { background: rgba(91, 155, 213, 0.06); color: var(--color-accent-2); font-weight: 600; }
.bench-check { color: var(--color-accent-2); font-size: 14px; }
.bench-x { color: rgba(240, 244, 248, 0.3); font-size: 14px; }
.bench-partial { color: var(--color-accent-3); font-size: 12px; }

/* ── COUNTERS ── */
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin: var(--space-4) 0; }
.counter-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 28px; text-align: center; position: relative; overflow: hidden; }
.counter-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--c-color, var(--color-accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease; }
.counter-card.visible::after { transform: scaleX(1); }
.counter-num { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--c-color, var(--color-text)); line-height: 1; }
.counter-lbl { font-size: 12px; color: var(--color-muted); margin-top: 8px; }
@media (max-width: 768px) { .counter-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── FEATURE CARDS (inner pages) ── */
.inner-feats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: var(--space-5); }
.feat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: var(--space-3); }
.feat-card-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feat-card-text { font-size: var(--text-small); color: var(--color-muted); line-height: 1.6; }
@media (max-width: 768px) { .inner-feats-grid { grid-template-columns: 1fr; } }

.client-row { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: 20px; }
.client-tag { font-size: 11px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--color-border-2); color: rgba(240, 244, 248, 0.55); }

/* ── COMPLIANCE STRIP (Cumple con) ── */
.compliance-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  max-height: 80px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-5);
  margin: 0 auto var(--space-5);
  max-width: var(--container-max);
  border-radius: var(--radius-md);
}
.compliance-strip .strip-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.compliance-strip a {
  font-size: 12px;
  color: var(--color-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 12px;
  transition: color 0.2s, border-color 0.2s;
}
.compliance-strip a:hover { color: var(--color-text); border-color: var(--color-border-2); }

/* ── LAW CARDS (marco regulatorio) ── */
.law-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.law-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: var(--space-4); scroll-margin-top: 88px; }
.law-card h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.law-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 4px; background: rgba(247, 201, 74, 0.1); border: 1px solid rgba(247, 201, 74, 0.35); color: var(--color-accent-3); }
.law-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); margin: var(--space-2) 0; }
.law-meta div { background: var(--color-surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; color: var(--color-muted); }
.law-meta strong { display: block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(240, 244, 248, 0.45); margin-bottom: 3px; font-weight: 500; }
.law-desc { font-size: 14px; color: var(--color-muted); line-height: 1.7; }
.law-mod { margin-top: var(--space-2); font-size: 12px; color: var(--color-accent-2); }
@media (max-width: 960px) { .law-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.faq-list summary {
  cursor: pointer;
  padding: 18px var(--space-3);
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 18px; color: var(--color-muted); flex-shrink: 0; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list .faq-a { padding: 0 var(--space-3) 18px; font-size: 14px; color: var(--color-muted); line-height: 1.7; }

/* ── NEWS ── */
.news-featured { background: var(--color-surface); border: 1px solid var(--color-border-2); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-3); display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4); align-items: center; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-bottom: var(--space-5); }
.news-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.news-date { font-family: var(--font-mono); font-size: 10px; color: var(--color-muted); margin-bottom: var(--space-2); }
.news-title { font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.news-text { font-size: var(--text-small); color: var(--color-muted); line-height: 1.7; flex: 1; }
.news-link { display: inline-block; margin-top: 20px; font-size: 12px; color: var(--color-accent); text-decoration: none; }
.news-tag { padding: 3px 10px; border-radius: 4px; font-size: 10px; background: rgba(91, 155, 213, 0.12); border: 1px solid rgba(91, 155, 213, 0.35); color: var(--color-accent); }
.news-tag.green { background: rgba(45, 224, 138, 0.08); border-color: rgba(45, 224, 138, 0.3); color: var(--color-accent-2); }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr; } .news-featured { grid-template-columns: 1fr; } }

/* ── FORMS ── */
.form-panel { background: var(--color-surface); border: 1px solid var(--color-border-2); border-radius: var(--radius-lg); padding: var(--space-4); }
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field label { font-size: 11px; color: var(--color-muted); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.form-field .req { color: var(--color-accent-2); }
.form-input, .form-select {
  width: 100%;
  box-sizing: border-box;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--color-text);
  font-size: var(--text-small);
  font-family: inherit;
  outline: none;
}
.form-input:focus, .form-select:focus { border-color: var(--color-accent); }
.form-error { display: none; font-size: 12px; color: var(--color-warn); padding: 10px 14px; background: rgba(247, 122, 74, 0.08); border-radius: var(--radius-sm); border: 1px solid rgba(247, 122, 74, 0.3); }
.form-success { display: none; background: rgba(45, 224, 138, 0.08); border: 1px solid var(--color-accent-2); border-radius: 12px; padding: var(--space-3); text-align: center; margin-bottom: var(--space-2); }
.form-submit { background: var(--color-accent); color: #fff; border: none; border-radius: var(--radius-md); padding: 15px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity 0.2s; }
.form-submit:hover { opacity: 0.85; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── OFFICE CARDS ── */
.office-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; }
.office-tag { font-size: 10px; color: var(--color-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.office-tag.hq { color: var(--color-accent); }
.office-city { font-size: var(--text-small); font-weight: 500; color: var(--color-text); margin-bottom: 2px; }
.office-addr { font-size: 12px; color: var(--color-muted); }

/* ── PANEL (generic surface card) ── */
.panel { background: var(--color-surface); border: 1px solid var(--color-border-2); border-radius: var(--radius-lg); padding: var(--space-5); }
.panel-soft { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.cell { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; }
.cell-lbl { font-size: 10px; color: var(--color-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.cell-val { font-size: 15px; font-weight: 500; color: var(--color-text); }

/* ══════════════════════════════════════════════
   DEMO WIDGETS (shared by product pages + demo)
   ══════════════════════════════════════════════ */
.prod-demo-wrap { margin-top: var(--space-6); border-top: 1px solid var(--color-border-2); padding-top: var(--space-5); }
.prod-demo-header { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); flex-wrap: wrap; }
.prod-demo-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 4px; background: rgba(45, 224, 138, 0.08); border: 1px solid rgba(45, 224, 138, 0.3); color: var(--color-accent-2); }
.prod-tab-row { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border-2); margin-bottom: var(--space-4); overflow-x: auto; }
.prod-tab, .demo-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 18px;
  color: rgba(240, 244, 248, 0.55);
  font-size: var(--text-small);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
  white-space: nowrap;
}
.prod-tab:hover, .demo-tab:hover { color: rgba(240, 244, 248, 0.8); }
.prod-tab.prod-tab-active { color: var(--color-text); border-bottom-color: var(--color-accent-2); }
.demo-tab.demo-tab-active { color: var(--color-text); border-bottom-color: var(--color-accent); }
.prod-panel { display: none; animation: fadeIn 0.3s ease; }
.prod-panel.prod-active { display: block; }
.demo-panel { animation: fadeIn 0.3s ease; }

.demo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.demo-grid-wide { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-4); align-items: start; }
@media (max-width: 768px) { .demo-grid-2, .demo-grid-wide { grid-template-columns: 1fr; } }

.demo-result-box { background: var(--color-code-bg); border: 1px solid var(--color-border-2); border-radius: 12px; padding: 28px; min-height: 240px; }
.demo-result-box.center { display: flex; align-items: center; justify-content: center; }
.demo-placeholder { text-align: center; color: rgba(240, 244, 248, 0.35); font-size: var(--text-small); }
.demo-input-label { font-size: 11px; color: var(--color-muted); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.demo-select {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--color-text);
  font-size: var(--text-small);
  font-family: inherit;
  outline: none;
  margin-bottom: 14px;
}
.demo-input {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
}
.demo-btn { background: var(--color-accent); border: none; border-radius: var(--radius-sm); padding: 11px 20px; color: #fff; font-size: var(--text-small); font-family: inherit; cursor: pointer; font-weight: 500; transition: opacity 0.2s; }
.demo-btn:hover { opacity: 0.85; }
.demo-btn-green { background: rgba(45, 224, 138, 0.15); border: 1px solid rgba(45, 224, 138, 0.4); color: var(--color-accent-2); }
.demo-btn-green:hover { background: rgba(45, 224, 138, 0.25); }
.demo-btn-solid-green { background: var(--color-accent-2); color: #06231a; border: none; border-radius: var(--radius-sm); padding: 12px 20px; font-size: var(--text-small); font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.demo-code { background: var(--color-code-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--color-accent); line-height: 1.7; }
.demo-code .cmt { color: rgba(255, 255, 255, 0.35); }
.demo-code .k { color: var(--color-accent-2); }
.demo-code .v { color: var(--color-accent-3); }
.demo-note { margin-top: var(--space-2); background: var(--color-code-bg); border-radius: var(--radius-sm); padding: 14px; font-family: var(--font-mono); font-size: 11px; line-height: 1.8; color: rgba(240, 244, 248, 0.5); }
.demo-canvas { width: 100%; border-radius: var(--radius-md); background: var(--color-code-bg); }

/* Example chips (clickable sample RUTs) */
.chip-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-2); }
.chip {
  cursor: pointer;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(240, 244, 248, 0.7);
  text-align: left;
  transition: border-color 0.2s;
}
.chip:hover { border-color: var(--color-border-2); }

/* Result building blocks used by widget JS */
.kf { background: var(--color-surface-2); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 6px; }
.kf-lbl { font-size: 10px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.kf-val { font-size: 12px; color: var(--color-text); }
.score-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border-2); }
.score-big { font-size: 40px; font-weight: 700; font-family: var(--font-mono); }
.score-lbl { font-size: 10px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.rec-box { text-align: center; border-radius: var(--radius-sm); padding: 10px 14px; border: 1px solid currentColor; }
.pill-status { border-radius: var(--radius-sm); padding: 5px 12px; font-size: 13px; font-weight: 700; border: 1px solid currentColor; display: inline-block; }
.kv-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 11px; }
.kv-row .k { color: var(--color-muted); }
.kv-row .v { text-align: right; max-width: 65%; }

/* Operate op-summary */
.op-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 10px; }
.op-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; }
.op-row:last-child { border-bottom: none; }
.op-key { color: var(--color-muted); }
.op-val { color: var(--color-text); font-family: var(--font-mono); font-size: 11px; }

/* Cerebro */
.cerebro-kpi { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; transition: all 0.2s; }
.cerebro-kpi.target { border-color: var(--color-accent-2); background: rgba(45, 224, 138, 0.05); }

/* Agent tree */
.agent-node { background: var(--color-surface); border-radius: var(--radius-md); padding: 14px 18px; position: relative; cursor: pointer; text-align: left; width: 100%; font-family: inherit; color: inherit; }
.agent-badge { font-size: 9px; font-family: var(--font-mono); letter-spacing: 0.07em; padding: 2px 8px; border-radius: 3px; display: inline-block; margin-bottom: 6px; border: 1px solid currentColor; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer-outer { border-top: 1px solid var(--color-border); margin-top: var(--space-6); }
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: grid;
  grid-template-columns: 240px 1fr 1fr auto;
  gap: var(--space-5);
  align-items: start;
}
.footer-logo { font-family: var(--font-heading); font-size: 16px; font-weight: 700; letter-spacing: 0.08em; color: rgba(240, 244, 248, 0.9); margin-bottom: 10px; }
.footer-logo span { color: var(--color-accent); }
.footer-tagline { font-size: 12px; color: rgba(240, 244, 248, 0.45); line-height: 1.7; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 244, 248, 0.6);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { color: var(--color-text); border-color: rgba(255, 255, 255, 0.25); }
.fmenu-title { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240, 244, 248, 0.4); margin-bottom: 14px; }
.fmenu { display: flex; flex-direction: column; }
.fmenu a { font-size: var(--text-small); color: rgba(240, 244, 248, 0.55); text-decoration: none; padding: 5px 0; transition: color 0.2s; }
.fmenu a:hover { color: rgba(240, 244, 248, 0.85); }
.fmenu .fsub { font-size: 12px; color: rgba(240, 244, 248, 0.4); padding: 3px 0 3px 14px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.fmenu .fsub:hover { color: rgba(240, 244, 248, 0.7); }
.footer-contact { font-size: 12px; color: rgba(240, 244, 248, 0.45); line-height: 2; }
.footer-offices { font-size: 11px; color: rgba(240, 244, 248, 0.4); line-height: 1.9; }
.footer-legal { font-size: 11px; color: rgba(240, 244, 248, 0.4); margin-top: var(--space-2); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px var(--space-5);
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 11px; color: rgba(240, 244, 248, 0.38); }
.footer-links { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: rgba(240, 244, 248, 0.38); text-decoration: none; }
.footer-links a:hover { color: rgba(240, 244, 248, 0.6); }
@media (max-width: 960px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ── FOOTER EXTRAS (patch2): contacto ampliado, newsletter, sellos, WhatsApp ── */
.footer-contact a { color: inherit; }
.footer-wa { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--color-accent-2) !important; text-decoration: none; }
.footer-wa:hover { text-decoration: underline; }
.footer-support { margin-top: 10px; font-size: 11px; color: rgba(240, 244, 248, 0.45); line-height: 1.9; }
.footer-support a { color: rgba(240, 244, 248, 0.6); text-decoration: none; }
.footer-support a:hover { color: var(--color-text); }

.footer-newsletter {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.footer-newsletter-lbl { font-size: 14px; font-weight: 500; color: rgba(240, 244, 248, 0.8); }
.footer-newsletter-sub { font-size: 12px; color: var(--color-muted); margin-top: 2px; }
.newsletter-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.newsletter-form .form-input { width: 260px; }
.nl-msg { font-size: 12px; width: 100%; }
.nl-msg.ok { color: var(--color-accent-2); }
.nl-msg.err { color: var(--color-warn); }

.footer-seals {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
}
.footer-seals img { width: auto; opacity: 0.65; filter: grayscale(35%); transition: opacity 0.2s; }
/* peso óptico parejo (patch4 rev3 §4.3): wordmarks a 40px de referencia,
   marcas cuadradas al 75% (30px), banda fina RSE calibrada aparte */
.footer-seals .seal-wordmark { height: 40px; }
.footer-seals .seal-square { height: 30px; }
.footer-seals .seal-strip { height: 22px; }
.footer-seals .seal-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(240, 244, 248, 0.6); /* mismo gris efectivo que los sellos (blanco al 65% con grayscale) */
  white-space: nowrap;
}
.footer-seals img:hover { opacity: 1; }

.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }
