/* ============================================================
   LeakNet · Sistema de diseño
   ============================================================ */

:root {
  --orange:        #ff6700;
  --orange-soft:   #ff8a3d;
  --orange-dark:   #d95500;
  --orange-glow:   rgba(255, 103, 0, 0.35);

  --bg:            #0a1024;
  --bg-2:          #0e1730;
  --bg-3:          #16203c;
  --bg-card:       #111a36;
  --bg-card-2:     #15203f;

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

  --text:          #f3f5fb;
  --text-dim:      rgba(243, 245, 251, 0.72);
  --text-muted:    rgba(243, 245, 251, 0.5);
  --text-dark:     #0f172a;
  --text-dark-dim: #5b6478;

  --radius:        14px;
  --radius-sm:     8px;

  --font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:          'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

/* ============================================================
   Base / resets sobre el template
   ============================================================ */
html, body {
  font-family: var(--font) !important;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body { font-family: var(--font); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}

/* Quitar cualquier resaltado tipo cursiva — usamos .hl en su lugar */
.hl {
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
}

em { font-style: normal; }   /* anula italicos del template heredados */

/* ============================================================
   Header / nav (override del template para que respire moderno)
   ============================================================ */
.main-header {
  background-color: rgba(10, 16, 36, 0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}
.main-header.scrolled {
  background-color: rgba(10, 16, 36, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.main-header .logo {
  line-height: 80px;
  padding-left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-header .logo a {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.main-header .logo a .logo-leak { color: var(--orange); }
.main-header .logo a .logo-net  { color: #fff; }
.logo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  line-height: 1;
}

.main-menu li a {
  font-family: var(--font);
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.82) !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.main-menu li a:hover,
.main-menu li.active a {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}
.main-menu { padding-right: 40px; }

/* responsive header */
@media screen and (max-width: 950px) {
  .logo-badge { display: none; }
  .main-header .logo { padding-left: 24px; }
}

/* ============================================================
   Botones reutilizables
   ============================================================ */
.btn-primary-leak,
.btn-outline-leak {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn-primary-leak {
  background: var(--orange);
  color: #fff !important;
  box-shadow: 0 8px 24px -10px var(--orange-glow);
}
.btn-primary-leak:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  color: #fff !important;
  box-shadow: 0 12px 28px -10px var(--orange-glow);
}
.btn-outline-leak {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-outline-leak:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   Eyebrow + titulares
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  padding-left: 22px;
  position: relative;
}
.eyebrow:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--orange);
}
.eyebrow.light { color: var(--orange-soft); }
.eyebrow.light:before { background: var(--orange-soft); }

.display-title {
  font-family: var(--font);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-dark);
  margin: 0 0 18px 0;
}
.display-title.light { color: #fff; }

.section-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark-dim);
  margin-top: 12px;
  margin-bottom: 0;
}
.section-lead.light { color: var(--text-dim); }
.section-lead.no-center { text-align: left; }

.section-intro {
  margin-bottom: 60px;
  align-items: flex-end;
}

/* sobreescribir el h2 del template para nuestras secciones */
.section .display-title { border: 0 !important; padding: 0 !important; }
.section .display-title:before { display: none !important; }
.section .section-heading h2 { border: 0; padding: 0; }
.section .section-heading h2:before { display: none; }


/* ============================================================
   HERO
   ============================================================ */
.section.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 90px 0;
  background: linear-gradient(180deg, #0a1024 0%, #0e1730 100%);
  overflow: hidden;
  color: var(--text);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(255, 103, 0, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(60, 120, 230, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.bg-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-container { position: relative; z-index: 2; }
.section.how-it-works > .container,
.section.platform > .container,
.section.product > .container,
.section.nodes > .container,
.section.contact-leak > .container { position: relative; z-index: 2; }

.hero-text { padding-right: 24px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 103, 0, 0.1);
  border: 1px solid rgba(255, 103, 0, 0.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--orange-soft);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 103, 0, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 103, 0, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 103, 0, 0); }
}

.hero-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 22px 0;
}
.hero-title .hl { color: var(--orange); }

.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stat-num {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.hero-stat-sep {
  width: 1px;
  background: var(--line);
}

/* Alert card visual del hero */
.hero-visual { padding-left: 12px; }
.alert-card {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 22px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 103, 0, 0.06),
    0 0 80px -30px var(--orange-glow);
  position: relative;
  transform: perspective(1500px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.alert-card:hover {
  transform: perspective(1500px) rotateY(0deg) rotateX(0deg);
}
.alert-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.alert-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff4f4f;
}
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4f4f;
  animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 79, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 79, 79, 0); }
}
.alert-card-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.alert-card-body { padding: 18px 0 8px 0; }
.alert-card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange);
  background: rgba(255, 103, 0, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.alert-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}
