@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   RESET & SYSTEM VARIABLE DEFINITIONS (TEMA CLARO GLACIAL)
   ========================================================================== */
:root {
  --bg-light: #f4f8fc;
  --bg-section-alt: #eaf1f8;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --border-color: rgba(0, 168, 255, 0.15);
  --border-hover: rgba(0, 168, 255, 0.35);
  
  --text-dark: #0d1726;
  --text-muted: #52657a;
  
  --primary-blue: #0077ff;
  --primary-glow: rgba(0, 119, 255, 0.15);
  --ice-cyan: #00a8ff;
  
  --beer-amber: #d35400;
  --beer-gold: #f39c12;
  --beer-glow: rgba(211, 84, 0, 0.15);
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-light);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #e4ebf3;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 119, 255, 0.2);
  border-radius: 5px;
  border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 119, 255, 0.5);
}

/* ==========================================================================
   GLOBAL UTILITIES & DECORATIONS
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--text-dark) 20%, var(--primary-blue) 70%, var(--ice-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #d35400 0%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism for Light Mode */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(10, 25, 47, 0.05);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px 0 rgba(0, 119, 255, 0.1);
}

/* Decorative Background Lights - Light Version */
.bg-glow-1 {
  position: absolute;
  top: 5%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-2 {
  position: absolute;
  top: 45%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(244, 248, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 168, 255, 0.08);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(234, 241, 248, 0.95);
  border-bottom: 1px solid rgba(0, 168, 255, 0.18);
  box-shadow: 0 4px 20px rgba(10, 25, 47, 0.03);
}

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

header.scrolled .nav-container {
  height: 65px;
}

.logo {
  display: flex;
  align-items: center;
  height: 48px;
  width: 240px;
  text-decoration: none;
}

.logo img {
  height: 100%;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--ice-cyan));
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  background: rgba(0, 119, 255, 0.05);
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
  transform: translateY(-2px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION (CON SIMULADOR)
   ========================================================================== */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 168, 255, 0.08);
  border: 1px solid rgba(0, 168, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--primary-blue); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--ice-cyan) 100%);
  color: #ffffff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(0, 119, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 168, 255, 0.25);
  color: var(--text-dark);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-secondary:hover {
  background: rgba(0, 168, 255, 0.05);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* Simulador Canvas Estilos */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 520px;
  width: 100%;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  border-radius: 20px;
  background: #09101b; /* Fondo oscuro para resaltar gas cian y cerveza dorada */
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7), 0 10px 40px rgba(10, 25, 47, 0.15);
}

#circuitSimulatorCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Panel inferior del simulador */
.simulator-control-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(13, 23, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 1rem 1.5rem;
  margin-top: -15px;
  z-index: 5;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.sim-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: linear-gradient(135deg, var(--beer-gold) 0%, var(--beer-amber) 100%);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
  opacity: 1;
  transform: translateY(0);
}

.sim-btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.1);
}

.sim-btn.active {
  background: #27c93f;
  box-shadow: 0 4px 15px rgba(39, 201, 63, 0.4);
}

.sim-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
}

