/*
 * NunLAT Premium Landing Page Stylesheet
 * Architectural Design: Apple Glassmorphism + Minimalist Premium
 * Typography: Inter (Google Fonts)
 */

/* ----------------------------------------------------
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ---------------------------------------------------- */
:root {
  /* Fonts */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette - Primary Blues (Pastel and Fresh) */
  --primary-100: #4A90C2;
  --primary-80: #5FA8D3;
  --primary-60: #7BB9DB;
  --primary-40: #9BC9E2;
  --primary-20: #BFE0EF;
  
  /* Color Palette - Accents */
  --accent-peach: #FFCF9A;
  --accent-magenta: #9E027A;
  --accent-green: #87E3A1; /* Mint Green (10-15% Visual Weight) */
  
  /* Color Palette - Neutrals */
  --neutral-dark: #2E3E4C;
  --neutral-gray: #C5D1D8;
  --neutral-bg: #FAF8FB; /* General Page Background (Light Grey) */
  --neutral-white: #FFFFFF; /* High-contrast Background for Cards/Containers */
  
  /* Gradients (135deg angle) */
  --gradient-primary: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200, #9BC9E2) 50%, var(--primary-20) 100%);
  --gradient-blue-glow: linear-gradient(135deg, var(--primary-100), var(--primary-80));
  --gradient-accent: linear-gradient(135deg, var(--accent-peach), var(--accent-green));
  --gradient-magenta: linear-gradient(135deg, var(--accent-magenta), var(--primary-100));
  
  /* Layout Constants */
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  --max-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px -2px rgba(197, 209, 216, 0.25);
  --shadow-medium: 0 12px 32px -4px rgba(197, 209, 216, 0.4);
  --shadow-glass: 0 8px 32px 0 rgba(197, 209, 216, 0.3);
  
  /* Borders */
  --border-glass: 1px solid rgba(255, 255, 255, 0.5);
  --border-glass-hover: 1px solid rgba(74, 144, 194, 0.3);
}

/* ----------------------------------------------------
   2. BASE RESET & GENERAL STYLES
   ---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--neutral-bg);
  color: var(--neutral-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------
   3. BACKGROUND ABSTRACT BLOBS
   ---------------------------------------------------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  animation: floatBlobs 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-20);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: rgba(255, 207, 154, 0.4); /* Accented Peach */
  top: 800px;
  left: -200px;
  animation-delay: -5s;
}

.blob-3 {
  width: 600px;
  height: 600px;
  background: rgba(135, 227, 161, 0.2); /* Accent Green (approx 12% weight) */
  bottom: 200px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes floatBlobs {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(80px) scale(1.1); }
}

/* ----------------------------------------------------
   4. GLASSMORPHISM UTILITIES
   ---------------------------------------------------- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(74, 144, 194, 0.35);
  box-shadow: 0 16px 48px rgba(95, 168, 211, 0.2);
  transform: translateY(-4px);
}

/* ----------------------------------------------------
   5. NAVIGATION HEADER (NAVBAR)
   ---------------------------------------------------- */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 248, 251, 0.65); /* Matches grey background, blended */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.navbar-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(197, 209, 216, 0.25);
  border-bottom-color: rgba(74, 144, 194, 0.1);
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 40px;
  width: auto;
}

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

.nav-item {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--neutral-dark);
  position: relative;
  opacity: 0.85;
}

.nav-item:hover {
  color: var(--primary-100);
  opacity: 1;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-100);
  transition: var(--transition-smooth);
  border-radius: 1px;
}

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

.nav-btn-cta {
  background: var(--primary-100);
  color: var(--neutral-white);
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  border: 1px solid transparent;
}

.nav-btn-cta:hover {
  background: var(--primary-80);
  box-shadow: 0 8px 24px rgba(74, 144, 194, 0.25);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--neutral-dark);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Open Mobile State for Hamburger */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ----------------------------------------------------
   6. HERO SECTION
   ---------------------------------------------------- */
.hero-section {
  padding: 160px 0 100px 0;
  position: relative;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--neutral-white);
  border: 1px solid rgba(197, 209, 216, 0.4);
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-subtle);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green); /* Verde de acento */
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(135, 227, 161, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(135, 227, 161, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(135, 227, 161, 0); }
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-100);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--neutral-dark);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.gradient-text-primary {
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-80) 50%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--neutral-dark);
  opacity: 0.8;
  margin-bottom: 40px;
  max-width: 520px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-100);
  color: var(--neutral-white);
  box-shadow: 0 8px 24px rgba(74, 144, 194, 0.2);
}

