/* ==========================================================================
   ATMOS STUDIOS — APPLE & SAMSUNG LIGHT DESIGN SYSTEM
   Domótica & Seguridad Inteligente en Tarragona (Home Assistant & 1080p HD)
   Fluid Ambient Aurora Transitions & Iridescent Gradient System
   ========================================================================== */

/* Hidden state for conditional selectors */
.hidden {
  display: none !important;
  visibility: hidden !important;
}

/* --- ROOT VARIABLES & APPLE / SAMSUNG LIGHT PALETTE --- */
:root {
  color-scheme: light !important;

  /* Rich Frosted Titanium & Platinum Canvas */
  --bg-primary: #edf2f7;
  --bg-secondary: #e2e8f0;
  --bg-tertiary: #cbd5e1;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  /* Text Colors (High Contrast Deep Charcoal & Titanium) */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-inverse: #ffffff;
  
  /* Precision Accents */
  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --accent-blue-soft: rgba(0, 113, 227, 0.1);
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.12);
  --accent-amber: #f59e0b;
  --accent-violet: #6366f1;
  
  /* High-Contrast Borders & Specular Edges */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-hover: rgba(0, 113, 227, 0.45);
  --border-specular: rgba(255, 255, 255, 0.95);
  
  /* Deep Multi-Layer Ambient Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-card: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 26px 60px -12px rgba(15, 23, 42, 0.16), 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 35px rgba(0, 113, 227, 0.16);
  --blur-glass: blur(28px);
  
  /* Typography & Geometry */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container-max: 1280px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light !important;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary) !important;
  color: var(--text-main) !important;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- AMBIENT ANIMATED AURORA MESH GRADIENTS --- */
.ambient-gradient-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.58;
  will-change: transform;
}

/* Orb 1: Electric Blue Top Right */
.orb-1 {
  width: 55vw;
  height: 55vw;
  max-width: 750px;
  max-height: 750px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, #3b82f6 0%, #0071e3 50%, rgba(0, 113, 227, 0) 70%);
  animation: floatOrb1 20s infinite ease-in-out alternate;
}

/* Orb 2: Vibrant Cyan Middle Left */
.orb-2 {
  width: 50vw;
  height: 50vw;
  max-width: 680px;
  max-height: 680px;
  top: 35%;
  left: -15%;
  background: radial-gradient(circle, #06b6d4 0%, #38bdf8 45%, rgba(56, 189, 248, 0) 70%);
  animation: floatOrb2 25s infinite ease-in-out alternate;
}

/* Orb 3: Titanium Indigo / Violet Center Right */
.orb-3 {
  width: 48vw;
  height: 48vw;
  max-width: 650px;
  max-height: 650px;
  top: 60%;
  right: -8%;
  background: radial-gradient(circle, #6366f1 0%, #818cf8 40%, rgba(99, 102, 241, 0) 70%);
  animation: floatOrb3 22s infinite ease-in-out alternate;
}

/* Orb 4: Warm Sunset Amber / Coral Bottom Left */
.orb-4 {
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  bottom: -15%;
  left: 20%;
  background: radial-gradient(circle, #f59e0b 0%, #fbbf24 40%, rgba(245, 158, 11, 0) 70%);
  opacity: 0.38;
  animation: floatOrb4 28s infinite ease-in-out alternate;
}

/* Orb 5: Emerald Accent Center */
.orb-5 {
  width: 35vw;
  height: 35vw;
  max-width: 500px;
  max-height: 500px;
  top: 15%;
  left: 30%;
  background: radial-gradient(circle, #10b981 0%, #34d399 35%, rgba(16, 185, 129, 0) 70%);
  opacity: 0.3;
  animation: floatOrb5 18s infinite ease-in-out alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(1.1); }
  100% { transform: translate(40px, -40px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.15); }
  100% { transform: translate(-40px, 50px) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -80px) scale(1.08); }
  100% { transform: translate(50px, 60px) scale(0.92); }
}

@keyframes floatOrb4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -50px) scale(1.1); }
  100% { transform: translate(-50px, 40px) scale(0.95); }
}

