/* Teloria SpA — Landing (basado en identidad teloria.cl) */

:root {
  --teloria-accent: #f02a4a;
  --teloria-accent-soft: #ffe2f1;
  --teloria-text: #171717;
  --teloria-text-muted: #4f4f4f;
  --teloria-mint: #d9f0e7;
  --teloria-yellow: #ffe386;
  --teloria-sky: #deedf8;
  --teloria-white: #ffffff;
  --teloria-hero-bg: rgba(255, 227, 134, 0.72);
  --teloria-highlight: #f76a0c;

  --font-body: 'Open Sans', system-ui, sans-serif;
  --font-heading: 'Rubik', system-ui, sans-serif;

  --radius: 8px;
  --radius-pill: 50px;
  --content-max: 1140px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--teloria-text-muted);
  background: var(--teloria-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teloria-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--teloria-text);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

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

.section {
  padding: 5rem 0;
  position: relative;
}

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teloria-accent);
  margin-bottom: 0.5rem;
}

.texture-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: url('https://teloria.cl/wp-content/uploads/2022/01/E0000_03.png') center/contain repeat;
  pointer-events: none;
  z-index: 0;
}

.section > .container { position: relative; z-index: 1; }

/* ── Header ─────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo img { height: 40px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teloria-text);
  margin: 5px 0;
  transition: transform 0.2s;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--teloria-text);
  text-decoration: none;
}

.site-nav a:hover { color: var(--teloria-accent); text-decoration: none; }

.nav-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teloria-white);
  background: var(--teloria-accent);
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

/* ── Hero ───────────────────────────────────── */

.hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 5rem;
  background: var(--teloria-hero-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teloria-text);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 .accent { color: var(--teloria-accent); }

.hero-lead {
  font-size: 1.1rem;
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--teloria-accent);
  color: var(--teloria-white);
}

.btn-primary:hover {
  background: var(--teloria-accent-soft);
  color: var(--teloria-text);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--teloria-text);
  border-color: var(--teloria-text);
}

.btn-outline:hover {
  background: var(--teloria-text);
  color: var(--teloria-white);
  text-decoration: none;
}

.btn-accent {
  background: var(--teloria-yellow);
  color: var(--teloria-text);
  border-color: var(--teloria-yellow);
}

.btn-accent:hover {
  background: var(--teloria-accent);
  color: var(--teloria-white);
  border-color: var(--teloria-accent);
  text-decoration: none;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img,
.hero-image {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(23, 23, 23, 0.12));
}

.hero-image {
  border-radius: var(--radius);
  background: var(--teloria-white);
  padding: 0.5rem;
}

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 0;
  background: var(--teloria-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teloria-text);
}

/* ── Servicios ──────────────────────────────── */