.alert-card-loc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.alert-card-loc i { color: var(--orange); margin-right: 6px; }

.alert-card-rows {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
}
.alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.alert-row:last-child { border-bottom: 0; }
.alert-row-k {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.alert-row-v {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--mono);
}
.alert-row-v.alert-bad   { color: #ff4f4f; }
.alert-row-v.alert-warn  { color: #ffb84a; }
.alert-row-v.alert-ok    { color: #4ade80; }

.alert-card-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.alert-nodes {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.node-dot {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.node-dot.active { background: #4ade80; }
.node-dot.alert  { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.alert-foot-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  z-index: 2;
  display: block;
}
.scroll-cue span {
  display: block;
  width: 2px;
  height: 6px;
  background: #fff;
  margin: 6px auto;
  border-radius: 1px;
  animation: cue 1.6s infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

@media (max-width: 991px) {
  .section.hero { padding: 120px 0 70px; }
  .hero-text { padding-right: 0; margin-bottom: 50px; }
  .hero-visual { padding-left: 0; }
  .alert-card { transform: none; }
  .scroll-cue { display: none; }
}

/* ============================================================
   Mini dashboard (hero visual compacto + animaciones)
   ============================================================ */
.mini-dash {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 18px 18px 16px 18px;
  max-width: 380px;
  margin-left: auto;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 103, 0, 0.08),
    0 0 90px -30px var(--orange-glow);
  transform-style: preserve-3d;
  animation: mini-dash-float 6s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.mini-dash::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(120% 60% at 100% 0%, rgba(255, 103, 0, 0.12), transparent 60%);
}
.mini-dash:hover {
  animation-play-state: paused;
  transform: perspective(1400px) rotateX(0deg) rotateY(0deg) translateY(-4px);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 103, 0, 0.18),
    0 0 120px -30px var(--orange-glow);
}
@keyframes mini-dash-float {
  0%   { transform: perspective(1400px) rotateX(2deg)  rotateY(-4deg) translateY(0); }
  50%  { transform: perspective(1400px) rotateX(-1deg) rotateY(3deg)  translateY(-10px); }
  100% { transform: perspective(1400px) rotateX(2deg)  rotateY(-4deg) translateY(0); }
}

.mini-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mini-dash-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff4f4f;
}
.mini-dash-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
}
.mini-dash-time i { font-size: 10px; }

.mini-dash-title { padding: 12px 0 10px 0; }
.mini-dash-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange);
  background: rgba(255, 103, 0, 0.12);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.mini-dash-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.mini-dash-chart {
  position: relative;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px 6px 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.mini-dash-chart svg {
  display: block;
  width: 100%;
  height: 70px;
}
.mini-dash-chart-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.dash-wave        { filter: drop-shadow(0 0 6px rgba(255, 103, 0, 0.6)); }
.dash-wave-dot    { filter: drop-shadow(0 0 6px #ff6700); }

.mini-dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mini-kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.mini-kpi-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.mini-kpi-v {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.mini-kpi-v.warn { color: #ffb84a; }
.mini-kpi-v.ok   { color: #4ade80; }
.mini-kpi-v.bad  { color: #ff4f4f; }
.mini-kpi-v, .js-db, .js-clock, .js-hum, .js-conf, .js-sensors, .js-status {
  transition: color 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
}
.value-tick {
  text-shadow: 0 0 10px currentColor;
  opacity: 0.85;
}
.node-dot { transition: background 0.4s ease, box-shadow 0.4s ease; }

.mini-dash-foot {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.mini-dash-foot .alert-nodes { margin-bottom: 6px; }

@media (max-width: 991px) {
  .mini-dash {
    margin: 0 auto;
    animation: none;
    transform: none;
  }
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip {
  background: var(--bg-2);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.trust-item i { color: var(--orange); font-size: 16px; }

@media (max-width: 767px) {
  .trust-grid { justify-content: center; }
}

/* ============================================================
   Sección PRODUCTO
   ============================================================ */
.section.product {
  background: #fff;
  padding: 110px 0;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}
.section.product .display-title { color: var(--text-dark); }
.section.product .display-title .hl { color: var(--orange); }
.section.product .section-lead { color: var(--text-dark-dim); }

.pillar-grid { margin-top: 0; }
.pillar-card {
  background: #fff;
  border: 1px solid #e5e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  margin-bottom: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.pillar-card:hover {
  border-color: var(--orange);
  box-shadow: 0 20px 50px -25px rgba(255, 103, 0, 0.25);
  transform: translateY(-3px);
}
.pillar-card:hover:before { transform: scaleX(1); }

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 103, 0, 0.1);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.pillar-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}
.pillar-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dark-dim);
  margin: 0 0 18px 0;
}
.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pillar-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #475168;
  margin-bottom: 6px;
}
.pillar-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* Why block */
.why-block {
  margin-top: 80px;
  padding-top: 70px;
  border-top: 1px solid #e5e8f0;
  align-items: flex-start;
}
.why-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0;
}
.why-title .hl { color: var(--orange); }

.why-points { display: grid; gap: 24px; }
.why-point {
  padding: 22px 24px;
  background: #f7f8fb;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.why-point-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.why-point-head i {
  font-size: 18px;
  color: var(--orange);
  width: 32px;
  height: 32px;
  background: rgba(255, 103, 0, 0.1);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.why-point-head h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
  letter-spacing: 0;
}
.why-point p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dark-dim);
  margin: 0;
  padding-left: 44px;
}

@media (max-width: 991px) {
  .why-block { margin-top: 50px; padding-top: 50px; }
  .why-title { margin-bottom: 24px; }
}

/* ============================================================
   ¿Cómo funciona? (timeline)
   ============================================================ */
.section.how-it-works {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 103, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(60, 120, 230, 0.08) 0%, transparent 50%);
  padding: 110px 0;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.section.how-it-works .display-title { color: #fff; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.timeline-track {
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft), transparent);
  opacity: 0.4;
  z-index: 0;
}
.tl-step {
  position: relative;
  z-index: 1;
}
.tl-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  box-shadow: 0 0 0 8px var(--bg), 0 0 30px -8px var(--orange-glow);
}
.tl-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
  letter-spacing: -0.005em;
}
.tl-content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 14px 0;
}
.tl-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.tl-meta i { color: var(--orange); margin-right: 6px; }