.sim-telemetry {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.telemetry-item {
  font-family: monospace;
  font-size: 0.85rem;
  color: #a0aec0;
  border-left: 1.5px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.2rem;
}

.telemetry-item:first-child {
  border-left: none;
  padding-left: 0;
}

.telemetry-item span {
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   SERVICES SECTION (Claro Glacial)
   ========================================================================== */
section {
  padding: 7rem 0;
  position: relative;
}

section:nth-of-type(even) {
  background-color: var(--bg-section-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  padding: 3rem 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

/* Efecto hover radial en Light Mode */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 168, 255, 0.08), transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.service-icon {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid rgba(0, 119, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: var(--primary-blue);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.25);
  transform: scale(1.1) translateZ(20px);
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.service-card:hover h3 {
  color: var(--primary-blue);
  transform: translateZ(15px);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.service-card:hover p {
  color: var(--text-dark);
  transform: translateZ(10px);
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.service-features li i {
  color: var(--primary-blue);
  font-size: 0.9rem;
}

.service-card:hover .service-features li {
  transform: translateZ(5px);
  color: var(--text-dark);
}

/* ==========================================================================
   SOFTWARE SECTION (NRFlow Panel de Control - Se Mantiene Oscuro para Contraste)
   ========================================================================== */
.software-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.software-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.software-feature-item {
  display: flex;
  gap: 1.2rem;
}

.feature-number {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
}

.feature-text h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* El Widget Dashboard de NRFlow es un Panel Oscuro de Control */
.dashboard-mockup {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(10, 25, 47, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-header {
  background: #0a111c;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-controls {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dash-dot.red { background-color: #ff5f56; }
.dash-dot.yellow { background-color: #ffbd2e; }
.dash-dot.green { background-color: #27c93f; }

.dash-title {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #a0aec0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-title i {
  color: var(--primary-blue);
}

.dash-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #0f1825; /* Panel de control oscuro de máquina */
  color: #e2e8f0;
}

/* Keg Grid */
.kegs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.keg-card {
  background: rgba(26, 38, 57, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.keg-card.active {
  border-color: rgba(0, 168, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.05);
}

.keg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.keg-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.keg-name-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 800;
}

.moritz-badge {
  background: rgba(243, 156, 18, 0.15);
  color: var(--beer-gold);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.ambar-badge {
  background: rgba(231, 76, 60, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.keg-status-led {
  width: 8px;
  height: 8px;
  background-color: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
}

.keg-status-led.alert {
  background-color: #ff5f56;
  box-shadow: 0 0 8px #ff5f56;
  animation: pulse-red-led 1s infinite;
}

@keyframes pulse-red-led {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Visual Level Bar */
.keg-level-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.keg-visual-cylinder {
  flex: 1;
  height: 55px;
  background: rgba(10, 16, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.keg-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 85%;
  background: linear-gradient(0deg, var(--beer-amber) 0%, var(--beer-gold) 100%);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.keg-liquid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(1px);
}

.keg-liquid-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 8px 12px;
  opacity: 0.4;
  animation: flowing-bubbles 1.5s linear infinite;
}

@keyframes flowing-bubbles {
  0% { background-position: 0 0; }
  100% { background-position: 0 -24px; }
}

.keg-level-percent {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  width: 45px;
  text-align: right;
  color: #ffffff;
}

.keg-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.6rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: #a0aec0;
}

.keg-meta-val {
  color: #ffffff;
  font-weight: 700;
}

/* Pouring Controller Panel */
.pouring-panel {
  background: rgba(26, 38, 57, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pouring-header {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ice-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pouring-buttons {
  display: flex;
  gap: 1rem;
}

.pouring-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pouring-btn:hover {
  background: rgba(243, 156, 18, 0.12);
  border-color: var(--beer-gold);
  color: var(--beer-gold);
}

.pouring-btn.pouring-active {
  background: var(--beer-gold) !important;
  border-color: var(--beer-gold) !important;
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

.dash-chart {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #a0aec0;
  margin-bottom: 0.5rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  height: 60px;
  gap: 4px;
}

.chart-bar {
  flex: 1;
  background: rgba(0, 168, 255, 0.15);
  border-radius: 2px 2px 0 0;
  transition: height 0.3s ease, background 0.3s ease;
}

.chart-bar:hover {
  background: var(--ice-cyan);
}

/* ==========================================================================
   AGORA GROUP SECTION
   ========================================================================== */
.agora-section {
  position: relative;
}

.agora-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.agora-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.agora-brand-card {
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.agora-brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(10,25,47,0.08);
}

.brand-logo-placeholder {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.brand-logo-placeholder.moritz {
  color: #d35400;
  text-shadow: 0 0 10px rgba(211, 84, 0, 0.05);
}

.brand-logo-placeholder.ambar {
  color: #e74c3c;
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.05);
}

.brand-logo-placeholder.pilsner {
  color: #27ae60;
  text-shadow: 0 0 10px rgba(39, 174, 96, 0.05);
}

.brand-logo-placeholder.sierra {
  color: #2ecc71;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.05);
}

.brand-logo-placeholder.graven {
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.05);
}

.brand-logo-placeholder.tennents {
  color: #e67e22;
  text-shadow: 0 0 10px rgba(230, 126, 34, 0.05);
}

.brand-logo-placeholder.duvel {
  color: #c0392b;
  text-shadow: 0 0 10px rgba(192, 57, 43, 0.05);
}

.brand-logo-placeholder.chouffe {
  color: #f39c12;
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.05);
}

.brand-logo-placeholder.aperol {
  color: #ff4f00;
  text-shadow: 0 0 10px rgba(255, 79, 0, 0.1);
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.agora-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2rem 0;
}

.partnership-quote {
  border-left: 3.5px solid var(--primary-blue);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.98rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(0, 119, 255, 0.05);
  border: 1px solid rgba(0, 119, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(0, 119, 255, 0.03);
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  color: var(--text-dark);
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form Styling - Light Mode */
.contact-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.form-input {
  background: #ffffff;
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.12);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--ice-cyan) 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.25);
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.35);
}

/* ==========================================================================
   FOOTER (Se mantiene oscuro para contraste y solidez de página)
   ========================================================================== */
footer {
  background-color: #060b13; /* Footer oscuro muy elegante */
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
  color: #a0aec0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-about .footer-logo {
  height: 48px;
  width: 240px;
  margin-bottom: 1.5rem;
}

/* Invertir el logo del footer para que sea blanco en fondo oscuro */
.footer-about .footer-logo img {
  filter: invert(1) brightness(1.2);
}

.footer-about p {
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: rgba(0, 168, 255, 0.15);
  border-color: var(--ice-cyan);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-links-title {
  font-family: var(--font-title);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--ice-cyan);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  color: #718096;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    background: var(--bg-light);
    padding: 0.5rem 0;
  }
  
  .nav-container {
    height: 60px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: 0.4s ease;
    border-top: 1px solid rgba(0, 168, 255, 0.08);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-desc {
    margin: 0 auto 2.2rem auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    height: 440px;
  }
  
  .simulator-control-panel {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
  }
  
  .sim-telemetry {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .software-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .agora-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .agora-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .footer-about p {
    margin: 0 auto 1.5rem auto;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   GAME SIMULATOR SECTION (Bar Simulator)
   ========================================================================== */
.game-simulator-section {
  padding: 6rem 0;
  position: relative;
}

.game-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(13, 23, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Scoreboard */
.game-scoreboard {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.score-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.8rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.score-card:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(0, 168, 255, 0.4);
  box-shadow: 0 5px 15px rgba(0, 168, 255, 0.15);
}

.score-card.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Brand specific card borders on hover */
.score-card[data-beer="moritz"]:hover { border-color: #d35400; box-shadow: 0 5px 15px rgba(211, 84, 0, 0.2); }
.score-card[data-beer="ambar"]:hover { border-color: #e74c3c; box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2); }
.score-card[data-beer="pilsner"]:hover { border-color: #27ae60; box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2); }
.score-card[data-beer="sierra"]:hover { border-color: #2ecc71; box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2); }
.score-card[data-beer="graven"]:hover { border-color: #f1c40f; box-shadow: 0 5px 15px rgba(241, 196, 15, 0.2); }
.score-card[data-beer="tennents"]:hover { border-color: #e67e22; box-shadow: 0 5px 15px rgba(230, 126, 34, 0.2); }
.score-card[data-beer="duvel"]:hover { border-color: #c0392b; box-shadow: 0 5px 15px rgba(192, 57, 43, 0.2); }
.score-card[data-beer="chouffe"]:hover { border-color: #f39c12; box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2); }
.score-card[data-beer="aperol"]:hover { border-color: #ff4f00; box-shadow: 0 5px 15px rgba(255, 79, 0, 0.2); }

.score-icon {
  font-size: 1.1rem;
}

.score-name {
  font-size: 0.72rem;
  color: #334155;
  font-family: monospace;
  font-weight: 600;
  white-space: nowrap;
}

.score-value {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

/* Main Area */
.game-main-area {
  display: block;
  width: 100%;
}

.game-canvas-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 12px;
  background: #09101b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

#barSimulatorCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .game-scoreboard {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .game-scoreboard {
    grid-template-columns: repeat(3, 1fr);
  }
  .game-canvas-container {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .game-scoreboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}