.section-services {
  background: var(--teloria-sky);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--teloria-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(23, 23, 23, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(23, 23, 23, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card p { font-size: 0.92rem; margin-bottom: 0; }

/* ── Herramientas (lead magnet) ─────────────── */

.section-tools {
  background: var(--teloria-yellow);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}

.tools-version {
  display: inline-block;
  font-size: 0.45em;
  font-weight: 600;
  vertical-align: middle;
  padding: 0.2rem 0.55rem;
  background: var(--teloria-white);
  color: var(--teloria-accent);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.tools-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.tools-features li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  font-size: 0.95rem;
}

.tools-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teloria-accent);
  font-weight: 700;
}

.tools-features code {
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tools-note {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.85;
}

.tools-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-card {
  background: var(--teloria-white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 4px 20px rgba(23, 23, 23, 0.08);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  align-items: start;
}

.tool-card-icon {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--teloria-mint);
  color: var(--teloria-accent);
  border-radius: 50%;
}

.tool-card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.tool-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tool-card p {
  grid-column: 2;
  font-size: 0.88rem;
  margin: 0;
}

/* ── Página Rig Builder ─────────────────────── */

.tool-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.tool-page-head {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 0;
  background: var(--teloria-sky);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.tool-page-head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 0;
}

.tool-page-head h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.tool-page-lead {
  max-width: 42ch;
  margin: 0;
  font-size: 0.95rem;
}

.tool-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
}

.tool-tab {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--teloria-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tool-tab.is-active {
  background: var(--teloria-white);
  color: var(--teloria-accent);
  box-shadow: 0 2px 8px rgba(23, 23, 23, 0.08);
}

.tool-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-panel {
  display: none;
  flex: 1;
  flex-direction: column;
}

.tool-panel.is-active {
  display: flex;
}

.tool-panel > .container {
  padding: 3rem 0 4rem;
}

.tool-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tool-info-block {
  background: var(--teloria-mint);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.tool-info-block h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.tool-info-wide {
  grid-column: 1 / -1;
}

.tool-steps-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.92rem;
}

.tool-steps-list li {
  margin-bottom: 0.4rem;
}

.tool-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tool-locations h3 {
  font-size: 0.9rem;
  color: var(--teloria-accent);
  margin-bottom: 0.35rem;
}

.tool-locations ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.tool-info-note {
  font-size: 0.88rem;
  margin: 1rem 0 0;
}

.tool-code {
  background: var(--teloria-text);
  color: #e8e8e8;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.tool-code code { font-family: ui-monospace, monospace; }

.tool-info-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tool-app-bar {
  background: var(--teloria-white);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  flex-shrink: 0;
}

.tool-app-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.tool-app-bar-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teloria-text);
}

.tool-mode-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tool-mode-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: var(--radius-pill);
  background: var(--teloria-white);
  color: var(--teloria-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tool-mode-btn.is-active,
.tool-mode-btn:hover {
  border-color: var(--teloria-accent);
  color: var(--teloria-accent);
  background: var(--teloria-accent-soft);
}

.tool-open-new {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teloria-text-muted);
  text-decoration: none;
}

.tool-open-new:hover {
  color: var(--teloria-accent);
  text-decoration: none;
}

.tool-frame {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - var(--header-h) - 140px);
  border: none;
  background: #f0f4f8;
}

/* NodeCreator embebido (sin iframe) */

.nc-page.tool-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.nc-embedded {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h) - 260px);
  background: #f0f4f8;
  isolation: isolate;
}

/* Wizard/editor dentro del área de contenido (no cubre header/footer) */
.nc-wizard-overlay {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.nc-embedded #wizardOverlay {
  z-index: 20;
}

.nc-embedded #app,
.nc-embedded #paletteApp {
  flex: 1;
  width: 100%;
  max-width: none;
  padding-top: 1rem;
}

.nc-embedded .modal-backdrop {
  position: absolute !important;
  inset: 0;
  z-index: 40;
}

.nc-linter-panel {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  left: auto;
  z-index: 30;
  max-width: min(100% - 2rem, 28rem);
}

.nc-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 2.5rem 1.5rem 3.5rem;
  background: linear-gradient(145deg, var(--teloria-sky) 0%, var(--teloria-white) 100%);
}

.nc-welcome-inner {
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.nc-welcome-logo {
  margin: 0 auto 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.08);
}

.nc-welcome h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.nc-welcome-inner > p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  color: var(--teloria-text-muted);
}

.nc-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nc-mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--teloria-white);
  box-shadow: 0 4px 20px rgba(23, 23, 23, 0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  font-family: inherit;
}

.nc-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(23, 23, 23, 0.1);
  border-color: var(--teloria-accent-soft);
}

.nc-mode-card--accent:hover {
  border-color: var(--teloria-accent);
}

.nc-mode-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.nc-mode-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teloria-text);
  margin-bottom: 0.35rem;
}

.nc-mode-desc {
  font-size: 0.82rem;
  color: var(--teloria-text-muted);
  line-height: 1.45;
}

.nc-welcome-extra {
  margin: 0;
  font-size: 0.88rem;
}

.nc-plugin-link {
  font-weight: 600;
  color: var(--teloria-text-muted);
  text-decoration: none;
}

.nc-plugin-link:hover {
  color: var(--teloria-accent);
  text-decoration: underline;
}

.nc-page .site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.tool-page-head--simple {
  padding-bottom: 1.5rem;
  flex-shrink: 0;
}

.tool-page-head--simple .tool-page-lead {
  max-width: 52ch;
}

