/* ==========================================================================
   AGUABOT AI · FULL-SCREEN SLIDE PRESENTATION - ULTRA ANIMATED & ALIVE
   Paleta: Colores exactos del panel interno Aguabot
   (--paper: #f7f8f3, --green: #154b40, --ink: #183e36, --card: #ffffff,
    --line: #e3e7df, --muted: #73817a, --sage: #e4ecd9, --mint: #87b581)
   ========================================================================== */

:root {
  --paper: #f7f8f3;
  --paper-card: #f9faf7;
  --card: #ffffff;
  --green: #154b40;
  --green-hover: #1f6153;
  --green-dark: #0f3830;
  --green-light: #eaf1e0;
  --green-accent: #3e895c;
  --ink: #183e36;
  --muted: #73817a;
  --faint: #9cb0a4;
  --line: #e3e7df;
  --line-soft: #edf0e8;
  --sage: #e4ecd9;
  --sage-border: #cbd8bd;
  --mint: #87b581;
  --amber: #b8872f;
  --red-alert: #c25e36;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --font-main: 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   AMBIENT LIVING HYDRO STREAM BACKGROUND CANVAS
   ========================================================================== */
#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ==========================================================================
   FIXED NAVBAR (Smooth Glass & Micro-interactions)
   ========================================================================== */
.slide-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 248, 243, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.2px;
  transition: transform 0.25s ease;
}

.brand-wrap:hover {
  transform: translateY(-1px);
}

.brand-water-icon {
  width: 28px;
  height: 34px;
  color: var(--green);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: gentle-drop 4s ease-in-out infinite;
}

@keyframes gentle-drop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.04); }
}

.brand-wrap:hover .brand-water-icon {
  transform: rotate(-10deg) scale(1.15);
}

.brand-light {
  font-weight: 350;
}

.brand-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #6a7d62;
  background: var(--sage);
  border: 1px solid var(--sage-border);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Nav Live Status Pill */
.nav-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(228, 236, 217, 0.6);
  border: 1px solid var(--sage-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
}

.status-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 8px var(--green-accent);
  animation: beacon-blink 1.8s infinite;
}

.nav-center-menu {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav-center-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  transition: all 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-center-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-center-menu a:hover {
  color: var(--green);
}

.nav-center-menu a:hover::after {
  width: 100%;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #ffffff;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-arrow-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.btn-header:hover .btn-arrow-icon,
.btn-hero-primary:hover .btn-arrow-icon {
  transform: translate(3px, -3px);
}

.btn-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: 0.6s ease;
}

.btn-header:hover::before {
  left: 140%;
}

.btn-header:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 75, 64, 0.25);
}

/* ==========================================================================
   VERTICAL SLIDE PAGINATION WITH PROGRESS LINE (Right Side)
   ========================================================================== */
.slide-pagination {
  display: none !important;
}

.pagination-track {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
  z-index: 1;
}

.pagination-fill {
  position: absolute;
  top: 6px;
  width: 2px;
  background: var(--green);
  height: 0;
  z-index: 2;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid #b7c4b6;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  padding: 0;
  z-index: 3;
}

.slide-dot.active {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(21, 75, 64, 0.45);
}

.slide-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  font-weight: 700;
  letter-spacing: 1px;
}

.slide-dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   FULL-SCREEN SLIDES CONTAINER & SECTIONS
   ========================================================================== */
.slide-section {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 85px 44px 35px;
  box-sizing: border-box;
}

.slide-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   STAGGERED SLIDE ENTRANCE ANIMATIONS (Active State)
   ========================================================================== */
.slide-section .slide-module-tag {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.slide-section .title-word-mask {
  display: block;
  overflow: hidden;
}

.slide-section .title-word-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.65s ease 0.2s;
}

