/* ============================================================
   TOMOS — Sistema visual
   Oscuro · preciso · instrumentación de alta precisión
   ============================================================ */

:root {
  /* --- Color: deep blue-slate --- */
  --bg:            #162233;   /* page background (blue) */
  --bg-1:          #0f1923;   /* card / banner (darker) */
  --bg-2:          #0f1923;   /* card (darker) */
  --bg-3:          #1c2a3a;   /* input / hover lift */

  --line:          rgba(255,255,255,0.08);
  --line-2:        rgba(255,255,255,0.14);

  --fg:            #e9edf3;
  --fg-1:          #aeb6c4;   /* secondary text */
  --fg-2:          #6f7a8c;   /* muted / labels */

  /* --- Accent (overridable by Tweaks) --- */
  --accent:        #ceab3b;
  --accent-bright: #e0c878;
  --accent-dim:    rgba(206,171,59,0.14);
  --accent-line:   rgba(206,171,59,0.45);

  --ok:            #1fd9a8;

  /* --- Type --- */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* --- Layout --- */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --nav-h: 72px;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint instrumentation grid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 10%, transparent 70%);
  opacity: 0.5;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }

section { position: relative; z-index: 1; }

.section-pad { padding-block: clamp(72px, 11vw, 140px); }

.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .idx { color: var(--accent); }
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--accent-line);
  display: inline-block;
}

.h-section { font-size: clamp(30px, 4.4vw, 52px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--fg-1); max-width: 60ch; }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section-head .h-section { margin-top: 18px; }
.section-head .lead { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; transition: all .18s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 0 0 4px var(--accent-dim); }

.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg-1); background: rgba(255,255,255,0.03); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-hub { gap: 8px; }
.btn-hub .hub-lock { width: 15px; height: 15px; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-bright); font-weight: 500; font-size: 15px; }
.link-arrow .arr { transition: transform .2s ease; }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100; display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled { background: rgba(15,25,35,0.85); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { height: 45px; width: auto; display: block; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand .word { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; color: var(--fg-1); padding: 8px 14px; border-radius: var(--r-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  overflow: hidden; font-family: var(--mono); font-size: 12px;
}
.lang button {
  background: transparent; color: var(--fg-2); border: none; padding: 7px 11px;
  letter-spacing: 0.05em; transition: all .15s ease;
}
.lang button.active { background: var(--accent); color: #fff; }
.lang button:not(.active):hover { color: var(--fg); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm); width: 40px; height: 40px; color: var(--fg); align-items: center; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 75% at 22% 52%, var(--bg) 14%, transparent 72%),
    linear-gradient(to top, var(--bg) 1%, transparent 34%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-content { max-width: 880px; }
.hero-tag {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 6.2vw, 80px); line-height: 1.0; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-tag .accent { color: var(--accent-bright); }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 1.6vw, 21px); color: var(--fg-1); max-width: 56ch; }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-readout {
  position: absolute; right: var(--pad); bottom: 40px; z-index: 2;
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-2); letter-spacing: 0.04em;
  text-align: right; line-height: 1.9; display: none;
}
.hero-readout .v { color: var(--accent-bright); }

/* layout variant: split (variant C) */
.hero[data-variant="split"] .hero-content { max-width: 620px; }
.hero[data-variant="center"] { text-align: center; }
.hero[data-variant="center"] .hero-content { max-width: 980px; margin: 0 auto; }
.hero[data-variant="center"] .hero-cta { justify-content: center; }
.hero[data-variant="center"] .hero-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   VALUE PROPS
   ============================================================ */
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.vp-cell { background: var(--bg); padding: clamp(28px, 3.4vw, 44px); }
.vp-cell .ic { width: 40px; height: 40px; color: var(--accent); margin-bottom: 26px; }
.vp-cell h3 { font-size: 23px; margin-bottom: 12px; }
.vp-cell p { color: var(--fg-1); font-size: 16px; }
.vp-cell .num { font-family: var(--mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.18em; display: block; margin-bottom: 22px; }
.vp-sub { margin: clamp(40px, 6vw, 64px) 0 8px; padding-top: 28px; border-top: 1px solid var(--line); }

/* "Lo que Tomos hace posible" — filas editoriales numeradas */
.vp-flow { list-style: none; }
.vp-step {
  display: grid;
  grid-template-columns: minmax(72px, 0.5fr) minmax(220px, 1fr) 1.5fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 40px) 8px;
  border-top: 1px solid var(--line);
  transition: padding-left .25s ease, background .25s ease;
}
.vp-step:last-child { border-bottom: 1px solid var(--line); }
.vp-step:hover { background: linear-gradient(90deg, var(--accent-dim), transparent 70%); padding-left: 20px; }
.vp-step-num {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(28px, 4vw, 46px); line-height: 1;
  color: var(--accent); letter-spacing: -0.02em;
}
.vp-step h3 { font-size: clamp(20px, 2.1vw, 26px); align-self: center; }
.vp-step p { color: var(--fg-1); font-size: 16px; align-self: center; max-width: 52ch; }

/* ============================================================
   SERVICIOS — cards
   ============================================================ */
.serv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.serv-card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px); position: relative; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.serv-card:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--bg-2); }
.serv-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.serv-card h3 { font-size: 25px; margin: 14px 0 12px; }
.serv-card p { color: var(--fg-1); font-size: 16px; margin-bottom: 24px; }
.serv-card .ic { position: absolute; top: 30px; right: 30px; width: 30px; height: 30px; color: var(--fg-2); transition: color .2s; }
.serv-card:hover .ic { color: var(--accent); }