.btn-primary:hover {
  background: var(--primary-80);
  box-shadow: 0 12px 32px rgba(95, 168, 211, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--neutral-white);
  color: var(--neutral-dark);
  border: 1px solid rgba(197, 209, 216, 0.6);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background: var(--neutral-bg);
  border-color: var(--primary-60);
  transform: translateY(-2px);
}

/* Hero Visual Block */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-glass-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.window-header {
  background: rgba(255, 255, 255, 0.4);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: var(--accent-green); }

.window-title {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--neutral-dark);
  opacity: 0.5;
  font-family: monospace;
}

.window-body {
  padding: 24px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(197, 209, 216, 0.2);
}

.status-item:last-child {
  border-bottom: none;
}

.status-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.status-value.active {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-100);
  background: rgba(74, 144, 194, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-value.active::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent-green); /* 10% accent green balance */
  border-radius: 50%;
}

.nodes-diagram {
  margin-top: 24px;
  background: var(--neutral-white);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(197, 209, 216, 0.15);
}

.diagram-svg {
  width: 100%;
  height: auto;
}

.pulse-node {
  animation: pulseNodeGlow 3s infinite alternate ease-in-out;
}

@keyframes pulseNodeGlow {
  0% { transform: scale(0.98); opacity: 0.8; }
  100% { transform: scale(1.02); opacity: 1; }
}

.metrics-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric {
  background: var(--neutral-white);
  padding: 14px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(197, 209, 216, 0.2);
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

.metric-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-100);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--neutral-dark);
  opacity: 0.6;
  font-weight: 500;
}

/* ----------------------------------------------------
   7. CREDIBILITY BAR
   ---------------------------------------------------- */
.credibility-bar {
  padding: 40px 0;
  border-top: 1px solid rgba(197, 209, 216, 0.3);
  border-bottom: 1px solid rgba(197, 209, 216, 0.3);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.credibility-text {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  opacity: 0.5;
  margin-bottom: 24px;
}

.logos-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.partner-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--neutral-dark);
  opacity: 0.4;
  transition: var(--transition-smooth);
}

.partner-logo:hover {
  opacity: 0.85;
}

.partner-logo span {
  font-weight: 300;
  color: var(--primary-100);
}

/* ----------------------------------------------------
   8. SERVICES SECTION
   ---------------------------------------------------- */
.services-section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--primary-100);
  background: rgba(74, 144, 194, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--neutral-dark);
  opacity: 0.7;
}

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

.service-card {
  padding: 40px 30px;
  text-align: left;
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  background: rgba(74, 144, 194, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-100);
  margin-bottom: 24px;
}

.service-icon-wrapper.accent-icon {
  background: rgba(135, 227, 161, 0.15); /* Green background to pop this card */
  color: #55BF73;
}

.service-icon {
  width: 28px;
  height: 28px;
}

.service-icon.green-stroke {
  stroke: #55BF73;
}