@media (max-width: 991px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-track { display: none; }
}
@media (max-width: 575px) {
  .timeline { grid-template-columns: 1fr; }
}

.how-detail { margin-top: 30px; }
.how-detail-block {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 30px;
  margin-bottom: 24px;
  height: 100%;
}
.how-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.how-detail-head i {
  font-size: 16px;
  color: var(--orange);
  width: 36px;
  height: 36px;
  background: rgba(255, 103, 0, 0.1);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.how-detail-head h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.how-list { list-style: none; padding: 0; margin: 0; }
.how-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  border-bottom: 1px dashed var(--line);
}
.how-list li:last-child { border-bottom: 0; }
.how-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--orange);
  font-weight: 700;
}
.how-list li strong { color: #fff; font-weight: 700; }

/* ============================================================
   Tipos de nodo (grid)
   ============================================================ */
.section.nodes {
  background: #fff;
  padding: 110px 0;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}
.section.nodes .display-title { color: var(--text-dark); }
.section.nodes .display-title .hl { color: var(--orange); }
.section.nodes .section-lead { color: var(--text-dark-dim); }

.node-grid { margin-top: 0; }
.node-card {
  background: #fff;
  border: 1px solid #e5e8f0;
  border-radius: 16px;
  padding: 32px 30px;
  height: 100%;
  margin-bottom: 24px;
  transition: all 0.25s ease;
  position: relative;
}
.node-card:hover {
  border-color: #cdd3df;
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.2);
  transform: translateY(-2px);
}

