/* ==========================================================================
   SmartQ — Premium Design System & Animations (v2)
   ========================================================================== */

:root {
  /* Brand Colors */
  --blue-dark: #217EB4;
  --blue-light: #009EE9;
  --blue-gradient: linear-gradient(135deg, #217EB4, #009EE9);
  --blue-glow: rgba(0, 158, 233, 0.12);
  --blue-glow-lg: rgba(33, 126, 180, 0.2);
  
  /* Status Colors */
  --green: #10B981;
  --green-bg: #ECFDF5;
  --green-text: #065F46;
  --amber: #F59E0B;
  --amber-bg: #FEF3C7;
  --amber-text: #92400E;
  --red: #EF4444;
  --red-bg: #FEE2E2;
  --red-text: #991B1B;

  /* Neutrals */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  
  --white: #FFFFFF;
  --border: rgba(226, 232, 240, 0.8);

  /* Shadows & Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Typography & Layout */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Poppins', var(--font);
  --nav-height: 72px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background-color: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Technical Dotted Grid Background Pattern */
.bg-grid {
  position: relative;
}

.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(33, 126, 180, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Gradient ambient glow decorators */
.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.glow-primary {
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 70%);
}

/* ==========================================================================
   SCROLL REVEAL & STAGGERED ANIMATIONS (Antigravity Style)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   NAVBAR (Glassmorphic)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-md);
  height: 64px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 38px;
  width: auto;
}

.nav-logo-wordmark {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-300);
  position: relative;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-nav-acceso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--blue-gradient);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-nav-acceso:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.08);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  user-select: none;
}

.btn-primary {
  background: var(--blue-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--slate-800);
  border-color: var(--slate-200);
}

.btn-outline:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(33, 126, 180, 0.08);
  border: 1px solid rgba(33, 126, 180, 0.15);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--blue-light);
  animation: pulse-simple 1.5s infinite;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content h1 span {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-content p {
  font-size: 18px;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual: High Fidelity Telemetry Panel Mockup */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow {
  width: 380px;
  height: 380px;
  top: 10%;
  right: 5%;
}

.telemetry-dashboard {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), var(--shadow-premium);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: float 9s ease-in-out infinite;
}

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

.telemetry-header {
  background: var(--slate-900);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.telemetry-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  animation: pulse-simple 1.5s infinite;
}

@keyframes pulse-simple {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.telemetry-status {
  font-size: 11px;
  color: var(--slate-400);
  font-family: monospace;
}

.telemetry-body {
  padding: 24px;
  background: var(--slate-50);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}

/* Left panel: Node Map & Log */
.telemetry-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.telemetry-panel-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.panel-card-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-400);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Live Events List */
.live-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-family: monospace;
  max-height: 120px;
  overflow: hidden;
}

.live-event-row {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--blue-light);
  padding-left: 8px;
  animation: log-slide-up 0.5s ease forwards;
}

@keyframes log-slide-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.event-time {
  color: var(--slate-400);
  font-size: 9px;
}

.event-text {
  color: var(--slate-800);
  font-weight: 600;
}

/* Right panel: Line Chart Area */
.telemetry-right {
  display: flex;
  flex-direction: column;
}

.telemetry-chart-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chart-svg-container {
  width: 100%;
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 12px;
}

/* SVG Line Drawing Animation */
.chart-svg-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-chart-line 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes draw-chart-line {
  to { stroke-dashoffset: 0; }
}

.chart-grid-vertical {
  stroke: var(--slate-100);
  stroke-dasharray: 4 4;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--slate-800);
  color: var(--white);
}

.section-dark .section-header p {
  color: var(--slate-300);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-gradient {
  background: linear-gradient(145deg, #0a1628 0%, #0e2240 35%, #0d3060 65%, #0a4a8a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 15% 70%, rgba(0, 158, 233, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(33, 126, 180, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.section-gradient .container {
  position: relative;
  z-index: 1;
}

.section-gradient .section-header h2 {
  color: var(--white);
}

.section-gradient .section-header p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(33, 126, 180, 0.08);
  border: 1px solid rgba(33, 126, 180, 0.12);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-tag-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 18px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ==========================================================================
   PLATFORMS SECTION (Interactive Sliding Tabs)
   ========================================================================== */
.tabs-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-400);
  margin-bottom: 16px;
}

.tabs-hint .material-symbols-rounded {
  font-size: 16px;
  color: var(--blue-light);
  animation: tab-hint-tap 1.8s ease-in-out infinite;
}

