/* ── BASE OVERRIDES (full-width sections within Django container) ── */
.main-content.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.main-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ── DESIGN TOKENS ── */
:root {
  --bg: #1b1b1b;
  --bg2: #252525;
  --bg3: #232322;
  --cyan: #00E5FF;
  --cyan2: #00B8D4;
  --green: #10B981;
  --red: #EF4444;
  --white: #F5F5F5;
  --muted: rgba(245,245,245,0.45);
  --border: rgba(0,229,255,0.12);
  --border2: rgba(255,255,255,0.07);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── DARK BODY FOR LANDING ── */
body.header-dynamic {
  background: var(--bg) !important;
  color: var(--white);
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Neutralizar resets de Bootstrap para headings y párrafos */
body.header-dynamic h1,
body.header-dynamic h2,
body.header-dynamic h3,
body.header-dynamic h4,
body.header-dynamic h5 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin-top: 0;
  margin-bottom: 0;
}
body.header-dynamic p {
  margin-top: 0;
  margin-bottom: 0;
}

/* ── NOISE OVERLAY (scoped to landing) ── */
body.header-dynamic::before {
  content: '';
  position: fixed; inset: 0; z-index: 9997;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.35;
}

/* ── SCROLLBAR ── */
body.header-dynamic ::-webkit-scrollbar { width: 4px; }
body.header-dynamic ::-webkit-scrollbar-track { background: var(--bg); }
body.header-dynamic ::-webkit-scrollbar-thumb { background: var(--cyan2); border-radius: 2px; }

/* ── DARK HEADER OVERRIDES ── */

/* Ocultar el indicador de estado en páginas que no son landing */
.nav-system-status { display: none; }

body.header-dynamic .main-header {
  background-color: rgba(18, 18, 18, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  height: 76px;
  display: flex;
  align-items: center;
}
body.header-dynamic .main-header.scrolled {
  background-color: rgba(18, 18, 18, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Alinear el container del header con el resto del landing */
body.header-dynamic .main-header .container {
  max-width: min(1280px, 100%);
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
  width: 100%;
}
body.header-dynamic .main-header .navbar {
  min-height: 76px !important;
  height: 76px;
  justify-content: flex-start !important;
}
/* Nav links grouped to the right, just before the CTA button */
body.header-dynamic .main-header .nav-links {
  margin-left: auto !important;
  margin-right: 28px !important;
}

/* Logo */
body.header-dynamic .main-header .logo {
  height: 52px;
  filter: brightness(0) invert(1);
}

/* Indicador "SISTEMA ACTIVO" */
body.header-dynamic .main-header .nav-system-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--green);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
body.header-dynamic .main-header .nav-system-status::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Nav links — siempre en fila horizontal, sin dropdown */
body.header-dynamic .main-header .nav-links {
  display: flex !important;
  position: static !important;
  flex-direction: row !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 32px !important;
  align-items: center;
}
body.header-dynamic .main-header .nav-links li {
  margin: 0;
}
/* Login solo visible en el dropdown móvil, nunca en la barra de escritorio */
body.header-dynamic .main-header .nav-links .nav-login-mobile {
  display: none;
}
body.header-dynamic .main-header .nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
}
body.header-dynamic .main-header .nav-links a:hover {
  color: var(--white);
}
body.header-dynamic .main-header .nav-links a::after {
  background-color: var(--cyan);
}

/* Botón CTA (Iniciar Sesión) — siempre visible, sin Bootstrap d-none */
body.header-dynamic .main-header .btn.btn-secondary {
  display: inline-flex !important;
  background: var(--cyan) !important;
  color: #0a0a0a !important;
  border: none !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
body.header-dynamic .main-header .btn.btn-secondary:hover {
  background: var(--cyan2) !important;
  transform: translateY(-1px);
}

/* Hamburger — oculto en landing (nav siempre visible) */
body.header-dynamic .main-header .nav-toggle {
  display: none !important;
}

/* ── RESPONSIVE DEL HEADER ── */

/* Tablet landscape: ≤900px — colapsar nav links de texto */
@media (max-width: 900px) {
  body.header-dynamic .main-header .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  body.header-dynamic .main-header .nav-system-status {
    display: none;
  }
  body.header-dynamic .main-header .nav-links li:not(:last-child) {
    display: none;
  }
  body.header-dynamic .main-header .nav-links {
    gap: 0 !important;
  }
}

/* Móvil: ≤600px — mostrar hamburger, ocultar nav y botón CTA */
@media (max-width: 600px) {
  body.header-dynamic .main-header {
    height: 60px;
  }
  body.header-dynamic .main-header .navbar {
    min-height: 60px !important;
    height: 60px;
    justify-content: space-between !important;
  }
  body.header-dynamic .main-header .logo {
    height: 40px;
  }
  body.header-dynamic .main-header .nav-links {
    display: none !important;
  }
  body.header-dynamic .main-header .btn.btn-secondary {
    display: none !important;
  }
  /* Hamburger: integrado al dark navbar, sin borde ni fondo visible */
  body.header-dynamic .main-header .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    color: var(--white) !important;
    padding: 0.35rem !important;
    border-radius: 6px !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    transition: background 0.2s !important;
    box-shadow: none !important;
  }
  body.header-dynamic .main-header .nav-toggle:hover,
  body.header-dynamic .main-header .nav-toggle:focus {
    background: rgba(255,255,255,0.08) !important;
    outline: none !important;
  }
  /* Menú desplegado cuando el toggle está activo */
  body.header-dynamic.nav-open .main-header .nav-links {
    display: flex !important;
    position: absolute !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    background: #0c0d0f !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding: 1rem 1.5rem !important;
    gap: 0 !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5) !important;
    z-index: 999;
  }
  body.header-dynamic.nav-open .main-header .nav-links li {
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  body.header-dynamic.nav-open .main-header .nav-links li:last-child {
    border-bottom: none;
  }
  body.header-dynamic.nav-open .main-header .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem !important;
    color: rgba(255,255,255,0.75) !important;
  }
  body.header-dynamic.nav-open .main-header .nav-links a:hover {
    color: var(--white) !important;
  }
  /* Login dentro del dropdown: visualmente destacado como CTA */
  body.header-dynamic.nav-open .main-header .nav-links .nav-login-mobile {
    display: block !important;
    border-bottom: none !important;
    padding-top: 0.5rem;
  }
  body.header-dynamic.nav-open .main-header .nav-links .nav-login-mobile a {
    color: var(--cyan) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
  }
  body.header-dynamic.nav-open .main-header .nav-links .nav-login-mobile a:hover {
    color: #fff !important;
  }
}

/* Desktop grande: 1400px+ */
@media (min-width: 1400px) {
  body.header-dynamic .main-header .container {
    max-width: 1440px;
  }
}
@media (min-width: 1800px) {
  body.header-dynamic .main-header .container {
    max-width: 1600px;
  }
}

/* ── SHARED SECTION STYLES ── */
html { scroll-behavior: smooth; }

body.header-dynamic section {
  padding: clamp(80px, 8vw, 120px) clamp(24px, 5vw, 64px);
}

.section-label {
  display: inline-block;
  font-size: 12px; font-family: var(--font-mono);
  color: var(--cyan); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 3.8vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--white);
}
.section-sub {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--muted);
  line-height: 1.7; max-width: 520px;
  font-weight: 300;
}
.max-w { max-width: min(1280px, 100%); margin: 0 auto; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700;
  padding: 15px 36px; border-radius: 4px;
  background: var(--cyan); color: #0a0a0a;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  display: inline-block;
}
.btn-primary:hover { background: var(--cyan2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,255,0.25); color: #0a0a0a; }
.btn-ghost {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 500;
  padding: 15px 30px; border-radius: 4px;
  background: transparent; color: var(--white);
  border: 1px solid var(--border2); cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 5vw, 48px) clamp(48px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
  top: -100px; left: -200px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px; font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
body.header-dynamic h1.hero-h1 {
  font-family: var(--font-head) !important;
  font-size: clamp(56px, 8vw, 100px) !important;
  font-weight: 900 !important;
  line-height: 1.0 !important;
  letter-spacing: -2px !important;
  color: var(--white) !important;
  margin-bottom: 24px;
}
body.header-dynamic h1.hero-h1 .line-cyan { color: var(--cyan); }
.typing-cursor {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--cyan);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-sub {
  font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65;
  color: var(--muted); font-weight: 300;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--white); font-weight: 500; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ── DASHBOARD MOCKUP ── */
.dashboard-mockup {
  background: var(--bg2);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.08);
}
.dash-header {
  background: #1f1f1f;
  border-bottom: 1px solid var(--border2);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-header-left { display: flex; align-items: center; gap: 10px; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dash-title { font-size: 11px; font-family: var(--font-mono); color: var(--muted); letter-spacing: 0.5px; }
.dash-ts { font-size: 10px; font-family: var(--font-mono); color: var(--cyan); opacity: 0.7; }
.dash-body { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-card {
  background: #1f1f1f;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 14px;
  position: relative; overflow: hidden;
}
.metric-card.alert-active {
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.05);
}
.metric-card.alert-active::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--red);
  animation: alert-bar 1s ease-in-out infinite alternate;
}
@keyframes alert-bar { from {opacity:0.6} to {opacity:1} }
.metric-label {
  font-size: 9px; font-family: var(--font-mono);
  color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.metric-badge { font-size: 8px; padding: 2px 6px; border-radius: 3px; font-weight: 600; letter-spacing: 0.5px; }
.badge-ok { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-alert { background: rgba(239,68,68,0.15); color: var(--red); animation: blink 1s step-end infinite; }
.metric-value { font-family: var(--font-head); font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.metric-unit { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 3px; }
.metric-chart { margin-top: 8px; height: 36px; }
.spark { width: 100% !important; height: 36px !important; }
.dash-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border2);
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
}
.signal-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; font-family: var(--font-mono); color: var(--muted);
}
.signal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.signal-dot.off { background: var(--red); box-shadow: 0 0 5px var(--red); }

/* ── TICKER ── */
.ticker {
  background: #111;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5px 0; overflow: hidden; /* Adelgazado */
}
.ticker-inner {
  display: flex;
  align-items: center;
  width: max-content;
}
.ticker-group {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  animation: ticker-scroll 20s linear infinite; /* Animación más rápida, por grupo */
  will-change: transform;
}
.ticker-item {
  display: flex;
  align-items: baseline; /* align val and sep to same baseline */
  gap: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  flex-shrink: 0;
  padding-right: 48px;
}
.ticker-val {
  font-weight: 500;
  font-size: 12px;
  line-height: normal;
}
.ticker-val.ok     { color: var(--green); }
.ticker-val.alert  { color: var(--red); }
.ticker-val.neutral{ color: rgba(245,245,245,0.7); }
.ticker-sep {
  color: rgba(0,229,255,0.2);
  font-size: 11px;
  line-height: normal;
  position: relative;
  top: -1px; /* tiny optical adjustment for the dot */
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── FEATURES ── */
#features {
  background: var(--bg3);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
}
.features-header { margin-bottom: 56px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.widget-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
  position: relative; overflow: hidden;
}
.widget-card:hover {
  border-color: rgba(0,229,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.widget-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.widget-card:hover::before { opacity: 1; }
.widget-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.widget-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.widget-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-family: var(--font-mono);
  padding: 3px 8px; border-radius: 3px;
}
.ws-ok { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.ws-alert { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); animation: blink 1.2s step-end infinite; }
.ws-ok::before, .ws-alert::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.ws-ok::before { background: var(--green); }
.ws-alert::before { background: var(--red); }
.widget-name { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 4px; color: var(--white); }
.widget-desc { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.widget-reading { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.widget-reading .val { font-family: var(--font-head); font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.widget-reading .unit { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.widget-sparkline { height: 60px; margin-top: 10px; }
.widget-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border2);
  font-size: 12px; font-family: var(--font-mono); color: var(--muted);
}

/* ── HOW IT WORKS ── */
#how-it-works { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 60px;
}
.step-arrow { display: flex; align-items: flex-start; padding-top: 48px; color: var(--cyan); opacity: 0.3; font-size: 28px; }
.step {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 40px 32px;
  transition: border-color 0.3s;
}
.step:hover { border-color: rgba(0,229,255,0.25); }
.step-num { font-family: var(--font-head); font-size: 48px; font-weight: 900; color: var(--cyan); opacity: 0.15; line-height: 1; margin-bottom: 12px; letter-spacing: -3px; }
.step-icon-wrap {
  width: 56px; height: 56px; border-radius: 12px;
  border: 1px solid rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.step-title { font-family: var(--font-head); font-size: 21px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.3px; color: var(--white); }
.step-body { font-size: 16px; color: var(--muted); line-height: 1.7; }

/* ── METRICS ── */
#metrics {
  background: var(--bg3);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
}
.metric-block {
  padding: 64px 52px;
  background: var(--bg2);
  display: flex; flex-direction: column; align-items: flex-start;
  position: relative; overflow: hidden;
}
.metric-block::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.5;
}
.metric-big {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 80px);
  font-weight: 900; line-height: 1;
  letter-spacing: clamp(-2px, -0.04em, -3px);
  color: var(--cyan); margin-bottom: 8px;
}
.metric-big .unit-small { font-size: 0.55em; letter-spacing: -1px; opacity: 0.7; }
.metric-name { font-size: 20px; color: var(--white); font-weight: 500; margin-bottom: 6px; font-family: var(--font-head); }

/* ── CTA / CONTACT ── */
#contact { background: var(--bg); border-top: 1px solid var(--border2); }
.cta-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(48px, 6vw, 72px) clamp(40px, 6vw, 72px);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.cta-box > * { min-width: 0; }
.cta-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(0,229,255,0.2), transparent);
  z-index: 2;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
  top: -150px; right: -80px;
  pointer-events: none; z-index: 0;
}
.cta-text { position: relative; z-index: 1; }
.cta-box h2 {
  font-family: var(--font-head) !important;
  font-size: clamp(26px, 2.8vw, 40px) !important;
  font-weight: 900 !important;
  letter-spacing: -1px;
  margin-bottom: 0 !important;
  color: var(--white) !important;
  line-height: 1.15;
}
.cta-sub { font-size: clamp(15px, 1.5vw, 17px); color: var(--muted); line-height: 1.65; font-weight: 300; }