.service-name {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-description {
  font-size: 0.95rem;
  color: var(--neutral-dark);
  opacity: 0.75;
  margin-bottom: 24px;
}

.service-bullets {
  border-top: 1px solid rgba(197, 209, 216, 0.3);
  padding-top: 20px;
}

.service-bullets li {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.service-bullets li:last-child {
  margin-bottom: 0;
}

.service-bullets li::before {
  content: '•';
  color: var(--primary-80);
  position: absolute;
  left: 6px;
  font-size: 1.1rem;
  top: -2px;
}

.service-card:hover .service-bullets li::before {
  color: var(--accent-green); /* Highlights green when hovered */
}

/* ----------------------------------------------------
   9. INTERACTIVE SOLUTIONS SHOWCASE
   ---------------------------------------------------- */
.solutions-showcase {
  padding: 60px 0 100px 0;
}

.showcase-card {
  padding: 40px;
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(197, 209, 216, 0.2);
  padding-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  color: var(--neutral-dark);
  opacity: 0.6;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: var(--border-radius-sm);
}

.tab-btn:hover {
  opacity: 1;
  background: rgba(74, 144, 194, 0.05);
}

.tab-btn.active {
  opacity: 1;
  color: var(--primary-100);
  background: var(--neutral-white);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(197, 209, 216, 0.3);
}

.showcase-content-area {
  position: relative;
}

.tab-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tab-content.active {
  display: grid;
  animation: fadeInContent 0.5s ease-in-out;
}

@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #55BF73;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.tab-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.tab-content p {
  font-size: 1rem;
  color: var(--neutral-dark);
  opacity: 0.8;
  margin-bottom: 24px;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.bullet-check {
  color: var(--accent-green);
  font-weight: 700;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

/* Showcase visuals */
.workspace-visual-element,
.smart-home-visual-element,
.consult-visual-element {
  width: 100%;
  max-width: 400px;
  background: var(--neutral-white);
  border-radius: var(--border-radius-md);
  padding: 24px;
  border: 1px solid rgba(197, 209, 216, 0.25);
  box-shadow: var(--shadow-medium);
}

.rack-header, .ui-header, .report-header {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.rack-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--neutral-bg);
  border: 1px solid rgba(197, 209, 216, 0.2);
  border-radius: var(--border-radius-sm);
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.rack-slot:last-child {
  margin-bottom: 0;
}

.rack-slot .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.rack-slot.online .led {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.rack-slot.standby .led {
  background-color: var(--accent-peach);
  box-shadow: 0 0 8px var(--accent-peach);
}

.ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(197, 209, 216, 0.15);
  font-size: 0.9rem;
  font-weight: 500;
}

.ui-row:last-child {
  border-bottom: none;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--neutral-gray);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--neutral-white);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.toggle-switch.active {
  background: var(--accent-green);
}

.toggle-switch.active::after {
  left: 22px;
}

.badge-status-green {
  background: rgba(135, 227, 161, 0.2);
  color: #3b8e53;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.temp-display {
  font-weight: 700;
  color: var(--primary-100);
}

.bar-row {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.bar-label {
  width: 80px;
}

.bar-container {
  flex-grow: 1;
  height: 8px;
  background: var(--neutral-bg);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.bar-fill.green-bg { background-color: var(--accent-green); }
.bar-fill.blue-bg { background-color: var(--primary-80); }
.bar-fill.peach-bg { background-color: var(--accent-peach); }

.bar-val {
  width: 34px;
  text-align: right;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ----------------------------------------------------
   10. WHY CHOOSE US (ABOUT) SECTION
   ---------------------------------------------------- */
.about-section {
  padding: 100px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 60px;
  align-items: center;
}

.about-text-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.about-text-content p {
  font-size: 1.05rem;
  color: var(--neutral-dark);
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 580px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: var(--neutral-white);
  padding: 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(197, 209, 216, 0.2);
  box-shadow: var(--shadow-subtle);
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-100);
  margin-bottom: 6px;
}

.stat-card p {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.6;
  margin-bottom: 0;
}

.glass-stack {
  position: relative;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-layer {
  position: absolute;
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
}

.glass-layer h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-100);
  margin-bottom: 6px;
}

.glass-layer p {
  font-size: 0.8rem;
  opacity: 0.7;
}

.layer-1 {
  top: 0;
  left: 0;
  z-index: 3;
}

.layer-2 {
  top: 50px;
  left: 30px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.85;
}

.layer-3 {
  top: 100px;
  left: 60px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0.7;
}

.glass-stack:hover .layer-1 { transform: translate(-10px, -10px); }
.glass-stack:hover .layer-3 { transform: translate(10px, 10px); }

/* ----------------------------------------------------
   11. DATA CAPTURE & VISIT BOOKING SECTION
   ---------------------------------------------------- */
.booking-section {
  padding: 100px 0;
  position: relative;
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border-radius: var(--border-radius-lg);
}

.booking-info {
  background: linear-gradient(135deg, rgba(74, 144, 194, 0.08) 0%, rgba(255, 255, 255, 0.5) 100%);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(197, 209, 216, 0.2);
}

.booking-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.booking-info p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 36px;
}

.info-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-icon {
  font-size: 1.25rem;
}

.info-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.booking-form-container {
  background: var(--neutral-white);
  padding: 50px;
  position: relative;
}

.tech-booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.3s ease;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(197, 209, 216, 0.6);
  background-color: var(--neutral-bg);
  outline: none;
  transition: var(--transition-smooth);
  color: var(--neutral-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-100);
  background-color: var(--neutral-white);
  box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.15);
}

/* Validation Style overrides */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #55BF73;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e06c75;
  background-color: rgba(224, 108, 117, 0.02);
}