/* Tomos Hub — tarjeta destacada (plataforma central) */
.hub-card {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px);
  margin-top: 18px; padding: clamp(30px, 3.6vw, 48px);
  background:
    radial-gradient(120% 140% at 88% 12%, var(--accent-dim), transparent 58%),
    var(--bg-2);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.hub-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent)); opacity: 0; height: 2px; bottom: auto;
}
.hub-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.hub-main { display: flex; flex-direction: column; align-items: flex-start; }
.hub-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.hub-title { display: flex; align-items: center; gap: 14px; margin: 16px 0 14px; }
.hub-title .hub-ic { width: 38px; height: 38px; color: var(--accent); flex: none; }
.hub-title h3 { font-size: clamp(28px, 3.2vw, 38px); }
.hub-main p { color: var(--fg-1); font-size: 16.5px; max-width: 52ch; margin-bottom: 24px; }

.hub-integrates { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); align-self: center; }
.hub-int-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); display: block; margin-bottom: 16px; }
.hub-integrates ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hub-integrates li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--fg); }
.hub-integrates li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ============================================================
   CÓMO FUNCIONA — 3 steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.step { padding: 32px 28px 32px 0; position: relative; }
.step:not(:last-child) { border-right: 1px solid var(--line); padding-right: 36px; }
.step:not(:first-child) { padding-left: 36px; }
.step .stepnum {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  width: 44px; height: 44px; border: 1px solid var(--accent-line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--fg-1); font-size: 15.5px; }

/* ============================================================
   ESTACIÓN — feature
   ============================================================ */
.station { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.station-spec { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-top: 32px; }
.station-spec li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.station-spec li:last-child { border-bottom: 1px solid var(--line); }
.station-spec .ic { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.station-spec strong { font-weight: 600; display: block; margin-bottom: 3px; font-size: 16px; }
.station-spec span { color: var(--fg-1); font-size: 15px; }
.station-spec .spec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.station-spec .spec-head strong { margin-bottom: 0; }
.station-spec .badge-soon {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 3px 9px; line-height: 1; white-space: nowrap; align-self: center;
}
.station-spec li.soon .ic { opacity: 0.6; }

/* estación — foto en terreno */
.station-photo { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 0; }
.station-photo img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.station-photo .corner { position: absolute; width: 12px; height: 12px; border: 1px solid var(--accent-line); z-index: 2; }
.station-photo .corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.station-photo .corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.station-photo .corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.station-photo .corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }
.station-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-1); padding: 16px 18px;
  background: linear-gradient(to top, rgba(15,25,35,0.92), transparent);
}