.node-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.node-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 5px;
  text-transform: uppercase;
}
.tag-ambient  { background: rgba(255, 103, 0, 0.1); color: var(--orange); }
.tag-acoustic { background: rgba(60, 120, 230, 0.1); color: #3c78e6; }
.tag-acid     { background: rgba(214, 51, 132, 0.1); color: #d63384; }
.tag-rs485    { background: rgba(74, 222, 128, 0.12); color: #2f9d5b; }

.node-crit {
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.node-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  letter-spacing: -0.015em;
}
.node-card > p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dark-dim);
  margin-bottom: 20px;
}
.node-meta {
  background: #f7f8fb;
  border-radius: var(--radius-sm);
  padding: 6px 16px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e8f0;
  font-size: 13px;
}
.meta-row:last-child { border-bottom: 0; }
.meta-row span:first-child {
  color: #6b7280;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.meta-row span:last-child {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}

.gateway-strip {
  margin-top: 24px;
  background: linear-gradient(135deg, #0e1730 0%, #16203c 100%);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff;
}
.gateway-strip-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 103, 0, 0.15);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.gateway-strip-text { flex: 1; }
.gateway-strip-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}
.gateway-strip-text p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
.gateway-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: gap 0.2s;
}
.gateway-strip-cta:hover { gap: 12px; color: var(--orange-soft) !important; }