.slide-section .slide-desc {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.35s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.slide-section .slide-action-btn,
.slide-section .slide-meta-row {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.45s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.slide-section .tilt-card,
.slide-section .problem-visual-box,
.slide-section .sim-visual-card,
.slide-section .camera-slide-box,
.slide-section .field-slide-box,
.slide-section .final-access-box {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.7s ease 0.25s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

/* Slide is Active: Elements glide smoothly into place */
.slide-section.is-active .slide-module-tag,
.slide-section.is-active .slide-desc,
.slide-section.is-active .slide-action-btn,
.slide-section.is-active .slide-meta-row {
  opacity: 1;
  transform: translateY(0);
}

.slide-section.is-active .title-word-inner {
  opacity: 1;
  transform: translateY(0);
}

.slide-section.is-active .tilt-card,
.slide-section.is-active .problem-visual-box,
.slide-section.is-active .sim-visual-card,
.slide-section.is-active .camera-slide-box,
.slide-section.is-active .field-slide-box,
.slide-section.is-active .final-access-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   SLIDE 1: HERO PRESENTATION & FLOATING PILLS
   ========================================================================== */
.hero-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(135, 181, 129, 0.20) 0%, rgba(228, 236, 217, 0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: aura-breathe 8s ease-in-out infinite alternate;
}

@keyframes aura-breathe {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* Floating Pills Around Hero */
.floating-pills-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-float-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--sage-border);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  box-shadow: 0 8px 24px rgba(21, 75, 64, 0.07);
}

.hero-float-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: beacon-blink 2s infinite;
}

.pill-tl { top: 8%; left: 8%; animation: float-tl 5s ease-in-out infinite; }
.pill-tr { top: 12%; right: 8%; animation: float-tr 6s ease-in-out infinite 0.5s; }
.pill-bl { bottom: 18%; left: 10%; animation: float-bl 5.5s ease-in-out infinite 1s; }
.pill-br { bottom: 20%; right: 12%; animation: float-br 6.5s ease-in-out infinite 1.5s; }

@keyframes float-tl {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -10px); }
}
@keyframes float-tr {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, -12px); }
}
@keyframes float-bl {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, 10px); }
}
@keyframes float-br {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, 8px); }
}

.hero-code-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: beacon-blink 2s ease-in-out infinite;
}

@keyframes beacon-blink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.hero-big-title {
  font-size: clamp(64px, 9.8vw, 130px);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -4px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-big-title .line-dark {
  display: block;
  color: var(--ink);
  transition: transform 0.3s ease;
}

.hero-big-title .line-accent {
  display: block;
  color: var(--green);
  position: relative;
}

.hero-cmd-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 38px;
  max-width: 680px;
  min-height: 20px;
}

.hero-cta-box {
  display: inline-block;
  padding: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(24, 62, 54, 0.06);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(24, 62, 54, 0.12);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: #ffffff;
  padding: 16px 38px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.6s ease;
}

.btn-hero-primary:hover::before {
  left: 140%;
}

.btn-hero-primary:hover {
  background: var(--green-hover);
}

/* Pulsing Outer Glow for Final CTA */
.btn-pulse-glow {
  box-shadow: 0 0 0 0 rgba(21, 75, 64, 0.4);
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(21, 75, 64, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(21, 75, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 75, 64, 0); }
}

.scroll-down-guide {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--faint);
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-down-guide:hover {
  color: var(--green);
}

.scroll-down-arrow {
  display: block;
  font-size: 14px;
  margin-top: 4px;
  animation: bounce-arrow 1.8s infinite;
}

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

/* ==========================================================================
   2-COLUMN SLIDE LAYOUT
   ========================================================================== */
.two-col-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.slide-module-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.slide-huge-title {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.slide-huge-title .t-dark {
  color: var(--ink);
  display: block;
}

.slide-huge-title .t-accent {
  color: var(--green);
  display: block;
}

.slide-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
}

.slide-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--sage);
  border: 1px solid var(--sage-border);
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.meta-pill:hover {
  transform: translateY(-2px);
}

.meta-pill .p-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-accent);
}

/* ==========================================================================
   UNIVERSAL 3D TILT EFFECT FOR VISUAL BOXES
   ========================================================================== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  will-change: transform;
}

/* ==========================================================================
   SLIDE 2: ANIMATED PROBLEM COMPARISON CARD
   ========================================================================== */
.problem-visual-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(24, 62, 54, 0.04);
}

.comp-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.live-tag {
  color: var(--green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.beacon-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-accent);
  animation: beacon-blink 1.5s infinite;
}

.comp-state-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.comp-state-card:hover {
  transform: translateX(4px);
}

