:root {
  --color-bg: #060a12;
  --color-bg-elevated: #0c1220;
  --color-surface: #111827;
  --color-surface-hover: #1a2332;
  --color-border: rgba(148, 163, 184, 0.14);
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-primary-light: #38bdf8;
  --color-indigo: #6366f1;
  --color-accent: #22d3ee;
  --color-success: #34d399;
  --color-danger: #f87171;
  --gradient-brand: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --gradient-soft: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, transparent 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 80px rgba(14, 165, 233, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
.container { width: min(1140px, 92vw); margin-inline: auto; }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 10, 18, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; }
.logo-img { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links > li > a:not(.btn) {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.nav-links > li > a:not(.btn):hover,
.nav-links > li > a.is-active { color: var(--color-text); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  padding: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.nav-dropdown-menu a:hover { background: var(--color-surface-hover); color: var(--color-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 22px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-surface); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* Page hero */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--color-border);
}
.page-hero--large { padding: 5rem 0 4rem; }
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.page-hero-content { max-width: 560px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero-lead { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 1.75rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--color-primary-light); }
.breadcrumb span { opacity: 0.5; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.badge-dot { width: 8px; height: 8px; background: var(--color-success); border-radius: 50%; }

/* Media & placeholders */
.media-frame {
  position: relative;
  aspect-ratio: var(--ratio, 16/9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  box-shadow: var(--shadow-md);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .visual-scene {
  position: absolute;
  inset: 0;
}
.media-frame--wide { --ratio: 21/9; }
.media-frame--square { --ratio: 1/1; }
.media-frame--portrait { --ratio: 4/5; }

/* Visual mockups (mientras no hay imagen real) */
.visual-scene {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14, 165, 233, 0.1), transparent),
    linear-gradient(160deg, #0a101c 0%, #0d1525 50%, #0a0f18 100%);
}

.visual-mockup { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.visual-mockup--hero { padding: 0.5rem; }
.visual-mockup--hero .mockup-window { width: 100%; max-width: 100%; }

.mockup-window {
  width: 100%;
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(14, 165, 233, 0.06);
}
.mockup-window--hero { font-size: 0.92rem; }

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid var(--color-border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mockup-dot--r { background: #ef4444; }
.mockup-dot--y { background: #eab308; }
.mockup-dot--g { background: #22c55e; }
.mockup-title {
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-body {
  padding: 0.85rem 1rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
}

.mockup-line { margin-bottom: 0.25rem; }
.mockup-line--muted { color: var(--color-text-muted); }
.mockup-line--ok { color: var(--color-success); }
.mockup-line--accent { color: var(--color-accent); margin-top: 0.65rem; }
.mockup-prompt { color: var(--color-primary-light); margin-right: 0.35rem; }

.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  margin: 0.75rem 0;
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}
.mockup-bars span {
  flex: 1;
  height: var(--h);
  background: var(--gradient-brand);
  border-radius: 4px 4px 0 0;
  opacity: 0.88;
  animation: mockupBarGrow 1.2s ease-out backwards;
}
.mockup-bars span:nth-child(2) { animation-delay: 0.08s; }
.mockup-bars span:nth-child(3) { animation-delay: 0.16s; }
.mockup-bars span:nth-child(4) { animation-delay: 0.24s; }
.mockup-bars span:nth-child(5) { animation-delay: 0.32s; }
.mockup-bars span:nth-child(6) { animation-delay: 0.4s; }
.mockup-bars span:nth-child(7) { animation-delay: 0.48s; }

@keyframes mockupBarGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.mockup-float {
  position: absolute;
  padding: 0.55rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  font-size: 0.65rem;
  animation: mockupFloat 4s ease-in-out infinite;
}
.mockup-float strong { display: block; font-size: 1.1rem; font-family: var(--font); color: var(--color-primary-light); line-height: 1.2; }
.mockup-float span:last-child { color: var(--color-text-muted); font-size: 0.6rem; }
.mockup-float-label { display: block; font-family: var(--font-mono); color: var(--color-accent); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; }
.mockup-float--1 { top: 8%; right: 4%; animation-delay: 0s; }
.mockup-float--2 { bottom: 12%; left: 4%; animation-delay: 1.5s; }

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mockup-grid { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.mockup-grid--2x2 { grid-template-columns: 1fr 1fr; }
.mockup-tile {
  padding: 0.65rem 0.5rem;
  text-align: center;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.mockup-tile span { display: block; font-family: var(--font); font-weight: 700; font-size: 0.78rem; color: var(--color-text); }
.mockup-tile small { font-size: 0.58rem; color: var(--color-text-muted); }
.mockup-tile--active { border-color: rgba(14, 165, 233, 0.45); background: rgba(14, 165, 233, 0.08); }

.mockup-stat-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
}
.mockup-stat-row > div { flex: 1; }
.mockup-stat-row small { display: block; font-size: 0.58rem; color: var(--color-text-muted); margin-bottom: 0.15rem; }
.mockup-stat-row strong { font-family: var(--font); font-size: 0.95rem; color: var(--color-primary-light); }

.mockup-kpi-row { display: flex; gap: 0.5rem; margin-bottom: 0.65rem; }
.mockup-kpi {
  flex: 1;
  padding: 0.45rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.mockup-kpi small { display: block; font-size: 0.55rem; color: var(--color-text-muted); }
.mockup-kpi strong { font-family: var(--font); font-size: 0.85rem; color: var(--color-text); }
.mockup-kpi--up strong { color: var(--color-success); }

.mockup-legend { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.mockup-legend-item { font-size: 0.58rem; color: var(--color-text-muted); }
.mockup-legend-item::before { content: "■ "; }
.mockup-legend-item--a::before { color: #0ea5e9; }
.mockup-legend-item--b::before { color: #6366f1; }

/* Browser mockup */
.visual-mockup--browser { padding: 0.25rem; }
.mockup-browser {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: rgba(17, 24, 39, 0.98);
  border-bottom: 1px solid var(--color-border);
}
.mockup-url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-text-muted);
}
.mockup-browser-page { padding: 0.85rem; background: #0f172a; }
.mockup-site-nav { height: 8px; width: 55%; background: rgba(148, 163, 184, 0.15); border-radius: 4px; margin-bottom: 1rem; }
.mockup-site-hero { margin-bottom: 1rem; }
.mockup-site-title { height: 14px; width: 70%; background: var(--gradient-brand); border-radius: 4px; margin-bottom: 0.5rem; opacity: 0.85; }
.mockup-site-text { height: 6px; width: 90%; background: rgba(148, 163, 184, 0.12); border-radius: 3px; margin-bottom: 0.35rem; }
.mockup-site-btn { height: 22px; width: 80px; background: rgba(14, 165, 233, 0.35); border-radius: 6px; margin-top: 0.65rem; }
.mockup-site-cards { display: flex; gap: 0.5rem; }
.mockup-site-cards span { flex: 1; height: 48px; background: rgba(148, 163, 184, 0.08); border: 1px solid var(--color-border); border-radius: 8px; }

/* Chat / team */
.mockup-chat { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.75rem; }
.mockup-chat-msg span {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.68rem;
  max-width: 90%;
}
.mockup-chat-msg--in span { background: rgba(148, 163, 184, 0.1); color: var(--color-text-muted); }
.mockup-chat-msg--out { text-align: right; }
.mockup-chat-msg--out span { background: rgba(14, 165, 233, 0.15); color: var(--color-primary-light); }
.mockup-avatars { display: flex; gap: 0.35rem; }
.mockup-avatars span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand);
  border-radius: 50%;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
}
.mockup-avatars span:last-child { background: rgba(148, 163, 184, 0.15); color: var(--color-text-muted); font-size: 0.55rem; }

/* Attendance */
.mockup-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0.65rem; align-items: start; }
.mockup-device {
  text-align: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}
.mockup-device-screen {
  padding: 0.75rem 0.5rem;
  background: #0a1628;
  border-radius: 8px;
  margin-bottom: 0.35rem;
}
.mockup-fingerprint {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.35rem;
  border: 2px solid var(--color-success);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.2), transparent);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}
.mockup-device-screen small { font-size: 0.58rem; color: var(--color-success); }
.mockup-device-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--color-accent); font-weight: 600; }
.mockup-list { display: flex; flex-direction: column; gap: 0.35rem; }
.mockup-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 0.62rem;
}
.mockup-list-item span { color: var(--color-text-muted); }
.mockup-list-item strong { font-family: var(--font); color: var(--color-text); font-size: 0.68rem; }
.mockup-list-item em { font-style: normal; font-size: 0.58rem; }
.mockup-list-item--ok em { color: var(--color-success); }
.mockup-list-item--warn em { color: #fbbf24; }

/* CRM pipeline */
.mockup-pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-bottom: 0.65rem; }
.mockup-pipeline-col small { display: block; font-size: 0.55rem; color: var(--color-text-muted); margin-bottom: 0.35rem; text-transform: uppercase; }
.mockup-card-sm {
  padding: 0.4rem 0.45rem;
  margin-bottom: 0.35rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.62rem;
  color: var(--color-text);
}
.mockup-card-sm--hot { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.06); }
.mockup-card-sm--win { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.06); }

/* ERP table */
.mockup-table { font-size: 0.62rem; margin-bottom: 0.65rem; }
.mockup-table-head,
.mockup-table-row {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 0.6fr;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.mockup-table-head { color: var(--color-text-muted); font-size: 0.55rem; text-transform: uppercase; }
.mockup-badge { text-align: center; padding: 0.15rem 0.35rem; border-radius: 4px; font-size: 0.58rem; }
.mockup-badge--ok { background: rgba(52, 211, 153, 0.15); color: var(--color-success); }
.mockup-badge--warn { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.mockup-qr-row { display: flex; align-items: center; gap: 0.45rem; }
.mockup-qr {
  width: 28px;
  height: 28px;
  background:
    linear-gradient(90deg, #fff 2px, transparent 2px) 0 0 / 8px 8px,
    linear-gradient(#fff 2px, transparent 2px) 0 0 / 8px 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  opacity: 0.85;
}
.mockup-qr-row small { font-size: 0.58rem; color: var(--color-text-muted); }

/* MEDAPP */
.mockup-calendar,
.mockup-record {
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.mockup-cal-header,
.mockup-record-head {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: 0.45rem;
}
.mockup-cal-slot {
  padding: 0.3rem 0.4rem;
  margin-bottom: 0.3rem;
  border-radius: 5px;
  font-size: 0.58rem;
  color: var(--color-text-muted);
  background: rgba(148, 163, 184, 0.06);
}
.mockup-cal-slot--busy { background: rgba(14, 165, 233, 0.12); color: var(--color-text); border-left: 2px solid var(--color-primary); }
.mockup-record-line { height: 5px; background: rgba(148, 163, 184, 0.12); border-radius: 3px; margin-bottom: 0.35rem; }
.mockup-record-line--short { width: 65%; }
.mockup-rx {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: rgba(52, 211, 153, 0.12);
  color: var(--color-success);
  border-radius: 5px;
  font-size: 0.58rem;
  font-weight: 600;
}

/* Design wireframe */
.mockup-wireframe { margin-bottom: 0.65rem; }
.mockup-wf-block { background: rgba(148, 163, 184, 0.1); border-radius: 6px; margin-bottom: 0.45rem; border: 1px dashed rgba(148, 163, 184, 0.2); }
.mockup-wf-block--nav { height: 12px; width: 100%; }
.mockup-wf-block--hero { height: 52px; }
.mockup-wf-row { display: flex; gap: 0.35rem; }
.mockup-wf-row span { flex: 1; height: 36px; background: rgba(148, 163, 184, 0.08); border-radius: 6px; border: 1px dashed rgba(148, 163, 184, 0.15); }
.mockup-palette { display: flex; gap: 0.45rem; }
.mockup-palette span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); }

/* Shop */
.mockup-shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.mockup-shop-item { padding: 0.35rem; background: rgba(0, 0, 0, 0.2); border-radius: 8px; }
.mockup-shop-img { height: 40px; background: rgba(148, 163, 184, 0.1); border-radius: 6px; margin-bottom: 0.35rem; }
.mockup-shop-line { height: 5px; width: 80%; background: rgba(148, 163, 184, 0.12); border-radius: 3px; margin-bottom: 0.25rem; }
.mockup-shop-price { height: 8px; width: 40%; background: rgba(14, 165, 233, 0.35); border-radius: 3px; }

/* ETL flow */
.visual-mockup--etl { flex-direction: column; gap: 0.65rem; padding: 0.25rem; }
.mockup-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  flex-wrap: wrap;
}
.mockup-flow-node {
  padding: 0.45rem 0.65rem;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  min-width: 64px;
}
.mockup-flow-node span { display: block; font-family: var(--font); font-weight: 700; font-size: 0.72rem; }
.mockup-flow-node small { font-size: 0.55rem; color: var(--color-text-muted); }
.mockup-flow-node--accent { border-color: rgba(14, 165, 233, 0.45); background: rgba(14, 165, 233, 0.08); }
.mockup-flow-arrow { color: var(--color-accent); font-size: 0.85rem; }
.visual-mockup--etl .mockup-window { width: 100%; }

/* SAP alert */
.mockup-alert {
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font-size: 0.62rem;
  margin-bottom: 0.55rem;
  font-family: var(--font);
}
.mockup-alert--warn { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }

/* POS */
.mockup-split--pos { grid-template-columns: 1fr 1fr; }
.mockup-order-item {
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.3rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 0.6rem;
}
.mockup-order-item span { display: block; color: var(--color-text-muted); font-size: 0.55rem; }
.mockup-order-item strong { font-family: var(--font); color: var(--color-text); font-size: 0.68rem; }
.mockup-order-item--new { border-left: 2px solid var(--color-accent); }
.mockup-kitchen { padding: 0.45rem; background: rgba(99, 102, 241, 0.08); border-radius: 8px; border: 1px solid rgba(99, 102, 241, 0.2); }
.mockup-kitchen-title { font-size: 0.58rem; color: var(--color-indigo); font-weight: 600; margin-bottom: 0.4rem; text-transform: uppercase; }
.mockup-kitchen-ticket { padding: 0.35rem; margin-bottom: 0.3rem; background: rgba(0, 0, 0, 0.3); border-radius: 5px; font-size: 0.6rem; color: var(--color-text-muted); }
.mockup-kitchen-ticket--ready { color: var(--color-success); border: 1px solid rgba(52, 211, 153, 0.25); }

/* Maintenance */
.mockup-machine-list { display: flex; flex-direction: column; gap: 0.35rem; }
.mockup-machine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.55rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 0.62rem;
  border-left: 3px solid transparent;
}
.mockup-machine span { font-family: var(--font); font-weight: 600; color: var(--color-text); }
.mockup-machine em { font-style: normal; color: var(--color-text-muted); font-size: 0.58rem; }
.mockup-machine--ok { border-left-color: var(--color-success); }
.mockup-machine--warn { border-left-color: #fbbf24; }

/* ISO progress */
.mockup-progress-list { display: flex; flex-direction: column; gap: 0.55rem; }
.mockup-progress span { display: block; font-family: var(--font); font-size: 0.65rem; margin-bottom: 0.3rem; color: var(--color-text); }
.mockup-progress-bar { height: 6px; background: rgba(0, 0, 0, 0.35); border-radius: 999px; overflow: hidden; }
.mockup-progress-bar span { display: block; height: 100%; background: var(--gradient-brand); border-radius: 999px; }

/* Logistics route */
.mockup-route {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mockup-route-point {
  padding: 0.4rem 0.55rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
  font-size: 0.6rem;
}
.mockup-route-point span { display: block; font-family: var(--font); font-weight: 600; color: var(--color-text); }
.mockup-route-point small { font-size: 0.55rem; color: #fbbf24; }
.mockup-route-point--start { border-color: rgba(14, 165, 233, 0.35); }
.mockup-route-point--mid { border-color: rgba(251, 191, 36, 0.35); animation: mockupPulse 2s infinite; }
.mockup-route-point--end { border-color: rgba(52, 211, 153, 0.35); }
.mockup-route-line { width: 24px; height: 2px; background: var(--gradient-brand); border-radius: 2px; }
.mockup-route-line--dashed { background: repeating-linear-gradient(90deg, var(--color-accent) 0 6px, transparent 6px 10px); height: 2px; }

@keyframes mockupPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@media (max-width: 640px) {
  .visual-scene { padding: 0.65rem; }
  .mockup-body { padding: 0.65rem 0.75rem 0.85rem; font-size: 0.65rem; }
  .mockup-float { display: none; }
  .mockup-split { grid-template-columns: 1fr; }
  .mockup-pipeline { grid-template-columns: 1fr; }
}


/* Sections */
.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-elevated); border-block: 1px solid var(--color-border); }
.section-header { margin-bottom: 3rem; max-width: 680px; }
.section-header--center { text-align: center; margin-inline: auto; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
}
.section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.section-desc { color: var(--color-text-muted); font-size: 1.05rem; }

/* Home service blocks */
.service-blocks { display: flex; flex-direction: column; gap: 5rem; }
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.service-block--reverse .service-block-content { order: 2; }
.service-block--reverse .service-block-media { order: 1; }
.service-block-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.service-block-content p { color: var(--color-text-muted); margin-bottom: 1.25rem; }
.feature-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(14, 165, 233, 0.35); transform: translateY(-3px); }
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(14, 165, 233, 0.12);
  border-radius: 10px;
  color: var(--color-primary-light);
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.92rem; color: var(--color-text-muted); }

/* Split feature (internal pages) */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.feature-split:last-child { border-bottom: none; }
.feature-split--reverse .feature-split-text { order: 2; }
.feature-split--reverse .feature-split-media { order: 1; }
.feature-split-text h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature-split-text p { color: var(--color-text-muted); margin-bottom: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.tag-list span {
  padding: 0.25rem 0.7rem;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.stat-item { text-align: center; padding: 0.5rem; }
.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item span { font-size: 0.85rem; color: var(--color-text-muted); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.portfolio-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.portfolio-item:hover { border-color: rgba(14, 165, 233, 0.35); transform: translateY(-4px); }
.portfolio-item .media-frame { border: none; border-radius: 0; box-shadow: none; }
.portfolio-body { padding: 1.5rem; }
.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.portfolio-meta span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-primary-light);
  border-radius: 999px;
}
.portfolio-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.portfolio-body p { font-size: 0.92rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.portfolio-details { font-size: 0.85rem; color: var(--color-text-muted); }
.portfolio-details li { padding: 0.25rem 0; padding-left: 1rem; position: relative; }
.portfolio-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.process-step {
  padding: 1.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.step-num { display: block; font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-accent); margin-bottom: 0.75rem; }
.process-step h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.process-step p { font-size: 0.88rem; color: var(--color-text-muted); }

/* Tech */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }
.tech-grid span {
  padding: 0.55rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-details li { display: flex; align-items: center; gap: 0.75rem; color: var(--color-text-muted); }
.contact-details svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; }
.contact-details a:hover { color: var(--color-primary-light); }

.contact-form-card {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); }
.form-row input,
.form-row textarea,
.form-row select {
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: none; border-color: var(--color-primary); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-alert.is-visible { display: block; }
.form-alert--success { background: rgba(52, 211, 153, 0.12); color: var(--color-success); border: 1px solid rgba(52, 211, 153, 0.25); }
.form-alert--error { background: rgba(248, 113, 113, 0.12); color: var(--color-danger); border: 1px solid rgba(248, 113, 113, 0.25); }

/* CTA banner */
.cta-banner {
  padding: 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-lg);
}
.cta-banner h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-banner p { color: var(--color-text-muted); margin-bottom: 1.5rem; max-width: 520px; margin-inline: auto; }

/* Legal */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.legal-content p,
.legal-content li { color: var(--color-text-muted); margin-bottom: 0.75rem; }
.legal-content ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }

/* Footer */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--color-border); background: var(--color-bg-elevated); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-tagline { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.75rem; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 1rem; color: var(--color-text); }
.footer-col a { font-size: 0.88rem; color: var(--color-text-muted); display: block; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--color-primary-light); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--color-border); text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--color-text-muted); opacity: 0.8; }

/* Responsive */
@media (max-width: 960px) {
  .page-hero-inner,
  .service-block,
  .feature-split,
  .contact-layout { grid-template-columns: 1fr; }
  .service-block--reverse .service-block-content,
  .service-block--reverse .service-block-media,
  .feature-split--reverse .feature-split-text,
  .feature-split--reverse .feature-split-media { order: unset; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(6, 10, 18, 0.98);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links > li > a:not(.btn) { display: block; padding: 0.85rem 0; }
  .nav-links .btn { width: 100%; margin-top: 0.5rem; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 1rem;
    margin-top: 0.25rem;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards-grid,
  .stats-strip,
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Honeypot anti-spam — fuera de pantalla, nunca visible para humanos */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Hero pillar quick-links */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.hero-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.hero-pillar-link:hover { color: var(--color-primary-light); }
.hero-pillar-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* WhatsApp floating button */
a[aria-label="Contáctanos por WhatsApp"]:hover {
  transform: scale(1.1);
}