/* Form column → Contact column */
.cta-form-col { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.cta-form-label {
  font-size: 12px; font-family: var(--font-mono);
  color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
}

/* Contact info card */
.cta-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}
.cta-contact-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.cta-contact-info { display: flex; flex-direction: column; gap: 6px; }
.cta-contact-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}
.cta-contact-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Big contact button */
.cta-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cyan);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 18px 32px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
}
.cta-contact-btn:hover {
  background: var(--cyan2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.35);
  color: #0a0a0a;
}

.cta-note { font-size: 13px; color: var(--muted); font-family: var(--font-mono); line-height: 1.6; }

/* Trust badges (left column) */
.cta-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-family: var(--font-mono);
  color: var(--muted);
  background: rgba(0,229,255,0.05);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 6px 13px;
}
.cta-badge::before { content: '✓'; color: var(--green); font-size: 11px; }

/* Social proof row */
.cta-social-proof {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
}
.csp-avatars { display: flex; }
.csp-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg2), var(--cyan2));
  border: 2px solid var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--white);
  font-family: var(--font-head);
  margin-left: -8px;
}
.csp-av:first-child { margin-left: 0; }
.csp-text {
  font-size: 12px; font-family: var(--font-mono);
  color: var(--muted); line-height: 1.4;
}

/* ── FOOTER OVERRIDES ── */
body.header-dynamic .main-footer {
  padding: 1.25rem clamp(20px, 5vw, 48px) !important;
}
body.header-dynamic .main-footer .container {
  max-width: min(1280px, 100%);
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

/* ═══════════════════════════════════
   RESPONSIVE — BREAKPOINTS COMPLETOS
   ════════════════════════════════════
   1600px+ : Large desktop
   1280px  : Tablet landscape
    900px  : Tablet portrait
    768px  : Tablet pequeño / móvil grande
    600px  : Móvil estandar
    400px  : Móvil pequeño
═══════════════════════════════════ */

/* ── 1600px+ : Large desktop ── */
@media (min-width: 1600px) {
  .max-w { max-width: 1520px; }
  .hero-inner { max-width: 1520px; }
  body.header-dynamic h1.hero-h1 { font-size: clamp(72px, 5vw, 96px) !important; }
  .hero-sub { font-size: 20px; }
  .section-title { font-size: clamp(52px, 3.8vw, 68px); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .metric-block { padding: 72px 60px; }
  .cta-box { padding: 80px 72px; }
  body.header-dynamic .main-footer .container { max-width: 1520px; }
  body.header-dynamic .main-header .container { max-width: 1520px; }
}

/* ── ≤1280px : Tablet landscape ── */
@media (max-width: 1280px) {
  .hero-inner { gap: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-block { padding: 52px 40px; }
  .steps-grid { gap: 10px; }
  .cta-box { gap: 40px; }
}

/* ── ≤960px : Tablet portrait ── */
@media (max-width: 960px) {
  /* Hero: apilar en columna única */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; text-align: left; }
  .dashboard-mockup { max-width: min(560px, 100%); margin: 0 auto; }

  /* Features 2 col */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Steps en columna */
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-arrow { display: none; }

  /* Metrics 2 col */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-block { padding: 48px 32px; }

  /* CTA: apilar */
  .cta-box { grid-template-columns: 1fr; gap: 36px; padding: 56px 40px; }
  .cta-text { text-align: center; }
  .cta-badges { justify-content: center; }
  .cta-form-col { max-width: 480px; margin: 0 auto; width: 100%; }
  .cta-social-proof { justify-content: center; }
}

/* ── ≤768px : Tablet pequeño / móvil grande ── */
@media (max-width: 768px) {
  body.header-dynamic section {
    padding: clamp(60px, 8vw, 90px) clamp(16px, 5vw, 32px);
  }

  /* Hero */
  body.header-dynamic h1.hero-h1 { font-size: clamp(48px, 9vw, 64px) !important; line-height: 1.05 !important; }
  .hero-sub { font-size: clamp(15px, 3vw, 18px); }

  /* Features 1 col */
  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

  /* Steps */
  .step { padding: 32px 24px; }
  .step-title { font-size: 18px; }
  .step-body { font-size: 15px; }

  /* Metrics 2 col → seguir en 2 para tablet */
  .metric-block { padding: 40px 28px; }

  /* CTA */
  .cta-box { padding: 48px 32px; }
  .cta-badge { font-size: 11px; padding: 5px 10px; }

  /* Footer grid : 2 columnas */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ── ≤600px : Móvil estándar ── */
@media (max-width: 600px) {
  body.header-dynamic section {
    padding: clamp(48px, 10vw, 72px) clamp(16px, 5vw, 24px);
  }

  /* Hero */
  body.header-dynamic h1.hero-h1 { font-size: clamp(42px, 11vw, 56px) !important; letter-spacing: -1px !important; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 1px; padding: 4px 10px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; width: 100%; }

  /* Mockup */
  .dashboard-mockup { max-width: 100%; }
  .dash-header { padding: 8px 12px; }
  .dash-title { display: none; }
  .dash-body { padding: 10px; gap: 6px; }
  .metric-card { padding: 10px; }
  .metric-value { font-size: 18px; }

  /* Ticker */
  .ticker-item { font-size: 10px; gap: 6px; padding-right: 24px; }
  .ticker-val, .ticker-sep { font-size: 10px; }

  /* Section titles */
  .section-title { font-size: clamp(28px, 7vw, 40px); letter-spacing: -0.5px; }
  .section-sub { font-size: 15px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; max-width: 100%; }
  .widget-name { font-size: 17px; }
  .widget-reading .val { font-size: 30px; }

  /* Steps */
  .step { padding: 24px 20px; }
  .step-num { font-size: 36px; }
  .step-icon-wrap { width: 44px; height: 44px; font-size: 20px; }
  .step-title { font-size: 17px; }
  .step-body { font-size: 14px; }

  /* Metrics */
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-block { padding: 36px 24px; }
  .metric-big { letter-spacing: -2px; }
  .metric-name { font-size: 16px; }

  /* CTA */
  .cta-box { padding: 40px 20px; grid-template-columns: 1fr; gap: 28px; border-radius: 12px; }
  .cta-box h2 { font-size: clamp(24px, 7vw, 34px) !important; }
  .cta-sub { font-size: 14px; }
  .cta-form { flex-direction: column; }
  .cta-input {
    border-radius: 6px 6px 0 0;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: none;
  }
  .cta-btn { border-radius: 0 0 6px 6px; padding: 15px 20px; font-size: 15px; }
  .cta-note { font-size: 11px; }
  .cta-social-proof { flex-wrap: wrap; gap: 8px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .social-icons { justify-content: center; }
}

/* ── ≤400px : Móvil pequeño ── */
@media (max-width: 400px) {
  body.header-dynamic h1.hero-h1 { font-size: clamp(36px, 10vw, 48px) !important; letter-spacing: -0.5px !important; }
  .hero-sub { font-size: 14px; }
  .section-title { font-size: clamp(24px, 7vw, 34px); }
  .cta-box { padding: 32px 16px; }
  .cta-box h2 { font-size: clamp(22px, 7vw, 30px) !important; }
  .btn-primary, .btn-ghost { font-size: 15px; padding: 13px 20px; }
  .widget-card { padding: 20px 16px; }
  .step { padding: 20px 16px; }
  .metric-block { padding: 28px 18px; }
  .cta-input { font-size: 14px; padding: 14px 16px; }
}