.state-conv {
  background: #fff8f0;
  border: 1px solid #fae1cb;
}

.state-ai {
  background: #f1f7ed;
  border: 1px solid #d4e6cc;
}

.state-h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.beacon-alarm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-alert);
  box-shadow: 0 0 8px rgba(194, 94, 54, 0.5);
  animation: beacon-blink 1.1s infinite;
}

.beacon-check {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(21, 75, 64, 0.4);
  animation: beacon-blink 2s infinite;
}

.state-p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.state-stat-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

/* Problem Stats Strip */
.problem-stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.pstat-item {
  display: flex;
  flex-direction: column;
}

.pstat-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}

.pstat-lbl {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ==========================================================================
   SLIDE 3: INTERACTIVE AI SIMULATOR CARD WITH 4D RADAR CANVAS
   ========================================================================== */
.sim-visual-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(24, 62, 54, 0.04);
}

.sim-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sim-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
}

.sim-icon-wave {
  font-size: 14px;
  color: var(--green-accent);
  animation: wave-float 2s ease-in-out infinite;
}

@keyframes wave-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.sim-live-chip {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green);
  background: var(--sage);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Scenario Presets */
.sim-presets-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-btn {
  flex: 1;
  padding: 6px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: var(--sage);
  border-color: var(--sage-border);
}

.preset-btn.active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  box-shadow: 0 4px 10px rgba(21, 75, 64, 0.2);
}

.preset-btn.alert-preset.active {
  background: var(--red-alert);
  border-color: var(--red-alert);
}

/* 4D Radar Vector Box */
.knn-radar-box {
  background: #f6f8f4;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 16px;
  position: relative;
}

#knnRadarCanvas {
  width: 100%;
  height: 120px;
  display: block;
}

.knn-radar-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
  padding: 0 4px;
}

.leg-safe { color: var(--green); font-weight: 700; }
.leg-query { color: #2563eb; font-weight: 700; }
.leg-risk { color: var(--red-alert); font-weight: 700; }

.sim-slider-group {
  margin-bottom: 14px;
}

.sim-slider-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sim-slider-head output {
  font-family: var(--font-mono);
  color: var(--green);
  font-weight: 700;
}

.slide-range {
  width: 100%;
  accent-color: var(--green);
  cursor: pointer;
  height: 6px;
}

/* Dynamic Stream Height Bar with Moving Sheen */
.stream-gauge-wrap {
  height: 8px;
  border-radius: 4px;
  background: #eaf0e6;
  overflow: hidden;
  margin-top: 8px;
  position: relative;
}

.stream-gauge-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #87b581, var(--green));
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
  position: relative;
}

.stream-gauge-waterline-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60%;
  width: 2px;
  background: rgba(194, 94, 54, 0.6);
  z-index: 2;
}

.sim-readout-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sim-readout-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.sim-readout-title span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #78917c;
  text-transform: uppercase;
}

.sim-readout-title strong {
  font-size: 24px;
  font-weight: 750;
  color: var(--green);
  transition: color 0.3s ease;
}

.sim-readout-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   SLIDE 4: CAMERA PREVIEW CARD (Living Cañada View with Dynamic HUD)
   ========================================================================== */
.camera-slide-box {
  border: 1px solid #dbe4d3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ecf2e4;
  position: relative;
  box-shadow: 0 10px 30px rgba(24, 62, 54, 0.05);
}

.camera-img-wrap {
  position: relative;
  overflow: hidden;
  height: 290px;
  background: #0f2721;
}

.camera-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.5s ease;
}

.camera-slide-box:hover .camera-img-wrap img {
  transform: scale(1.03);
}

/* Camera HUD Top */
.camera-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.live-rec-badge {
  background: rgba(16, 44, 37, 0.88);
  backdrop-filter: blur(8px);
  color: #eff5e5;
  border: 1px solid rgba(200, 233, 170, 0.3);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e3a542;
  animation: beacon-blink 1.4s infinite;
}

.cam-clock {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #eff5e5;
  background: rgba(16, 44, 37, 0.75);
  backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Water Sheen Light Reflection */
.cam-water-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  pointer-events: none;
  z-index: 5;
  transform: translateX(-100%);
  animation: sheen-glide 5s ease-in-out infinite;
}

