/* =====================================================================
   ZIDANG · Zinodes + SCADA web — v7 (noviembre 2026)
   ===================================================================== */
:root {
  --bg: #070d1a;
  --bg-2: #0a1222;
  --bg-3: #0f1a2e;
  --card: #111c31;
  --card-h: #16243d;
  --line: rgba(148, 163, 184, .14);
  --line-2: rgba(148, 163, 184, .24);

  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;

  --accent: #2f8cff;
  --accent-d: #046bd2;
  --accent-2: #22d3ee;
  --ok: #22c55e;
  --warn: #f59e0b;
  --grad: linear-gradient(135deg, #046bd2 0%, #00b4d8 100%);
  --grad-text: linear-gradient(120deg, #60a5fa 0%, #22d3ee 100%);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --max: 1600px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  --t: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text-2);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p + p { margin-top: 1em; }
strong { color: var(--text); font-weight: 650; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 72px); }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }

/* ─── Eyebrow / tag ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: #7dd3fc; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.pill { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(47, 140, 255, .35); background: rgba(47, 140, 255, .1);
  font-size: .8rem; font-weight: 600; color: #93c5fd;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; cursor: pointer; transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent-d); color: #fff; box-shadow: 0 10px 30px -10px rgba(4, 107, 210, .8); }
.btn-primary:hover { background: #0b7be8; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(125, 211, 252, .6); background: rgba(125, 211, 252, .06); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.link-arrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7dd3fc; font-weight: 650; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ─── Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 72px;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled, .navbar.solid { background: rgba(7, 13, 26, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.navbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 40px; width: auto; }
.brand-tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); border-left: 1px solid var(--line-2); padding-left: 14px; line-height: 1.3; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 550; color: var(--text-2); background: none; border: 0; cursor: pointer; transition: color var(--t), background var(--t);
}
.nav-menu > li > a:hover, .nav-drop > button:hover, .nav-menu a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-drop { position: relative; }
.nav-drop svg { width: 14px; height: 14px; transition: transform var(--t); }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 280px;
  background: #0d1729; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu, .nav-drop.open .drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop:hover > button svg, .nav-drop.open > button svg { transform: rotate(180deg); }
.drop-menu a { display: block; padding: 10px 14px; border-radius: 10px; }
.drop-menu a:hover { background: rgba(255, 255, 255, .05); }
.drop-menu strong { display: block; font-size: .92rem; }
.drop-menu span { display: block; font-size: .8rem; color: var(--text-3); line-height: 1.4; }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; padding: 148px 0 96px; overflow: hidden; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -200px; top: -300px;
  background: radial-gradient(circle, rgba(4, 107, 210, .28) 0%, transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 22px; font-size: clamp(2.3rem, 4.2vw, 3.9rem); }
.hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 36em; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.hero-lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { margin-top: 34px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.hero-visual { position: relative; }
.hero-visual .phone { position: absolute; width: 26%; right: -3%; bottom: -12%; }

/* Page hero (sub pages) */
.page-hero { padding: 140px 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(4, 107, 210, .25), transparent 70%); }
.page-hero .lead { font-size: 1.15rem; max-width: 40em; margin-top: 18px; }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero-media { margin-top: 56px; }