@keyframes tab-hint-tap {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.tabs-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: var(--slate-100);
  color: var(--slate-800);
  border-color: var(--slate-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tab-btn.active {
  background: var(--blue-gradient);
  border-color: var(--blue-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.tabs-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  opacity: 1;
  transform: translateX(0) scale(1);
}

.platform-info h3 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
}

.platform-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-primary {
  background: rgba(33, 126, 180, 0.08);
  color: var(--blue-dark);
  border: 1px solid rgba(33, 126, 180, 0.12);
}

.badge-secondary {
  background: rgba(245, 158, 11, 0.08);
  color: var(--amber-text);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.platform-desc {
  font-size: 16px;
  color: var(--slate-600);
  margin-bottom: 28px;
  line-height: 1.7;
}

.platform-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--slate-700);
}

.platform-features-list li span.material-symbols-rounded {
  color: var(--green);
  font-size: 20px;
  margin-top: 2px;
}

/* Dashboard Mockup Component */
.dashboard-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
}

.dashboard-header {
  background: var(--slate-900);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-title span.status-indicator {
  width: 7px;
  height: 7px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
}

.dashboard-user {
  font-size: 11px;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.dashboard-body {
  padding: 20px;
  background: var(--slate-50);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-stat-card {
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--slate-400);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-800);
  margin-top: 4px;
}

.dashboard-visual-section {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-container-large {
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 10px;
  border-bottom: 1px solid var(--slate-200);
  position: relative;
}

.chart-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px dashed var(--slate-200);
  pointer-events: none;
}

.line-50 { bottom: 50%; }
.line-100 { bottom: 100%; }

.chart-bar-large {
  width: 10%;
  background: var(--blue-gradient);
  border-radius: 4px 4px 0 0;
  position: relative;
  height: 0%;
  transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 4px;
}

.chart-bar-large.bar-secondary {
  background: linear-gradient(135deg, #D4860A, #FFC107);
}

.chart-bar-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: var(--slate-400);
}

/* Animating columns in active tab mockup */
.tab-content.active .chart-bar-large {
  height: var(--bar-height);
}

/* Specific styling for Coffee list view in dashboard */
.coffee-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coffee-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-100);
  font-size: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--slate-800);
}

.user-badge-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.user-amount {
  font-weight: 700;
  color: var(--slate-600);
}

/* ==========================================================================
   HARDWARE SECTION (Dispositivos)
   ========================================================================== */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.hardware-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.hardware-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 20px 40px rgba(0,0,0,0.05);
  border-color: rgba(33, 126, 180, 0.25);
}

.hardware-img-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate-100);
  position: relative;
  border-bottom: 1px solid var(--slate-100);
}

.hardware-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hardware-card:hover .hardware-img {
  transform: scale(1.04);
}

.hardware-card-body {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hardware-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hardware-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}

.tag-vending {
  background: rgba(33, 126, 180, 0.08);
  color: var(--blue-dark);
  border-color: rgba(33, 126, 180, 0.12);
}

.tag-coffee {
  background: rgba(245, 158, 11, 0.08);
  color: var(--amber-text);
  border-color: rgba(245, 158, 11, 0.12);
}

.hardware-card-body h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.hardware-card-body p {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hardware-features-inline {
  margin-top: auto;
  border-top: 1px solid var(--slate-100);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hardware-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
}

.hardware-feature-item span.material-symbols-rounded {
  font-size: 16px;
  color: var(--blue-light);
}

/* ==========================================================================
   ECOLOGICAL INTERACTIVE IoT SIMULATOR (SVG-based Flow Diagram)
   ========================================================================== */

/* Ambient floating orbs behind simulator */
#simulador .glow-spot {
  animation: drift-orb 8s ease-in-out infinite alternate;
}

@keyframes drift-orb {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 10px) scale(0.97); }
  100% { transform: translate(10px, -30px) scale(1.02); }
}

.sim-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
}

.sim-diagram-wrapper {
  position: relative;
  width: 100%;
  max-width: 880px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* SVG Line Connections */
.sim-svg-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.flow-connector-line {
  stroke: var(--slate-200);
  stroke-width: 3px;
  stroke-dasharray: 6 5;
  animation: flow-dash-pulse 30s linear infinite;
  fill: none;
}

@keyframes flow-dash-pulse {
  to { stroke-dashoffset: -500; }
}

/* Thick pulse traveling along path */
.sim-pulse-line {
  stroke: var(--blue-light);
  stroke-width: 4px;
  stroke-dasharray: 100 200;
  stroke-dashoffset: 100;
  fill: none;
  opacity: 0;
  transition: opacity 0.1s;
}

.sim-pulse-line.active {
  animation: travel-pulse-line 1.5s ease-in-out forwards;
  opacity: 1;
}

@keyframes travel-pulse-line {
  0% { stroke-dashoffset: 300; }
  100% { stroke-dashoffset: -300; }
}

/* Nodos del Ecosistema */
.sim-node {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-node.active {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-xl), 0 0 24px var(--blue-glow);
  transform: translateY(-4px);
}

.sim-node-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--slate-50);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.sim-node.active .sim-node-icon {
  background: var(--blue-gradient);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.sim-node-icon span.material-symbols-rounded {
  font-size: 26px;
}

.sim-node h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.sim-node p {
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.4;
}

/* Floating Status Indicator Card above node */
.sim-node-status {
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--slate-900);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.sim-node-status::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--slate-900);
}

