/* ============================================================
   Yoctovision — Landing page
   Estilo: industrial oscuro, sobrio y minimal.
   Sin dependencias ni frameworks.
   ============================================================ */

:root {
  --bg: #0e1116;
  --bg-alt: #12161d;
  --panel: #161c25;
  --border: #2a3441;
  --border-soft: #1e2530;
  --text: #e9edf2;
  --text-muted: #9aa7b5;
  --text-faint: #67727f;
  --accent: #e08b30;
  --accent-strong: #f29d42;
  --accent-ink: #171006;
  --green: #3ddc84;
  --panel-hover: #1a212c;
  --bg-footer: #0b0e13;
  --accent-soft: rgba(224, 139, 48, 0.08);
  --accent-line: rgba(224, 139, 48, 0.3);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --container: 1120px;
  --radius: 10px;
}

/* Inter alojada en el propio servidor (licencia OFL, ver fonts/LICENSE-Inter.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; }
p { margin: 0; }
ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute;
  top: -52px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container { width: min(var(--container), 92%); margin-inline: auto; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--text-faint); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(14, 17, 22, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 92px;
}
.brand { display: inline-flex; align-items: center; }
.brand-img { height: 68px; width: auto; }
/* El logo es negro sobre transparente: se invierte a blanco sobre fondo oscuro */
.brand-img,
.footer-logo img { filter: invert(1); }

.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-size: 14.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 182px 0 92px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 72% 15%, black, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 75% at 72% 15%, black, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}
/* Antetítulo en su propia fila, a todo el ancho por encima de las dos columnas */
.hero-kicker { position: relative; margin-bottom: 26px; }
.hero-kicker .kicker { margin: 0; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 17.5px;
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero-points { margin-bottom: 36px; }
.hero-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-muted);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--accent);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  justify-self: end;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}
.hero-photo img { width: 100%; height: auto; }