/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */
.ph {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.022) 0 12px, transparent 12px 24px),
    var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; aspect-ratio: 4 / 3;
}
.ph .ph-label { font-family: var(--mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.1em; text-align: center; padding: 14px; }
.ph .ph-label b { color: var(--fg-1); display: block; font-weight: 500; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 10.5px; }
.ph .corner { position: absolute; width: 10px; height: 10px; border: 1px solid var(--accent-line); }
.ph .corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.ph .corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.ph .corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.ph .corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* ============================================================
   APLICACIONES
   ============================================================ */
.app-grouphead { margin-bottom: 28px; }
.app-mining { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.app-card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.8vw, 34px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.app-card:hover { border-color: var(--accent-line); background: var(--bg-2); transform: translateY(-3px); }
.app-card .ic { width: 30px; height: 30px; color: var(--accent); margin-bottom: 20px; }
.app-card h3 { font-size: 22px; margin-bottom: 10px; }
.app-card p { color: var(--fg-1); font-size: 15.5px; }

.app-other { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.app-tile {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  min-height: 190px; background: var(--bg-1);
  transition: border-color .2s ease, transform .2s ease;
}
.app-tile:hover { border-color: var(--accent-line); transform: translateY(-3px); }
/* capa de imagen sutil — reemplaza el background por tu foto:
   .app-tile-media { background-image: url('assets/tu-foto.jpg'); } */
.app-tile-media {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px);
  opacity: 0.55;
  transition: opacity .3s ease, transform .4s ease;
}
.app-tile:hover .app-tile-media { opacity: 0.7; transform: scale(1.04); }
.app-tile-media.filled { opacity: 0.72; }
.app-tile:hover .app-tile-media.filled { opacity: 0.85; }
/* velo para legibilidad del texto */
.app-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--bg-1) 8%, rgba(15,25,35,0.55) 48%, rgba(15,25,35,0.25) 100%);
}
.app-tile:has(.filled)::after {
  background: linear-gradient(to top, var(--bg-1) 6%, rgba(15,25,35,0.62) 46%, rgba(15,25,35,0.42) 100%);
}
.app-tile-content {
  position: relative; z-index: 2; height: 100%;
  padding: 22px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.app-tile .chip-idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent); }
.app-tile h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }

/* ============================================================
   POR QUÉ TOMOS — comparison
   ============================================================ */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; background: var(--bg-1); }