@keyframes floatOrb5 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-50px, 60px) scale(1.2); }
  100% { transform: translate(60px, -30px) scale(1); }
}

/* Subtle Organic Noise */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Pearl & Blue Particle Mesh Canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.gradient-text {
  background: linear-gradient(135deg, #0f172a 10%, #005bb5 60%, #0f172a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-blue {
  color: var(--accent-blue);
}

.highlight-green {
  color: var(--accent-emerald);
}

.highlight-muted {
  color: var(--text-muted);
}

/* --- BUTTONS & PILLS (APPLE & SAMSUNG STYLE) --- */
.btn-apple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  transition: var(--transition-smooth);
}

.btn-apple-primary:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
}

.btn-apple-primary.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn-apple-primary.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-apple-primary.btn-block {
  width: 100%;
}

.btn-apple-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-apple-secondary:hover {
  background: #ffffff;
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.btn-apple-secondary.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-apple-secondary.btn-block {
  width: 100%;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

/* --- IRIDESCENT SHIMMER BADGE PILL SYSTEM --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 245, 255, 0.92) 100%);
  border: 1px solid rgba(0, 113, 227, 0.2);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 113, 227, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.badge-pill:hover {
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: 0 6px 22px rgba(0, 113, 227, 0.14);
}

.badge-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: badgeShine 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes badgeShine {
  0% { left: -100%; }
  35%, 100% { left: 100%; }
}

.badge-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGreen 2.2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.5; }
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.badge-sep {
  color: rgba(0, 113, 227, 0.3);
  font-size: 0.75rem;
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* --- SECTION HEADERS --- */
.section-header {
  margin-bottom: 54px;
}

.section-title {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 1.08;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.6;
}

/* --- TOPBAR HEADER (APPLE CLEAN DESIGN) --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.topbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-symbol {
  width: 28px;
  height: 28px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.brand-divider {
  color: var(--accent-blue);
}

.brand-sub {
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: #ffffff;
  border-color: var(--border-medium);
  color: var(--text-main);
}

.icon-btn.muted {
  opacity: 0.5;
}

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-smooth);
}

/* --- SEAMLESS CONTINUOUS SECTIONS (NO HARD CUTS) --- */
.hero-section,
.ecosystem-section,
.pricing-section,
.architecture-section,
.projects-section,
.terminal-section,
.contact-section {
  position: relative;
  background: transparent;
  border-top: none;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  padding: 140px 32px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  line-height: 1.05;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* Dedicated Spacious Telemetry Bar */
.hero-telemetry-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  margin-bottom: 36px;
  width: fit-content;
}

.telemetry-header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-main);
  flex-wrap: wrap;
}

.telemetry-unit {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pulse-green {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.telemetry-label {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.telemetry-divider {
  width: 1px;
  height: 14px;
  background: var(--border-medium);
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.stat-unit {
  color: var(--accent-blue);
  font-size: 1.2rem;
  margin-left: 2px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* Hero Visual Showcase */
.hero-media-wrapper {
  position: relative;
}

.hero-card-glass {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-glass-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #fafafc;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.hud-coords {
  color: var(--text-dim);
}

.hero-img-container {
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

.hero-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 10s ease;
}

.hero-card-glass:hover .hero-featured-image {
  transform: scale(1.05);
}

.image-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.75) 100%);
  pointer-events: none;
}

/* Pulsing Hotspots on HUD */
.hud-node {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.node-core {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #ffffff;
  animation: nodePulse 2.5s infinite ease-out;
}

@keyframes nodePulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hud-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
}

.hud-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
}

.hud-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.badge-status {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.8vw, 0.85rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: clamp(3px, 0.4vw, 8px) clamp(8px, 0.8vw, 16px);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
  width: fit-content;
}

.scroll-down-indicator:hover {
  color: var(--text-main);
}

.scroll-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  animation: bounceDown 2s infinite ease-in-out;
}

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