@media (max-width: 767px) {
  .gateway-strip { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ============================================================
   Plataforma
   ============================================================ */
.section.platform {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(255, 103, 0, 0.1) 0%, transparent 50%);
  padding: 110px 0;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.section.platform .display-title { color: #fff; }
.section.platform .display-title .hl { color: var(--orange); }

.platform-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 520px;
}
.platform-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.platform-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.platform-list li:last-child { border-bottom: 0; }
.platform-list li i {
  color: var(--orange);
  font-size: 12px;
  width: 22px;
  height: 22px;
  background: rgba(255, 103, 0, 0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.platform-list li strong { color: #fff; font-weight: 700; }

.platform-cta { margin-top: 20px; }

/* Platform board "terminal" */
.platform-board {
  background: linear-gradient(160deg, #0c1330 0%, #15203f 100%);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    0 0 80px -30px var(--orange-glow);
  margin-left: 20px;
}
.board-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}
.board-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.board-dot.red    { background: #ff5f57; }
.board-dot.yellow { background: #ffbd2e; }
.board-dot.green  { background: #28c840; }
.board-title {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.board-body { padding: 20px 22px; font-family: var(--mono); font-size: 13px; }
.board-line {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.board-line:last-child { border-bottom: 0; }
.board-line.board-sep {
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 6px 0;
}
.b-key {
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.b-val {
  color: var(--text);
  font-weight: 500;
}
.b-val.ok { color: #4ade80; }

@media (max-width: 991px) {
  .platform-board { margin-left: 0; margin-top: 40px; }
}

/* ============================================================
   Contacto
   ============================================================ */
.section.contact-leak {
  background: #f7f8fb;
  padding: 110px 0;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}
.section.contact-leak .display-title { color: var(--text-dark); }
.section.contact-leak .display-title .hl { color: var(--orange); }
.section.contact-leak .section-lead { color: var(--text-dark-dim); margin-bottom: 32px; }

.contact-card {
  background: var(--bg);
  background-image: linear-gradient(160deg, #0e1730 0%, #16203c 100%);
  border-radius: 16px;
  padding: 28px 30px;
  color: #fff;
  margin-top: 12px;
}
.contact-card h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.contact-card .contact-line {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.contact-card .contact-line i {
  color: var(--orange);
  width: 20px;
  margin-right: 8px;
}

.leak-form fieldset {
  margin: 0 0 18px 0;
  padding: 0;
  border: 0;
}
.leak-form label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.leak-form input,
.leak-form select,
.leak-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e8f0;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s;
}
.leak-form input:focus,
.leak-form select:focus,
.leak-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 103, 0, 0.12);
}
.leak-form textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   Footer
   ============================================================ */
.leak-footer {
  background: var(--bg);
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-brand .logo-leak,
.footer-brand .logo-iot { color: var(--orange); }
.footer-brand .logo-net,
.footer-brand .logo-exa { color: #fff; }
.footer-sep { color: var(--text-muted); }
.footer-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
}
.footer-meta {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.03em;
}
@media (max-width: 767px) {
  .footer-meta { text-align: left; margin-top: 12px; }
}

/* ============================================================
   Placeholders de imágenes (cards de nodos + galería)
   ============================================================ */

/* Patrón decorativo común para los placeholders */
.img-ph,
.node-photo {
  position: relative;
  background:
    linear-gradient(135deg, #18233a 0%, #2a3756 50%, #18233a 100%);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-sm);
}
.img-ph:before,
.node-photo:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255, 103, 0, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 80% 75%, rgba(60, 120, 230, 0.14) 0%, transparent 40%);
  pointer-events: none;
}
.img-ph:after,
.node-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}
.img-ph i,
.node-photo i {
  position: relative;
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 10px;
  z-index: 1;
}
.img-ph-title,
.img-ph-label {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.img-ph-sub {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  text-transform: uppercase;
}

/* === Foto en cada card de nodo === */
.node-card { padding: 0; overflow: hidden; }
.node-photo {
  height: 220px;
  border-radius: 0;
  border-bottom: 1px solid #e5e8f0;
}
.node-photo > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.node-card:hover .node-photo > img { transform: scale(1.03); }
.node-photo .img-ph-label {
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.node-photo .img-ph-label i { font-size: 12px; margin: 0 6px 0 0; vertical-align: middle; }

/* Variaciones por card — tono distinto en el gradient */
.node-photo-1 { background: linear-gradient(135deg, #1e2b48 0%, #ff6700 250%); }
.node-photo-2 { background: linear-gradient(135deg, #16273f 0%, #2563eb 220%); }
.node-photo-3 { background: linear-gradient(135deg, #2a1832 0%, #d63384 240%); }
.node-photo-4 { background: linear-gradient(135deg, #1a2d24 0%, #2f9d5b 240%); }

.node-card-body { padding: 28px 30px 32px 30px; }

/* === Galería "En faena" === */
.section.gallery {
  background: #fff;
  padding: 110px 0;
}
.section.gallery .display-title { color: var(--text-dark); }
.section.gallery .display-title .hl { color: var(--orange); }
.section.gallery .section-lead { color: var(--text-dark-dim); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
  margin-top: 10px;
}
.gal {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gal .img-ph {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  cursor: default;
  transition: transform 0.3s ease;
}
.gal > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.4s ease;
}
.gal:hover .img-ph,
.gal:hover > img { transform: scale(1.04); }

.gal-tall  { grid-row: span 2; }
.gal-wide  { grid-column: span 2; }

@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-wide { grid-column: span 2; }
  .gal-tall { grid-row: span 1; }
}
@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .gal-wide, .gal-tall { grid-column: span 1; grid-row: span 1; }
}

.gallery-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dark-dim);
  text-align: center;
  padding: 14px 20px;
  background: #f7f8fb;
  border-radius: var(--radius-sm);
  border: 1px dashed #d9dde7;
}
.gallery-note i {
  color: var(--orange);
  margin-right: 8px;
}

/* ============================================================
   Limpiar overrides del template viejo que ya no aplican
   ============================================================ */
.section { background: transparent; }
.section-heading { margin-bottom: 0; }

/* Quitar bordes/líneas del template viejo en .section-heading h2 */
.section .section-heading h2 {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: inherit;
  display: block;
}

/* Anular el video bg leftover si quedara */
#bg-video, .video-overlay { display: none !important; }