@keyframes sheen-glide {
  0% { transform: translateX(-120%); }
  40%, 100% { transform: translateX(120%); }
}

/* Dynamic Waterline Guide Overlay */
.cam-waterline {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 2px;
  border-top: 1.5px dashed rgba(135, 181, 129, 0.85);
  z-index: 8;
  pointer-events: none;
  transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.waterline-tag {
  position: absolute;
  right: 14px;
  bottom: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: #eff5e5;
  background: rgba(21, 75, 64, 0.85);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* Camera HUD Bottom Equalizer */
.camera-hud-bottom {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.cam-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.eq-b {
  width: 3px;
  background: var(--mint);
  border-radius: 1px;
  animation: eq-bounce 1.2s ease-in-out infinite alternate;
}
.b1 { height: 6px; animation-delay: 0.1s; }
.b2 { height: 12px; animation-delay: 0.3s; }
.b3 { height: 8px; animation-delay: 0.5s; }
.b4 { height: 14px; animation-delay: 0.2s; }
.b5 { height: 7px; animation-delay: 0.4s; }
.b6 { height: 10px; animation-delay: 0.6s; }

@keyframes eq-bounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

.cam-hud-stream-txt {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(239, 245, 229, 0.8);
  letter-spacing: 1px;
}

/* Camera Controls & Filters */
.camera-slide-controls {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9faf7;
  border-top: 1px solid #dbe4d3;
}

.cam-mode-buttons {
  display: flex;
  gap: 6px;
}

.cam-btn {
  padding: 5px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cam-btn:hover {
  background: var(--sage);
}

.cam-btn.active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

.camera-loc-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #698359;
  font-weight: 700;
}

/* ==========================================================================
   SLIDE 5: 3D FIELD INSTALLATION WITH DUAL SONAR RINGS
   ========================================================================== */
.field-slide-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(24, 62, 54, 0.05);
}

.field-img-wrap {
  position: relative;
}

.field-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pulsing Hotspots with Dual Sonar Rings */
.hotspot-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sonar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  pointer-events: none;
  animation: sonar-expand 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.sonar-ring.r2 {
  animation-delay: 1.1s;
}

@keyframes sonar-expand {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hotspot-pulse:hover,
.hotspot-pulse.is-highlighted {
  transform: scale(1.3);
  background: var(--green-hover);
  box-shadow: 0 0 18px rgba(21, 75, 64, 0.6);
}

.field-slide-legend {
  padding: 16px 20px;
  background: #f9faf7;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.legend-box {
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
  cursor: pointer;
}

.legend-box:hover,
.legend-box.is-highlighted {
  background: #e9f0e2;
  border-color: var(--sage-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 75, 64, 0.08);
}

.legend-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.leg-num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--green);
  background: var(--sage);
  padding: 1px 5px;
  border-radius: 3px;
}

.legend-hdr strong {
  font-size: 11px;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.legend-box p {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* ==========================================================================
   SLIDE 6: FINAL ACCESS GRAND FINALE
   ========================================================================== */
.final-access-box {
  background: var(--sage);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-xl);
  padding: 55px 44px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(24, 62, 54, 0.06);
}

.final-glow-ring {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 181, 129, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: aura-breathe 6s ease-in-out infinite alternate;
}

.final-features-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.ffeat-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(21, 75, 64, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.ffeat-chip:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.ff-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.final-bottom-credits {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6b7e61;
}

/* Page Transition Curtain */
.page-transition-curtain {
  position: fixed;
  inset: 0;
  background: var(--green);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.45s ease;
}

.page-transition-curtain.active {
  opacity: 1;
  transform: translateY(0%);
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR SLIDES
   ========================================================================== */
@media (max-width: 960px) {
  html {
    scroll-snap-type: none;
    overflow-y: auto;
  }
  .slide-section {
    height: auto;
    min-height: auto;
    padding: 100px 24px 50px;
  }
  .two-col-slide {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .slide-pagination {
    display: none;
  }
  .nav-center-menu,
  .nav-status-pill {
    display: none;
  }
  .floating-pills-wrap {
    display: none;
  }
}