/* ─── Browser frame ─────────────────────────────────────────────── */
.frame {
  position: relative; border-radius: 14px; overflow: hidden; background: #0d1626;
  border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .3);
}
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #0f1b2f; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.frame-bar i:nth-child(1) { background: #f87171; } .frame-bar i:nth-child(2) { background: #fbbf24; } .frame-bar i:nth-child(3) { background: #4ade80; }
.frame-bar span { margin-left: 12px; font-family: var(--mono); font-size: .72rem; color: var(--text-3); background: rgba(255, 255, 255, .04); padding: 3px 12px; border-radius: 6px; flex: 1; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; }
.frame-plain { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #0d1626; }
.phone { border-radius: 30px; padding: 7px; background: #0b1220; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.phone img { border-radius: 24px; }
.zoomable { cursor: zoom-in; }
.zoom-btn { all: unset; display: block; cursor: zoom-in; width: 100%; }
.zoom-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 14px; }

/* ─── Sections ──────────────────────────────────────────────────── */
.section { padding: 112px 0; position: relative; }
.section-alt { background: rgba(10, 18, 34, .55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--text-3); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-media { grid-template-columns: .85fr 1.15fr; }
.split.reverse > :first-child { order: 2; }
.split-text p { margin-top: 16px; }
.split-text h2 + p { margin-top: 18px; }

/* Value strip */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: rgba(10, 18, 34, .7); backdrop-filter: blur(4px); }
.value { padding: 28px 26px; border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; }
.value svg { width: 26px; height: 26px; color: var(--accent-2); margin-bottom: 16px; }
.value h3 { font-size: 1.02rem; margin-bottom: 6px; }
.value p { font-size: .9rem; color: var(--text-3); line-height: 1.55; }

/* Check list */
.checks { display: grid; gap: 14px; margin-top: 26px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checks svg { width: 20px; height: 20px; color: var(--accent-2); margin-top: 3px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: border-color var(--t), background var(--t), transform var(--t); }
.card:hover { border-color: rgba(47, 140, 255, .35); background: var(--card-h); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .94rem; color: var(--text-3); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(47, 140, 255, .12); color: #7dd3fc; border: 1px solid rgba(47, 140, 255, .25); }
.card .ico svg { width: 22px; height: 22px; }
.card .kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #7dd3fc; margin-bottom: 12px; display: block; }
.card ul { margin-top: 14px; display: grid; gap: 6px; }
.card ul li { font-size: .9rem; color: var(--text-3); padding-left: 16px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--accent-2); }

/* Tabs showcase */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all var(--t);
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: #fff; border-color: rgba(125, 211, 252, .5); }
.tab[aria-selected="true"] { background: #fff; color: #0b1220; border-color: #fff; }
.tab-panel { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.5rem; margin-bottom: 12px; }
.tab-panel p { color: var(--text-3); }
.tab-panel .checks { margin-top: 20px; }
.tab-panel .checks li { font-size: .94rem; }

/* Zinode block */
.zinode-visual { position: relative; display: grid; place-items: center; padding: 30px; }
.zinode-visual::before { content: ""; position: absolute; inset: 8% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .2), transparent 65%); }
.zinode-visual img { position: relative; max-width: 440px; width: 100%; border-radius: 24px; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.zinode-visual .badge-ip { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); background: rgba(7, 13, 26, .85); backdrop-filter: blur(6px); }
.four { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.four div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: rgba(255, 255, 255, .02); }
.four strong { display: block; font-size: .98rem; }
.four span { font-size: .85rem; color: var(--text-3); }
.modes { margin-top: 56px; }
.mode-tag { align-self: flex-start; font-family: var(--mono); font-size: .72rem; padding: 4px 10px; border-radius: 6px; background: rgba(34, 211, 238, .1); color: #67e8f9; border: 1px solid rgba(34, 211, 238, .25); display: inline-block; margin-bottom: 16px; }

/* Industry cards */
.ind-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; transition: transform var(--t), border-color var(--t); }
.ind-card:hover { transform: translateY(-4px); border-color: rgba(47, 140, 255, .4); }
.ind-card .media { aspect-ratio: 16/10; overflow: hidden; background: #e9e6dc; }
.ind-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ind-card:hover .media img { transform: scale(1.04); }
.ind-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ind-card .body p { font-size: .94rem; color: var(--text-3); flex: 1; }
.ind-card .link-arrow { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.chips span { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: .88rem; color: var(--text-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), transparent); }
.step-n { font-family: var(--mono); font-size: .8rem; color: #7dd3fc; letter-spacing: .1em; }
.step h3 { margin: 14px 0 10px; }
.step p { font-size: .94rem; color: var(--text-3); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.shot figcaption { margin-top: 14px; font-size: .9rem; color: var(--text-3); }
.shot figcaption strong { display: block; font-size: .98rem; margin-bottom: 2px; }

/* Feature row (plataforma) */
.feature { padding: 96px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.num { font-family: var(--mono); font-size: .78rem; color: var(--text-3); letter-spacing: .12em; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: rgba(255, 255, 255, .02); }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.stat { border-left: 1px solid var(--line-2); padding-left: 20px; }
.stat b { display: block; font-size: 2rem; color: var(--text); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--text-3); }

/* Note */
.note { margin-top: 28px; padding: 16px 20px; border-radius: var(--r-md); border: 1px dashed var(--line-2); font-size: .88rem; color: var(--text-3); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.project img { aspect-ratio: 16/10; width: 100%; object-fit: cover; filter: saturate(.9); }
.project div { padding: 16px 18px 18px; }
.project small { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #7dd3fc; }
.project h3 { font-size: 1rem; margin-top: 6px; }
.project p { font-size: .85rem; color: var(--text-3); margin-top: 4px; line-height: 1.5; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: border-color var(--t); }
.faq details[open] { border-color: rgba(47, 140, 255, .4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; font-weight: 650; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: #7dd3fc; transition: transform var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--text-3); }

/* CTA band */
.cta-band { border-radius: var(--r-xl); padding: 56px; background: linear-gradient(135deg, #0b3a73 0%, #075985 60%, #0e7490 100%); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #e0f2fe; margin-top: 8px; }
.cta-band .btn-primary { background: #fff; color: #0b1220; box-shadow: none; }
.cta-band .btn-primary:hover { background: #e0f2fe; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .45); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: border-color var(--t); }
a.contact-item:hover { border-color: rgba(47, 140, 255, .45); }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 140, 255, .12); color: #7dd3fc; flex: none; }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: .78rem; color: var(--text-3); }
.contact-item b { color: var(--text); font-weight: 650; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #0b1424; color: var(--text); transition: border-color var(--t);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 140, 255, .2); }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: 10px; font-size: .92rem; }
.form-msg.ok { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35); color: #bbf7d0; }
.form-msg.err { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; }
.form small { color: var(--text-3); font-size: .8rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: rgba(5, 10, 20, .82); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .9rem; color: var(--text-3); max-width: 28em; }
.footer h4 { font-size: .78rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; font-size: .92rem; }
.footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--text-3); }

/* WhatsApp floating */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); transition: transform var(--t); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; margin: auto; overflow: visible; }
.lightbox::backdrop { background: rgba(2, 6, 14, .9); backdrop-filter: blur(4px); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox p { text-align: center; color: var(--text-2); font-size: .92rem; margin-top: 12px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(15, 23, 42, .9); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Arquitectura */
.arch { margin: 0; }
.arch-flow { display: grid; grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1.15fr) 200px minmax(0, 1fr); align-items: stretch; }
.arch-node { background: rgba(17, 28, 49, .92); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px 24px; }
.arch-core { border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 0 1px rgba(34, 211, 238, .12), 0 24px 60px -24px rgba(34, 211, 238, .35); }
.arch-step { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #7dd3fc; margin-bottom: 10px; }
.arch-node h3 { font-size: 1.15rem; margin-bottom: 14px; }
.arch-node ul { display: grid; gap: 8px; }
.arch-node li { position: relative; padding-left: 16px; font-size: .92rem; color: var(--text-2); line-height: 1.45; }
.arch-node li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.arch-sub { border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px 16px; background: rgba(7, 13, 26, .5); }
.arch-sub b { display: block; color: var(--text); font-size: .98rem; }
.arch-sub span { display: block; font-size: .86rem; color: var(--text-3); line-height: 1.45; margin-top: 2px; }
.arch-lora { position: relative; display: flex; justify-content: center; padding: 14px 0; }
.arch-lora::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed rgba(34, 211, 238, .55); }
.arch-lora span { position: relative; font-family: var(--mono); font-size: .74rem; color: #67e8f9; background: #0b1527; border: 1px solid rgba(34, 211, 238, .4); border-radius: 999px; padding: 3px 12px; }
.arch-link { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 0 10px; }
.arch-link ul { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.arch-link li { font-family: var(--mono); font-size: .72rem; color: var(--text-2); padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7, 13, 26, .85); white-space: nowrap; }
.arch-arrow { color: #7dd3fc; display: block; width: 150px; height: 16px; }
.arch figcaption { margin-top: 22px; font-size: .92rem; color: var(--text-3); text-align: center; }

/* Problemas */
.problem { display: flex; flex-direction: column; }
.problem .tag-p { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #fbbf24; margin-bottom: 10px; display: block; }
.problem h3 { margin-bottom: 10px; }
.problem p { font-size: .93rem; color: var(--text-3); }
.problem .sol { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; color: var(--text-2); }
.problem p + .sol { margin-top: 16px; }
.problem .sol b { color: #7dd3fc; font-weight: 650; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tech span { font-family: var(--mono); font-size: .76rem; color: var(--text-2); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7, 13, 26, .6); }

/* Fondo de partículas */
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body { background: var(--bg); }
.hero::after { z-index: -1; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.notfound b { font-family: var(--mono); font-size: 5rem; color: #7dd3fc; display: block; line-height: 1; margin-bottom: 16px; }

/* =====================================================================
   v7 · Soluciones, esquemas, fotos referenciales y páginas nuevas
   ===================================================================== */

/* Foto referencial */
.photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #0d1626; }
.photo img { width: 100%; }
/* Esquema ampliable */
.scheme { margin: 0 auto; max-width: 1240px; }
.scheme-frame { display: block; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: box-shadow var(--t); }
.scheme-frame img { width: 100%; }
.scheme .zoom-btn:hover .scheme-frame { box-shadow: var(--shadow), 0 0 0 2px rgba(125, 211, 252, .6); }
.scheme figcaption { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 14px; font-size: .86rem; color: var(--text-3); line-height: 1.5; }
.scheme figcaption svg { width: 16px; height: 16px; flex: none; color: #7dd3fc; margin-top: 3px; }
.hero-visual .scheme { max-width: none; }

/* Portada de cada solución */
.hero-sol h1 { font-size: clamp(1.9rem, 3.1vw, 2.9rem); letter-spacing: -.03em; }
.pill-link { transition: border-color var(--t), background var(--t), color var(--t); }
.pill-link:hover { border-color: rgba(125, 211, 252, .7); background: rgba(47, 140, 255, .18); color: #dbeafe; }
.pill-link svg { width: 14px; height: 14px; transform: rotate(180deg); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; color: var(--text-2); background: rgba(7, 13, 26, .5); transition: border-color var(--t), color var(--t); }
.jump a:hover { border-color: rgba(125, 211, 252, .6); color: #fff; }

/* Tarjetas de soluciones: «¿Cuál es su caso?» */
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.case-card:hover { border-color: rgba(47, 140, 255, .5); background: var(--card-h); transform: translateY(-2px); }
.case-card > .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(47, 140, 255, .12); color: #7dd3fc; border: 1px solid rgba(47, 140, 255, .25); }
.case-card > .ico svg { width: 21px; height: 21px; }
.case-card .body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; align-self: stretch; }
.case-q { color: var(--text); font-weight: 650; font-size: 1.01rem; line-height: 1.38; letter-spacing: -.01em; }
.case-q::before { content: "«"; color: #7dd3fc; }
.case-q::after { content: "»"; color: #7dd3fc; }
.case-sol { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; color: #7dd3fc; line-height: 1.35; }
.case-sol svg { width: 14px; height: 14px; flex: none; transition: transform var(--t); }
.case-card:hover .case-sol svg { transform: translateX(3px); }
.case-card.with-thumb { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.case-card .media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0d1626; border-bottom: 1px solid var(--line); }
.case-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-card .media-scheme { background: #fff; }
.case-card .media-scheme img { object-fit: contain; }
.case-card:hover .media img { transform: scale(1.03); }
.case-card.with-thumb .body { padding: 18px 20px 20px; }
.cases.thumbs { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.cases.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-group + .case-group { margin-top: 72px; }
.case-group-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.case-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.more { margin-top: 32px; text-align: center; }
.h-sub { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.inline-link { color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(125, 211, 252, .45); }
.inline-link:hover { text-decoration-color: currentColor; }

/* Las cuatro líneas */
.lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.line-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); transition: transform var(--t), border-color var(--t), background var(--t); }
.line-card:hover { transform: translateY(-4px); border-color: rgba(47, 140, 255, .45); background: var(--card-h); }
.line-card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px; background: rgba(47, 140, 255, .12); color: #7dd3fc; border: 1px solid rgba(47, 140, 255, .25); }
.line-card .ico svg { width: 24px; height: 24px; }
.line-card p { font-size: .94rem; color: var(--text-3); flex: 1; }
.line-card .link-arrow { margin-top: 8px; font-size: .92rem; }

/* Los cuatro datos de cada esquema */
.datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px auto 0; max-width: 1240px; }
.dato { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent-2); border-radius: var(--r-md); padding: 18px 20px 20px; }
.dato dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #7dd3fc; }
.dato dd { margin-top: 8px; font-size: .95rem; color: var(--text-2); line-height: 1.55; }
.extra { max-width: 1240px; margin: 16px auto 0; border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 22px 24px; background: rgba(7, 13, 26, .45); }
.extra h3 { font-size: 1rem; margin-bottom: 12px; }
.extra ul, .extra ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; counter-reset: e; }
.extra li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--text-2); line-height: 1.5; }
.extra ul li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.extra ol li { counter-increment: e; }
.extra ol li::before { content: counter(e); position: absolute; left: 0; top: .1em; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .68rem; color: #0b1220; background: #7dd3fc; }

/* Qué necesita tener */
.needs { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 40px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 40px 44px; background: linear-gradient(180deg, rgba(17, 28, 49, .95), rgba(17, 28, 49, .55)); }
.needs .eyebrow { margin-bottom: 12px; }
.needs h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.needs p { font-size: 1.12rem; color: var(--text); max-width: 46em; line-height: 1.55; }
.needs h2 + p { font-size: 1.02rem; color: var(--text-2); }
.needs-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.needs-cta .link-arrow { font-size: .9rem; }

/* Familias de equipos */
.families { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.family { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 24px; }
.family h3 { font-size: 1rem; margin-bottom: 12px; color: #bae6fd; }
.family ul { display: grid; gap: 6px; }
.family li { position: relative; padding-left: 15px; font-size: .9rem; color: var(--text-3); line-height: 1.45; }
.family li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--accent-2); }

/* Documento para descargar */
.doc-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 32px 36px; background: var(--card); }
.doc-band.stack { grid-template-columns: auto minmax(0, 1fr); align-content: start; }
.doc-band.stack .btn { grid-column: 1 / -1; justify-self: start; }
.doc-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(47, 140, 255, .12); color: #7dd3fc; border: 1px solid rgba(47, 140, 255, .25); }
.doc-ico svg { width: 26px; height: 26px; }
.doc-text h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.doc-text h3 { font-size: 1.1rem; }
.doc-text p { margin-top: 6px; font-size: .95rem; color: var(--text-3); }

/* Varios */
.checks.cols { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px 40px; margin: 0 0 48px; }
.section-head + .checks.cols { margin-top: -20px; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-cta { display: flex; flex-direction: column; justify-content: center; gap: 4px; border-style: dashed; border-color: var(--line-2); background: transparent; }
.card-cta .link-arrow { margin-top: 12px; }
.roles .card ul li { font-size: .96rem; color: var(--text-2); }
.form-caso { padding: 12px 16px; border-radius: 10px; background: rgba(47, 140, 255, .1); border: 1px solid rgba(47, 140, 255, .32); color: #bfdbfe; font-size: .92rem; }
.form-caso b { color: #fff; }
.opt { font-weight: 400; color: var(--text-3); }

/* Maqueta 3D (three.js) */
.maqueta {
  position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-xl);
  background: radial-gradient(ellipse 62% 52% at 50% 60%, rgba(47, 140, 255, .2), rgba(47, 140, 255, 0) 72%);
  border: 1px solid var(--line); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.maqueta.dragging { cursor: grabbing; }
.maqueta canvas, .maqueta-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.maqueta-poster { object-fit: contain; transition: opacity .45s ease; }
.maqueta.is-live .maqueta-poster { opacity: 0; }
.maqueta-label {
  position: absolute; left: 0; top: 0; margin: -11px 0 0 10px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-size: .72rem; font-weight: 600; line-height: 1.5; color: #e2e8f0; background: rgba(7, 13, 26, .78); border: 1px solid rgba(125, 211, 252, .45);
  transition: opacity .3s ease; will-change: transform;
}
.maqueta-label::before { content: ""; position: absolute; left: -14px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .25); }
.maqueta-label.left { margin-left: 0; transform-origin: 0 0; translate: calc(-100% - 10px) 0; }
.maqueta-label.left::before { left: auto; right: -14px; }
.maqueta.compact .maqueta-label { font-size: .64rem; padding: 1px 7px; }

/* Inicio: las maquetas 3D van justo bajo la portada */
.hero-home { padding: 124px 0 44px; }
.hero-home .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.2fr); gap: 48px; }
.hero-home h1 { margin: 18px 0 18px; }
.hero-home .hero-actions { margin-top: 26px; }
.hero-home .hero-points { margin-top: 26px; gap: 8px; }
@media (max-width: 1100px) { .hero-home .hero-grid { grid-template-columns: 1fr; gap: 56px; } .hero-home { padding-bottom: 72px; } }
@media (max-width: 640px) { .hero-home { padding-top: 108px; } }
.maqueta-poster[hidden] { display: none; }

/* Configurador 3D: un mismo Zinode en sus distintas configuraciones */
.config-band { padding: 0 0 104px; position: relative; }
.config3d {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr); column-gap: 48px;
  grid-template-areas: ". fig" "head fig" "tabs fig" "info fig" ". fig"; grid-template-rows: 1fr auto auto auto 1fr;
}
.config-head { grid-area: head; }
.config-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); margin-bottom: 24px; text-wrap: balance; }
.config-tabs { grid-area: tabs; display: grid; gap: 10px; }
.config-panels { grid-area: info; }
.config3d > .maqueta { grid-area: fig; }
.config-tab {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(17, 28, 49, .6); color: inherit; font: inherit; cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.config-tab:hover { border-color: rgba(125, 211, 252, .45); }
.config-tab[aria-selected="true"] { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .08); }
.config-k { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1rem; }
.config-k::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid rgba(125, 211, 252, .55); flex: none; transition: background var(--t), box-shadow var(--t); }
.config-tab[aria-selected="true"] .config-k::before { background: #22d3ee; border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }
.config-d { padding-left: 19px; font-size: .86rem; color: var(--text-3); line-height: 1.4; }
.config-info { margin-top: 22px; }
.config-info p { color: var(--text-2); font-size: .98rem; }
.config-info .link-arrow { margin-top: 12px; font-size: .94rem; }
@media (max-width: 1100px) {
  .config3d { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tabs" "fig" "info"; grid-template-rows: none; row-gap: 22px; }
  .config-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .config-info { margin-top: 0; }
  .config-band { padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .config-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .config-tabs::-webkit-scrollbar { display: none; }
  .config-tab { flex: none; width: auto; padding: 10px 14px; }
  .config-d { display: none; }
  .config-head h2 { margin-bottom: 4px; }
}

/* Visor con zoom (esquemas) */
.lightbox-view { border-radius: 10px; }
.lightbox.zoom .lightbox-view { overflow: auto; background: #fff; box-shadow: var(--shadow); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.lightbox.zoom img { max-width: none; max-height: none; border-radius: 0; box-shadow: none; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lightbox.zoom.zoomed img { cursor: zoom-out; }
.lightbox.zoom.zoomed.drag img { cursor: grabbing; }

@media (max-width: 1100px) {
  .cases, .lines, .datos, .families, .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases.thumbs { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
  .cases.three { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
}
@media (max-width: 900px) {
  .needs { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .doc-band { grid-template-columns: auto minmax(0, 1fr); }
  .doc-band > .btn { grid-column: 1 / -1; justify-self: start; }
  .extra ul, .extra ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cases, .lines, .datos, .steps.four { grid-template-columns: 1fr; }
  .families { grid-template-columns: 1fr 1fr; gap: 12px; }
  .family { padding: 18px 16px 20px; }
  .case-card { padding: 18px; }
  .needs { padding: 26px 20px; }
  .needs p { font-size: 1.04rem; }
  .needs-cta .btn { width: 100%; }
  .doc-band { padding: 24px 20px; gap: 16px; }
  .doc-band .btn { width: 100%; white-space: normal; text-align: center; padding: 10px 18px; }
  .doc-ico { width: 46px; height: 46px; }
  .scheme figcaption { font-size: .82rem; text-align: left; }
  .case-group + .case-group { margin-top: 52px; }
}
@media (max-width: 420px) { .families { grid-template-columns: 1fr; } }

/* ─── Menú: compacto entre 1280 y 1560 px, hamburguesa bajo 1280 px ── */
.nav-menu > li > a, .nav-drop > button { white-space: nowrap; }
@media (max-width: 1399px) { .brand-tag { display: none; } }
@media (max-width: 1499px) {
  .navbar-inner { gap: 16px; }
  .nav-menu { gap: 0; }
  .nav-menu > li > a, .nav-drop > button { padding: 9px 10px; font-size: .875rem; }
  .nav-cta { margin-left: 6px; }
}
@media (max-width: 1279px) {
  .nav-menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 20px 24px; background: rgba(7, 13, 26, .98); border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px); overflow-y: auto; display: none; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a, .nav-drop > button { width: 100%; padding: 14px 12px; border-radius: 10px; justify-content: space-between; font-size: 1rem; }
  .drop-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 10px; min-width: 0; display: none; }
  .nav-drop.open .drop-menu { display: block; transform: none; }
  .nav-drop:hover .drop-menu { transform: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
  .menu-toggle { display: inline-flex; }
  .brand-tag { display: block; }
}
@media (max-width: 640px) { .brand-tag { display: none; } }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 860px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; }
  .value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tab-panel { grid-template-columns: 1fr; gap: 28px; }
  .projects { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .split, .split.wide-media, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .steps, .gallery.three { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 84px 0; }
  .feature { padding: 72px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand-tag { display: none; }
  .brand img { height: 34px; }
  .hero { padding: 116px 0 72px; }
  .page-hero { padding: 112px 0 56px; }
  .hero-lead, .page-hero .lead { font-size: 1.04rem; }
  .hero-actions .btn { width: 100%; }
  .hero-visual .phone { width: 30%; right: -2%; bottom: -16%; border-radius: 18px; padding: 4px; }
  .hero-visual .phone img { border-radius: 14px; }
  .frame-bar span { display: none; }
  .values, .grid-3, .grid-2, .grid-4, .steps, .gallery, .gallery.three, .four, .form-row { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: 0; }
  .projects { grid-template-columns: 1fr 1fr; gap: 12px; }
  .project p { display: none; }
  .cta-band { padding: 36px 24px; }
  .cta-band .btn { width: 100%; }
  .form { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
  .tab { flex: none; }
  .section-head { margin-bottom: 40px; }
}
.split.wide-media.reverse { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split.wide-media.reverse { grid-template-columns: 1fr; } }

@media (max-width: 640px) { .hero .lead { font-size: 1.04rem; } }

@media (max-width: 1100px) {
  .arch-flow { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .arch-link { padding: 14px 0; gap: 6px; }
  .arch-link ul { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .arch-arrow { transform: rotate(90deg); width: 44px; height: 16px; margin: 14px 0; }
}