.why-card .big { font-family: var(--display); font-size: clamp(34px, 4vw, 46px); color: var(--accent-bright); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.why-card .label { margin-top: 14px; font-weight: 600; font-size: 16px; }
.why-card p { color: var(--fg-1); font-size: 14.5px; margin-top: 8px; }

/* ============================================================
   CLIENTES
   ============================================================ */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.logo-cell { background: var(--bg); aspect-ratio: 16/7; display: flex; align-items: center; justify-content: center; }
.logo-cell span { font-family: var(--mono); font-size: 10.5px; color: var(--fg-2); letter-spacing: 0.12em; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 12px; }
.member .ph { aspect-ratio: 1; border-radius: var(--r); margin-bottom: 16px; }
.member .portrait {
  aspect-ratio: 3 / 4; border-radius: var(--r); margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #f3f4f2;
}
.member .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.member h4 { font-size: 18px; }
.member .role { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; margin-top: 4px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-aside .big-cta { font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.contact-aside .channels { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.channel { display: flex; align-items: center; gap: 14px; color: var(--fg-1); font-size: 15.5px; }
.channel .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.field input, .field textarea, .field select {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--fg); font-family: var(--body); font-size: 15.5px; padding: 13px 14px;
  transition: border-color .15s ease, background .15s ease; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.field.error input, .field.error textarea { border-color: #ff5c5c; }
.field .err { font-size: 12.5px; color: #ff7a7a; display: none; }
.field.error .err { display: block; }
.form .submit-row { grid-column: 1/-1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-success { display: none; align-items: center; gap: 12px; color: var(--ok); font-size: 15px; font-weight: 500; }
.form-success.show { display: flex; }
.form-note { font-size: 13px; color: var(--fg-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--fg-2); font-size: 14px; margin-top: 16px; }
.footer-brand .logo { height: 65px; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 88px); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--fg-1); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.04em; }

/* ============================================================
   reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  /* En móvil, Hub y Contáctanos viven dentro del menú ☰ — liberamos espacio para el botón */
  .nav-right .btn { display: none; }
  .vp-grid, .serv-grid, .steps, .apps, .why, .station, .contact { grid-template-columns: 1fr; }
  .app-mining { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .app-other { grid-template-columns: repeat(3, 1fr); }
  .hub-card { grid-template-columns: 1fr; }
  .hub-integrates { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .vp-step { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .vp-step h3, .vp-step p { align-self: start; }
  .vp-step-num { font-size: 30px; }
  .step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; }
  .step:not(:first-child) { padding-left: 0; }
  .apps { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(3,1fr); }
  .form { grid-template-columns: 1fr; }
  .mobile-menu.open { display: flex; }
}
@media (max-width: 560px) {
  .apps, .why, .logos { grid-template-columns: 1fr; }
  .app-other { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  display: inline-flex; align-items: center; gap: 0;
  height: 56px; padding: 0; width: 56px;
  background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  overflow: hidden; white-space: nowrap;
  transition: width .32s cubic-bezier(.22,.61,.27,1), padding .32s cubic-bezier(.22,.61,.27,1), border-color .2s ease, background .2s ease;
}
.wa-fab .wa-icon {
  flex: none; width: 56px; height: 56px;
  display: grid; place-items: center; color: #25d366;
}
.wa-fab .wa-icon svg { width: 28px; height: 28px; }
.wa-fab .wa-label {
  font-family: var(--body); font-weight: 500; font-size: 15px;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .24s ease .04s, transform .24s ease .04s;
  padding-right: 4px;
}
.wa-fab:hover, .wa-fab:focus-visible {
  width: 192px; padding-right: 22px;
  border-color: #25d366; background: var(--bg-3); outline: none;
}
.wa-fab:hover .wa-label, .wa-fab:focus-visible .wa-label { opacity: 1; transform: none; }
/* gentle attention pulse on the ring */
.wa-fab::after {
  content: ""; position: absolute; left: 8px; top: 8px; width: 40px; height: 40px;
  border-radius: 999px; border: 1.5px solid #25d366; opacity: 0;
  animation: wa-pulse 3.4s ease-out infinite; pointer-events: none;
}
.wa-fab:hover::after { animation: none; }
@keyframes wa-pulse {
  0% { transform: scale(0.7); opacity: 0.5; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab::after { animation: none; } }
@media (max-width: 560px) {
  .wa-fab { right: 16px; bottom: 16px; }
}

/* mobile menu */
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 99; background: var(--bg); flex-direction: column; padding: 24px var(--pad); gap: 4px; }
.mobile-menu a { font-family: var(--display); font-size: 28px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   SERVICE DRAWER
   ============================================================ */
.serv-card[data-drawer] { cursor: pointer; }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 7, 11, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .32s ease, visibility .32s ease;
  display: flex; justify-content: flex-end;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
  position: relative;
  width: min(640px, 100%);
  height: 100%;
  background: var(--bg-1);
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px rgba(0,0,0,0.5);
  transform: translateX(40px);
  opacity: 0;
  transition: transform .36s cubic-bezier(.22,.61,.27,1), opacity .36s ease;
  outline: none;
  display: flex; flex-direction: column;
}
.drawer-backdrop.open .drawer { transform: translateX(0); opacity: 1; }

.drawer-close {
  position: absolute; top: 20px; right: 20px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-3); color: var(--fg-1);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 8px 12px; transition: all .15s ease;
}
.drawer-close:hover { color: var(--fg); border-color: var(--fg-1); background: var(--bg-2); }
.drawer-close svg { width: 16px; height: 16px; }
.drawer-close-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }

.drawer-scroll { overflow-y: auto; height: 100%; padding: clamp(32px, 5vw, 56px); padding-top: 76px; }
.drawer-scroll::-webkit-scrollbar { width: 8px; }
.drawer-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

.drawer-head .drawer-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.drawer-title { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 0; line-height: 1.06; }
.drawer-lead { color: var(--accent-bright); font-size: 18px; margin-top: 16px; font-weight: 500; line-height: 1.45; }

.drawer-media { margin: 32px 0; position: relative; }
.drawer-media .ph { aspect-ratio: 16 / 9; }
.drawer-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); display: none; }

.drawer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 34px; }
.drawer-stat { background: var(--bg-2); padding: 20px 18px; }
.drawer-stat .v { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--accent-bright); letter-spacing: -0.02em; line-height: 1; }
.drawer-stat .k { font-size: 12.5px; color: var(--fg-1); margin-top: 8px; line-height: 1.3; }

.drawer-body { display: flex; flex-direction: column; gap: 18px; }
.drawer-p { color: var(--fg-1); font-size: 16px; line-height: 1.65; }
.drawer-p-lead { color: var(--fg); font-size: 18px; }

.drawer-cta { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.drawer-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 560px) {
  .drawer-stats { grid-template-columns: 1fr; }
  .drawer-close-label { display: none; }
}