/* --- SECTION: SERVICIOS --- */
.ecosystem-section {
  padding: 120px 0;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-card-top {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.service-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.service-card-image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-image-wrap img {
  transform: scale(1.06);
}

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

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

.service-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Vibrant Gradient Category Tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.05);
  transition: var(--transition-smooth);
}

.service-card:hover .service-tags span {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: rgba(2, 132, 199, 0.35);
  color: #0369a1;
}

/* --- SECTION: TARIFAS & PLANES MENSUALES --- */
.pricing-section {
  padding: 120px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.highlight-card {
  border: 2px solid var(--accent-blue);
  box-shadow: 0 20px 50px -10px rgba(0, 113, 227, 0.18), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0071e3 0%, #2563eb 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.plan-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.plan-tag.tag-blue {
  background: #eff6ff;
  color: var(--accent-blue);
}

.plan-tag.tag-emerald {
  background: #ecfdf5;
  color: #059669;
}

.plan-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.plan-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
  min-height: 48px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.plan-freq {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.plan-features li i {
  color: var(--accent-emerald);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- SECTION: ARQUITECTURA / SIMULADOR --- */
.architecture-section {
  padding: 120px 0;
}

.architecture-interactive-box {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.layer-tabs-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.layer-tab {
  background: none;
  border: none;
  border-right: 1px solid var(--border-subtle);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.layer-tab:last-child {
  border-right: none;
}

.layer-tab .layer-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.layer-tab .layer-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.layer-tab .layer-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.layer-tab:hover {
  background: rgba(255, 255, 255, 0.8);
}

.layer-tab.active {
  background: #ffffff;
  border-bottom: 2px solid var(--text-main);
}

.layer-tab.active .layer-title {
  color: var(--text-main);
  font-weight: 600;
}

/* Layer Display Card */
.layer-display-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 40px;
  gap: 48px;
  align-items: center;
}

.blueprint-diagram {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.03);
}

.blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
}

.blueprint-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.layer-info-col {
  display: flex;
  flex-direction: column;
}

.layer-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
  font-weight: 700;
}

.layer-main-title {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.layer-main-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.layer-specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.spec-name {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.spec-value {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* --- SECTION: PROYECTOS / CASOS REALES --- */
.projects-section {
  padding: 120px 0;
}

.project-featured-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  margin-bottom: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.project-info-side {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.status-badge-green {
  color: var(--accent-emerald);
  font-weight: 700;
}

.project-title {
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.project-location {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 18px;
}

.project-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.project-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 26px;
}

.proj-spec {
  display: flex;
  flex-direction: column;
}

.proj-spec b {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--text-main);
  font-weight: 700;
}

.proj-spec span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Tech Tags on Projects */
.project-hardware-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(0, 113, 227, 0.22);
  color: #005bb5;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.06);
  transition: var(--transition-smooth);
}

.tech-tag:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0071e3 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
}

.project-media-side {
  position: relative;
  min-height: 460px;
}

.project-image-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-card);
}

.project-overlay-badge span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-overlay-badge strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-main);
}

/* Secondary Projects Grid */
.secondary-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-subcard {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
}

.project-subcard:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.subcard-img {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

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

.project-subcard:hover .subcard-img img {
  transform: scale(1.05);
}

.subcard-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 245, 255, 0.92) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 113, 227, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #005bb5;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.1);
}

.subcard-content {
  padding: 24px;
}

.subcard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.subcard-header h4 {
  font-size: 1.35rem;
}

.subcard-header span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.subcard-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.subcard-footer {
  display: flex;
  gap: 8px;
}