.sim-node-status.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.status-dot {
  width: 5px;
  height: 5px;
  background-color: var(--blue-light);
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green {
  background-color: var(--green);
}

/* Control Trigger Button styling */
.sim-trigger-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

.sim-btn-desc {
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
  text-align: center;
  min-height: 20px;
  transition: color 0.3s ease;
}

/* Minimal replay button instead of big play button */
.simulator-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1.5px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.simulator-btn:hover:not(:disabled) {
  border-color: var(--blue-light);
  color: var(--blue-dark);
  background: rgba(33, 126, 180, 0.05);
}

.simulator-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.simulator-btn .material-symbols-rounded {
  font-size: 17px;
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 15px 30px rgba(0,0,0,0.02);
  border-color: rgba(33, 126, 180, 0.2);
}

.benefit-card-soon {
  position: relative;
  opacity: 0.7;
}

.benefit-card-soon:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.benefit-card-soon:hover .benefit-icon-container {
  background: rgba(33, 126, 180, 0.08);
}

.benefit-card-soon:hover .benefit-icon-container span.material-symbols-rounded {
  color: var(--blue-dark);
}

.benefit-soon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.benefit-icon-container {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(33, 126, 180, 0.08);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon-container {
  background: var(--blue-gradient);
}

.benefit-icon-container span.material-symbols-rounded {
  font-size: 26px;
  color: var(--blue-dark);
  transition: color 0.3s ease;
}

.benefit-card:hover .benefit-icon-container span.material-symbols-rounded {
  color: var(--white);
}

.benefit-card h4 {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-panel h3 {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.contact-info-panel > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 440px;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.contact-method-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 158, 233, 0.4);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 158, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5fc8f0;
  flex-shrink: 0;
}

.contact-method-details h5 {
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-method-details p {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

/* Contact Form styling */
.contact-card-form {
  background: rgba(255, 255, 255, 0.04);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2px;
}

.form-control {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
  outline: none;
  width: 100%;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
  border-color: rgba(0, 158, 233, 0.6);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(0, 158, 233, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Honeypot field: hidden from real users, catches bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  min-height: 18px;
  margin-top: 4px;
}

.form-status.success { color: #6ee7b7; }
.form-status.error { color: #fca5a5; }

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.35);
  z-index: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsapp-pulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 26px -4px rgba(0, 0, 0, 0.4);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.35), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--slate-900);
  color: var(--white);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 64px;
  width: auto;
  align-self: flex-start;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 15px;
  max-width: 320px;
}

.footer-links-grid {
  display: flex;
  gap: 64px;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate-500);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--slate-300);
}

.footer-col a:hover {
  color: var(--blue-light);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--slate-500);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--slate-300);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-bottom: 40px;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .tab-content.active {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dashboard-mockup {
    max-width: 580px;
    margin: 0 auto;
  }

  .hardware-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 40px auto 0;
  }

  .sim-diagram-wrapper {
    padding: 0;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info-panel {
    text-align: center;
  }

  .contact-info-panel > p {
    margin: 0 auto;
  }

  .contact-methods {
    max-width: 480px;
    margin: 24px auto 0;
  }

  .contact-card-form {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-logo {
    align-self: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-links-grid {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--nav-height));
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 28px 32px;
    gap: 8px;
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
    align-items: stretch;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 17px;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-radius: var(--radius-md);
    color: var(--slate-800);
    border-bottom: 1px solid var(--slate-100);
  }

  .nav-link:hover {
    background: rgba(33, 126, 180, 0.06);
    color: var(--blue-dark);
    border-bottom-color: transparent;
  }

  .btn-nav-acceso {
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    margin-top: 16px;
    border-radius: var(--radius-md);
  }

  .nav-toggle {
    display: flex;
  }

  .telemetry-body {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .telemetry-left {
    display: none; /* Hide node map on mobile to save space */
  }

  .tabs-selector {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto 36px;
  }

  .tab-btn {
    justify-content: center;
  }

  /* Redesign simulator for mobile vertically stacked nodes */
  .sim-diagram-wrapper {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
  }

  .sim-svg-connectors {
    display: none; /* Hide SVG connection lines on mobile */
  }

  .sim-node {
    width: 100%;
    max-width: 320px;
  }

  .sim-node-status {
    top: auto;
    bottom: -40px;
  }

  .sim-node-status::after {
    bottom: auto;
    top: -4px;
    transform: translateX(-50%) rotate(45deg);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .footer-links-grid {
    flex-direction: column;
    gap: 36px;
    align-items: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: 25px;
  }

  .section-header p {
    font-size: 15px;
  }

  .dashboard-stats {
    gap: 8px;
  }

  .dashboard-stat-card {
    padding: 10px;
  }

  .stat-value {
    font-size: 15px;
  }

  .hardware-card-body {
    padding: 22px;
  }

  .benefit-card {
    padding: 28px 22px;
  }

  .contact-card-form {
    padding: 24px 20px;
  }

  .contact-info-panel h3 {
    font-size: 26px;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