/* Capa de visión sobre la foto: marcos de detección y rótulos de cámara */
.photo-hud { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-hud .hud-corner,
.photo-hud .hud-box {
  fill: none;
  stroke: var(--vp-accent);
}
.photo-hud .hud-corner,
.photo-hud .hud-box {
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.photo-hud .hud-corner { stroke-width: 2; }
/* Detección correcta: marcos y etiquetas "OK" en verde; el encuadre y la línea siguen en el acento */
.photo-hud .hud-box { stroke: var(--vp-ok); }
.photo-hud .hud-box-main { stroke-width: 2.5; fill: var(--vp-ok); fill-opacity: 0.1; }
.photo-hud .hud-s { stop-color: var(--vp-accent); }
/* Sin JS (o con movimiento reducido) los marcos se ven fijos y sin línea.
   Con .hud-live, js/main.js mueve la línea y enciende cada marco a su paso. */
.hud-scan { display: none; }
.hud-live .hud-scan { display: inline; }
.photo-hud .hud-box,
.hud-tag { transition: opacity 0.18s ease-out; }
.hud-live .hud-box:not(.on),
.hud-live .hud-tag:not(.on) { opacity: 0; }
.hud-tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 4px 6px;
  background: var(--vp-ok);
  color: #ffffff;
  font-weight: 600;
}
/* Posiciones en % de la foto (coordenadas de los marcos en el viewBox 1600×1068) */
.hud-tag-main { left: 49.4%; bottom: 29.3%; }
.hud-tag-alt { left: 32.4%; bottom: 36.9%; }

.visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Capa de visión del hero: variables por tema ---------- */
:root {
  --vp-accent: #e08b30;
  --vp-ok: #15803d;
  --vp-ink: var(--accent-ink);
}

/* ---------- Banda de maquinaria (separador) ---------- */
.machine-strip {
  height: 32px;
  background: #1a1a1a url("../assets/machine-strip.jpg") center / cover no-repeat;
}

/* ---------- Secciones ---------- */
section[id] { scroll-margin-top: 84px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }
.section-dark { background: var(--bg-footer); border-block: 1px solid var(--border-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-lead { color: var(--text-muted); font-size: 16.5px; }

/* ---------- Servicios ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover { border-color: var(--border); background: var(--panel-hover); transform: translateY(-3px); }
.card h3 { font-size: 17.5px; margin: 18px 0 10px; }
.card p { color: var(--text-muted); font-size: 14.5px; }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Procesos adaptativos ---------- */
.adapt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; }
.adapt-item { padding-top: 22px; border-top: 2px solid var(--accent); }
.adapt-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.adapt-item h3 { font-size: 17.5px; margin-bottom: 10px; }
.adapt-item p { color: var(--text-muted); font-size: 15px; max-width: 52ch; }

.adapt-figure { margin: 0 0 56px; max-width: 760px; }
.adapt-figure img { width: 100%; height: auto; border-radius: var(--radius); background: #000000; }

/* ---------- Tecnologías ---------- */
.showcase { margin: 0 0 44px; }
.showcase img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #000000;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tech-panel {
  padding: 32px 30px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.tech-panel h3 {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.tech-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.tech-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-cloud li {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* ---------- Aplicaciones ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.app-card h3 { font-size: 16.5px; }
.app-card p { color: var(--text-muted); font-size: 14.5px; flex: 1; }
/* Caso destacado: ocupa toda la fila, con foto a la izquierda */
.app-card.app-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: center;
}
.app-card-wide img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
/* Segundo caso destacado: foto a la derecha */
.app-card.app-card-flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.app-card-flip img { order: 2; }
.app-card-wide .app-card-body { display: flex; flex-direction: column; gap: 12px; }
.app-card-wide h3 { font-size: 19px; }
.app-card-wide p { font-size: 15.5px; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.app-tags li {
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}


/* ---------- Odyssey Robotics (marca de robótica y maquinaria) ---------- */
.odyssey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.odyssey-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.odyssey-copy > p { color: var(--text-muted); font-size: 16px; margin: 18px 0 20px; max-width: 54ch; }
.odyssey-link { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 30px; }
.odyssey-logo { height: 40px; width: auto; }
.odyssey-visual { margin: 0; }
.odyssey-visual img { width: 100%; height: auto; border-radius: var(--radius); background: var(--panel); }
/* El logo de Odyssey es negro: en los temas oscuros se invierte a blanco */
.odyssey-logo { filter: invert(1); }

/* ---------- Empresa ---------- */
.company-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.company-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 18px; }
.company-copy p { color: var(--text-muted); font-size: 16px; margin-bottom: 16px; max-width: 56ch; }
.company-points { margin-top: 8px; }
.company-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text);
}
.company-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--accent);
}
.info-panel {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.info-panel h3 {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
}
.info-list div:last-child { border-bottom: none; }
.info-list dt { color: var(--text-faint); font-size: 13.5px; }
.info-list dd { margin: 0; font-size: 14.5px; text-align: right; }
.info-list a { color: var(--accent); text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-copy > p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; }
/* El antetítulo es un <p>: recupera su color y margen frente a la regla anterior */
.contact-copy > .kicker,
.odyssey-copy > .kicker { color: var(--accent); margin-bottom: 14px; }
.contact-list div {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}
.contact-list dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-list dd { margin: 0; font-size: 15px; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px 30px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.02em; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s, background 0.15s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-muted); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check a { color: var(--accent); }

/* Acuse del formulario (lo pintan js/contacto.js y contacto.py) */
.aviso {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
}
.aviso h2 { font-size: 19px; margin-bottom: 12px; }
.aviso p { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }
.aviso ul { list-style: disc; padding-left: 20px; color: var(--text-muted); margin-bottom: 12px; }
.aviso a:not(.btn) { color: var(--accent); }
.aviso.warn { border-left-color: var(--text); }
.aviso:focus { outline: none; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border-soft); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { margin: 0 0 16px; }
.footer-logo img { height: 28px; width: auto; }
.footer-tag { color: var(--text-faint); font-size: 14px; max-width: 36ch; }
.footer-brand { margin-top: 12px; }
.footer-brand a { color: var(--text-muted); }
.footer-col h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14.5px; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-faint);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Páginas legales ---------- */
.legal { padding: 190px 0 96px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 32px; }
.legal h2 { font-size: 17px; margin: 30px 0 10px; color: var(--text); }
.legal p { color: var(--text-muted); font-size: 15px; max-width: 68ch; margin-bottom: 12px; }
.legal .kicker { color: var(--accent); }
.legal ul { padding-left: 20px; list-style: disc; max-width: 68ch; }
.legal li { color: var(--text-muted); font-size: 15px; margin-bottom: 6px; }
.legal a:not(.btn) { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}
.legal-back:hover { color: var(--text); }
.legal-updated {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px !important;
}

/* ---------- Animación de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-self: start; max-width: 560px; }
  .company-grid, .contact-grid, .odyssey-grid { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 76px 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: rgba(14, 17, 22, 0.98);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 4% 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { display: block; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
  .site-nav .nav-cta { margin-top: 14px; }
  .site-nav .nav-cta a { width: 100%; }
  .cards-grid, .two-col, .apps-grid, .adapt-grid, .app-card.app-card-wide { grid-template-columns: 1fr; }
  .app-card-flip img { order: 0; }
  .legal { padding: 162px 0 76px; }
}
@media (max-width: 560px) {
  .hero { padding: 112px 0 64px; }
  .header-inner { height: 72px; }
  .hero-cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .brand-img { height: 50px; }
  .section { padding: 64px 0; }
  .visual-caption { flex-direction: column; gap: 4px; }
  .hud-tag { font-size: 9px; }
  .hud-tag-alt { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}