.error-msg {
  font-size: 0.75rem;
  color: #e06c75;
  font-weight: 500;
  display: none;
  margin-top: 2px;
}

.form-group.error .error-msg {
  display: block;
}

/* Validation status bar */
.form-status-bar {
  padding: 10px 14px;
  background: rgba(197, 209, 216, 0.2);
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-status-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--neutral-dark);
  opacity: 0.7;
}

.form-status-bar.valid {
  background: rgba(135, 227, 161, 0.15);
  border: 1px solid rgba(135, 227, 161, 0.3);
}

.form-status-bar.valid .form-status-text {
  color: #2b703e;
  font-weight: 600;
  opacity: 1;
}

/* Premium Captcha Slider ("Slide to Verify") */
.captcha-slider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.captcha-track {
  height: 52px;
  background-color: var(--neutral-bg);
  border: 1px solid rgba(197, 209, 216, 0.5);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-track-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgba(135, 227, 161, 0.12); /* Subtle green fill progress */
  border-radius: 100px 0 0 100px;
  transition: width 0.05s linear;
}

.captcha-text-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-dark);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

.captcha-handle {
  width: 44px;
  height: 44px;
  background: var(--neutral-white);
  border: 1px solid rgba(197, 209, 216, 0.4);
  border-radius: 50%;
  position: absolute;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 4px 10px rgba(197, 209, 216, 0.5);
  z-index: 3;
  transition: left 0.1s ease-out, background-color 0.3s ease;
}

.captcha-handle:active {
  cursor: grabbing;
}

.captcha-handle .arrow-symbol {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-100);
  transition: var(--transition-smooth);
}

/* State when human verification unlocks */
.captcha-track.unlocked {
  border-color: var(--accent-green);
  background-color: rgba(135, 227, 161, 0.06);
}

.captcha-track.unlocked .captcha-text-label {
  color: #2b703e;
  font-weight: 700;
  opacity: 1;
}

.captcha-track.unlocked .captcha-handle {
  background-color: var(--accent-green); /* Verde de acento en el deslizador */
  border-color: var(--accent-green);
  cursor: default;
}

.captcha-track.unlocked .captcha-handle .arrow-symbol {
  color: var(--neutral-white);
  transform: rotate(360deg);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.submit-btn:disabled {
  background: var(--neutral-gray);
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Success Overlay View */
.booking-success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--neutral-white);
  padding: 50px;
  z-index: 10;
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  animation: fadeInSuccess 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(135, 227, 161, 0.15);
  color: #2b703e;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(135, 227, 161, 0.2);
}

.booking-success-message h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.booking-success-message p {
  font-size: 0.95rem;
  color: var(--neutral-dark);
  opacity: 0.75;
  max-width: 400px;
  line-height: 1.5;
}

/* ----------------------------------------------------
   12. FOOTER SECTION
   ---------------------------------------------------- */
.footer-section {
  background-color: var(--neutral-dark);
  color: var(--neutral-white);
  padding: 80px 0 40px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.65;
}

.footer-nav-groups {
  display: flex;
  gap: 80px;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.4;
  margin-bottom: 8px;
}

.footer-group a {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-group a:hover {
  opacity: 1;
  color: var(--accent-green); /* Hover link in footer pops green accent */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  opacity: 0.5;
}

.footer-compliance {
  display: flex;
  gap: 24px;
}

/* ----------------------------------------------------
   13. MEDIA QUERIES (RESPONSIVE STYLES)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.85rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid > div:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-description {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .booking-wrapper {
    grid-template-columns: 1fr;
  }
  
  .booking-info {
    padding: 36px;
    border-right: none;
    border-bottom: 1px solid rgba(197, 209, 216, 0.2);
  }
  
  .booking-form-container {
    padding: 36px;
  }
}

@media (max-width: 768px) {
  /* Toggle Mobile Navigation Menu */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--neutral-white);
    border-bottom: 1px solid rgba(197, 209, 216, 0.2);
    padding: 32px 24px;
    flex-direction: column;
    gap: 24px;
    box-shadow: var(--shadow-medium);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
  }

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

  .nav-btn-cta {
    width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid > div:last-child {
    grid-column: span 1;
  }

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

  .showcase-visual {
    order: -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .glass-stack {
    height: 240px;
    max-width: 320px;
    margin: 0 auto;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav-groups {
    gap: 40px;
    flex-wrap: wrap;
  }
}