.tool-main--embedded {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tool-footer {
  padding: 1rem 0;
}

.tool-footer .footer-copy {
  margin: 0;
}

.tool-footer a {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Enfoque indie Latam ──────────────────────── */

.section-vision {
  background: var(--teloria-white);
  padding: 4.5rem 0;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.vision-content p strong {
  color: var(--teloria-accent);
  font-weight: 600;
}

.vision-callout {
  background: linear-gradient(145deg, var(--teloria-mint) 0%, var(--teloria-sky) 100%);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  border-left: 4px solid var(--teloria-accent);
}

.vision-callout-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teloria-accent);
  margin: 0 0 1rem;
}

.vision-callout-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--teloria-text);
  margin: 0;
}

/* ── Proyecto ───────────────────────────────── */

.section-project {
  background: var(--teloria-white);
}

.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project-visual {
  border-radius: var(--radius);
  min-height: 320px;
  background:
    linear-gradient(135deg, var(--teloria-mint) 0%, var(--teloria-sky) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.project-visual .project-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--teloria-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--teloria-accent-soft);
  color: var(--teloria-accent);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Compromiso (puente servicios → nosotros) ─ */

.section-bridge {
  background: var(--teloria-white);
}

.bridge-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bridge-point {
  background: var(--teloria-mint);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  border-top: 3px solid var(--teloria-accent);
  text-align: center;
}

.bridge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  background: var(--teloria-yellow);
  color: var(--teloria-accent);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(240, 42, 74, 0.12);
}

.bridge-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.bridge-point h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.bridge-point p {
  font-size: 0.92rem;
  margin: 0;
}

/* ── Nosotros ───────────────────────────────── */

.section-about {
  background: var(--teloria-accent-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.values-panel {
  background: var(--teloria-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 20px rgba(23, 23, 23, 0.06);
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 0.65rem 0 0.65rem 1.75rem;
  position: relative;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.values-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teloria-accent);
  font-weight: 700;
}

/* ── Metodología ────────────────────────────── */

.section-method {
  background: var(--teloria-white);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.method-step {
  background: var(--teloria-mint);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  counter-increment: step;
}

.method-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  background: var(--teloria-accent);
  color: var(--teloria-white);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.method-step h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.method-step p { font-size: 0.8rem; margin: 0; }

/* ── Contacto ───────────────────────────────── */

.section-contact {
  background: var(--teloria-sky);
}

.contact-simple {
  text-align: center;
  max-width: 560px;
}

.contact-simple h2 { margin-bottom: 1rem; }

.contact-simple p {
  margin-bottom: 1.25rem;
}

.contact-email {
  margin: 2rem 0 1.5rem;
}

.contact-email .btn {
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

.contact-meta {
  font-size: 0.95rem;
  color: var(--teloria-text-muted);
  margin-bottom: 0;
}

/* ── Footer ─────────────────────────────────── */

.site-footer {
  background: var(--teloria-text);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}

.footer-inner .logo img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.footer-copy { text-align: center; font-size: 0.8rem; }

/* ── Display watermark (decorativo) ─────────── */

.watermark-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 1px var(--teloria-text);
  text-align: center;
  line-height: 1;
  margin-bottom: -2.5rem;
  pointer-events: none;
  user-select: none;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .bridge-points { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-info-grid { grid-template-columns: 1fr; }
  .tool-info-wide { grid-column: auto; }
}

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--teloria-white);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
    pointer-events: none;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-grid,
  .about-grid,
  .vision-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-page-head-inner { flex-direction: column; align-items: flex-start; }
  .tool-open-new { margin-left: 0; }
  .nc-mode-grid { grid-template-columns: 1fr; }

  .vision-callout { margin-top: 0.5rem; }
  .values-panel { margin-top: 0.5rem; }

  .hero-visual { min-height: 220px; order: -1; }
  .cards-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
}

/* ── NodeCreator: paleta / lupa ───────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.palette-loupe {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  background: #111;
}

.palette-loupe canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

#paletteImageScroll {
  overflow: visible;
}

.palette-color-swatch {
  display: block;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.palette-color-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.palette-color-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