/* Gradient Mini Badges */
.badge-mini {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 999px;
  color: #334155;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}

/* --- SECTION: TERMINAL ASISTENTE & CONFIGURADOR --- */
.terminal-section {
  padding: 120px 0;
}

.tool-tabs-wrapper {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.tool-tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.tool-tab-btn {
  flex: 1;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tool-tab-btn:hover {
  color: var(--text-main);
  background: #ffffff;
}

.tool-tab-btn.active {
  color: var(--text-main);
  background: #ffffff;
  border-bottom: 2px solid var(--text-main);
  font-weight: 600;
}

.tool-tab-content {
  display: none;
  padding: 40px;
}

.tool-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* --- TAB 1: CONFIGURATOR & PRICING CALCULATOR --- */
.configurator-box {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
}

.config-heading {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.config-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.config-group {
  margin-bottom: 28px;
}

.config-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.chip-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.chip:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  transform: translateY(-1px);
}

.chip.active {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #0f172a;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

.label-with-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.range-display {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.custom-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.layer-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  padding: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.check-item:hover {
  background: #ffffff;
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.check-item input[type="checkbox"] {
  display: none;
}

.check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition-smooth);
}

.check-item input:checked + .check-box {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.check-label-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.check-label-text span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Configurator Summary Box */
.summary-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.summary-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.summary-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.summary-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.summary-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.summary-metric-row span {
  color: var(--text-muted);
}

.summary-metric-row strong {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0 24px;
}

.summary-estimate-block {
  margin-bottom: 28px;
}

.est-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}

.est-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.est-note {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.4;
  display: block;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- TAB 2: TERMINAL CLI (macOS Developer Style) --- */
.terminal-cyber-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-cyber-top {
  background: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot-red, .dot-yellow, .dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.terminal-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.term-title-icon {
  width: 14px;
  height: 14px;
  color: var(--text-main);
}

.terminal-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

.terminal-cyber-body {
  padding: 24px;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.7;
}

.term-line {
  margin-bottom: 8px;
  color: var(--text-main);
}

.term-accent {
  color: var(--accent-blue);
  font-weight: 700;
}

.prompt-line {
  margin-top: 14px;
}

.term-user {
  color: var(--accent-blue);
  font-weight: 700;
  margin-right: 8px;
}

.term-hint {
  color: var(--text-dim);
}

.terminal-quick-actions {
  padding: 12px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.term-chip {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
}

.term-chip:hover {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.term-chip span {
  color: var(--accent-blue);
  margin-left: 4px;
}

.term-chip:hover span {
  color: #ffffff;
}

.terminal-input-bar {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
}

.term-prompt-symbol {
  color: var(--accent-blue);
  font-weight: 700;
}

.terminal-input-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
}

.term-send-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

/* --- SECTION: CONTACTO --- */
.contact-section {
  padding: 120px 0;
}

.contact-card-glass {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  padding: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-heading {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.15;
}

.contact-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-direct-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-main);
}

.direct-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.direct-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.direct-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-main);
}

/* Cyber / Apple Form */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-field input, .form-field textarea {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-field input:focus, .form-field textarea:focus {
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.feedback-box {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
}

.feedback-box.success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

/* --- FOOTER (SEAMLESS INTEGRATION) --- */
.footer-section {
  padding: 90px 0 40px;
  background: rgba(241, 245, 249, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 3;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #059669;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 12px;
}

/* --- REVEAL ANIMATIONS (INTERSECTION OBSERVER) --- */
.reveal {
  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.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .layer-tabs-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .layer-tab:nth-child(3) {
    border-right: none;
  }
  .layer-display-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-media-side {
    min-height: 360px;
  }
  .configurator-box {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    padding: 0 20px;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  
  /* Mobile menu open */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 18px;
    box-shadow: var(--shadow-card);
  }

  .hero-section {
    padding-top: 110px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-telemetry-card {
    width: 100%;
  }
  .telemetry-header-bar {
    gap: 10px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .layer-tabs-container {
    grid-template-columns: 1fr 1fr;
  }
  .layer-tab:nth-child(even) {
    border-right: none;
  }
  .layer-display-card {
    padding: 20px;
  }
  .secondary-projects-grid {
    grid-template-columns: 1fr;
  }
  .project-info-side {
    padding: 24px;
  }
  .project-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .layer-checkboxes {
    grid-template-columns: 1fr;
  }
  .tool-tab-content {
    padding: 20px;
  }
  .contact-card-glass {
    padding: 30px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Hidden state for conditional selectors */
.hidden {
  display: none !important;
  visibility: hidden !important;
}
