/* ==========================================================================
   TjByte — Stylesheet (Vanilla CSS)
   Brand Identity: "Built at the edge."
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* TjByte Official Brand Palette */
  --color-navy: #0B1220;
  --color-blue: #2563EB;
  --color-blue-hover: #1D4ED8;
  --color-blue-light: #60A5FA;
  --color-cyan: #22D3EE;
  --color-cyan-glow: rgba(34, 211, 238, 0.25);
  --color-cloud: #F8FAFC;
  --color-white: #FFFFFF;
  --color-slate: #64748B;
  --color-slate-light: #E2E8F0;
  --color-slate-dark: #1E293B;
  --color-slate-darker: #0F172A;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Dimensions & Spacing */
  --container-max-width: 1200px;
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Theme Tokens (Default) --- */
[data-theme="dark"] {
  --bg-body: #070B14;
  --bg-surface: #0B1220;
  --bg-surface-elevated: #111A2E;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 58, 0.9);
  --border-color: rgba(226, 232, 240, 0.08);
  --border-color-hover: rgba(34, 211, 238, 0.3);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --badge-bg: rgba(37, 99, 235, 0.12);
  --badge-border: rgba(34, 211, 238, 0.25);
  --badge-text: #38BDF8;

  --header-bg: rgba(7, 11, 20, 0.85);
  --input-bg: rgba(11, 18, 32, 0.8);
  --input-border: rgba(148, 163, 184, 0.2);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.2);
}

/* --- Light Theme Tokens --- */
[data-theme="light"] {
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #FFFFFF;
  --border-color: #E2E8F0;
  --border-color-hover: #CBD5E1;
  
  --text-primary: #0B1220;
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  --badge-bg: rgba(37, 99, 235, 0.08);
  --badge-border: rgba(37, 99, 235, 0.2);
  --badge-text: #2563EB;

  --header-bg: rgba(248, 250, 252, 0.85);
  --input-bg: #FFFFFF;
  --input-border: #CBD5E1;

  --shadow-sm: 0 1px 3px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 6px 20px rgba(11, 18, 32, 0.06);
  --shadow-lg: 0 16px 40px rgba(11, 18, 32, 0.08);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.12);
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Selection */
::selection {
  background-color: var(--color-blue);
  color: #FFFFFF;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

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

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

/* Ambient glow & decorative backgrounds */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  transition: opacity var(--transition-slow);
}

[data-theme="light"] .bg-glow {
  opacity: 0.25;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
  top: 400px;
  right: -100px;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue) 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3B82F6 0%, var(--color-blue) 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

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

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--badge-text);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.text-gradient {
  background: linear-gradient(120deg, #60A5FA 0%, var(--color-cyan) 60%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(120deg, var(--color-blue) 0%, #0284C7 60%, var(--color-navy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(34, 211, 238, 0.15);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  height: 38px;
  z-index: 1002;
}

.logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-img {
  transform: scale(1.02);
}

/* Dynamic theme logo switching */
[data-theme="dark"] .logo-img-light {
  display: none;
}
[data-theme="dark"] .logo-img-dark {
  display: block;
}

[data-theme="light"] .logo-img-dark {
  display: none;
}
[data-theme="light"] .logo-img-light {
  display: block;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-cyan);
  transition: width var(--transition-fast);
}

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

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

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

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--color-cyan);
  background: var(--bg-card-hover);
}

[data-theme="dark"] .icon-sun {
  display: block;
}
[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
}

/* Hamburger toggle for mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  padding: 10px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  z-index: 1002;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.section-hero {
  padding-top: 60px;
  padding-bottom: 90px;
  position: relative;
}

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

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

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

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-cyan);
}

[data-theme="light"] .stat-number {
  color: var(--color-blue);
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-color);
}

/* Hero Visual: Terminal Card */
.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.visual-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-4px);
}

.visual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .visual-card-header {
  background: rgba(241, 245, 249, 0.8);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.visual-terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.visual-card-body {
  padding: 30px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.byte-geometry-wrapper {
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  padding: 10px;
}

.byte-geometry-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 14px rgba(34, 211, 238, 0.3));
}

.geo-part {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.visual-card:hover .geo-part {
  filter: brightness(1.15);
}

.terminal-log {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

[data-theme="light"] .terminal-log {
  background: #F1F5F9;
}

.log-line {
  display: flex;
  gap: 8px;
}

.log-prefix {
  color: var(--color-cyan);
  font-weight: 700;
}

[data-theme="light"] .log-prefix {
  color: var(--color-blue);
}

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

.log-line.highlight {
  color: #34D399;
  margin-top: 4px;
  font-weight: 500;
}

.visual-card-footer {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .visual-card-footer {
  background: rgba(248, 250, 252, 0.6);
}

.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.chip-cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--color-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

[data-theme="light"] .chip-cyan {
  color: #0284C7;
  border-color: rgba(2, 132, 199, 0.3);
}

.chip-blue {
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .chip-blue {
  color: var(--color-blue);
  border-color: rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Section 2: Qué Hacemos
   ========================================================================== */
.section-what {
  padding: 100px 0;
  position: relative;
}

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

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

[data-theme="light"] .section-eyebrow {
  color: var(--color-blue);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* The Real-World Lab Card */
.lab-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .lab-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(34, 211, 238, 0.08) 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

.lab-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: 20px;
}

[data-theme="light"] .lab-card-badge {
  color: var(--color-blue);
}

.lab-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.lab-card-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.lab-card-text strong {
  color: var(--color-cyan);
}

[data-theme="light"] .lab-card-text strong {
  color: var(--color-blue);
}

.lab-card-subtext {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 3 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

[data-theme="light"] .pillar-icon {
  color: var(--color-blue);
  border-color: rgba(37, 99, 235, 0.2);
}

.pillar-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 3: Portafolio de Productos
   ========================================================================== */
.section-portfolio {
  padding: 100px 0;
  position: relative;
  background-color: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-blue), var(--color-cyan));
  transition: height var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
  height: 100%;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.product-icon-cofi {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.3);
}

.product-icon-metoca {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}

.product-icon-jornada {
  background: rgba(37, 99, 235, 0.15);
  color: #38BDF8;
  border-color: rgba(37, 99, 235, 0.3);
}

.product-icon-alt {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border-color: rgba(168, 85, 247, 0.3);
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.status-indicator {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.status-live {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-beta {
  background: rgba(168, 85, 247, 0.12);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.product-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.product-target {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  line-height: 1.5;
}

.target-label {
  font-weight: 600;
  color: var(--color-cyan);
  display: block;
  margin-bottom: 2px;
}

[data-theme="light"] .target-label {
  color: var(--color-blue);
}

.target-desc {
  color: var(--text-secondary);
}

.product-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-features li::before {
  content: '→';
  color: var(--color-cyan);
  font-weight: 700;
}

[data-theme="light"] .product-features li::before {
  color: var(--color-blue);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
}

.product-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

[data-theme="light"] .product-link {
  color: var(--color-blue);
}

.product-link:hover {
  gap: 10px;
}

/* ==========================================================================
   Section 4: Quiénes Somos
   ========================================================================== */
.section-about {
  padding: 100px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.about-lead {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
}

.founders-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition-normal);
}

.founder-card:hover {
  border-color: var(--color-cyan);
}

.founder-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

[data-theme="light"] .founder-badge {
  color: var(--color-blue);
}

.founder-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.founder-exp {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.founder-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.founder-desc strong {
  color: var(--text-primary);
}

/* Quote card */
.quote-border-card {
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid var(--color-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  position: relative;
}

[data-theme="light"] .quote-border-card {
  border-left-color: var(--color-blue);
}

.quote-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-cyan);
  font-family: Georgia, serif;
  margin-bottom: -10px;
}

[data-theme="light"] .quote-icon {
  color: var(--color-blue);
}

.quote-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* About Sidebar */
.about-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
}

.highlight-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.principles-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.principle-bullet {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(34, 211, 238, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

[data-theme="light"] .principle-bullet {
  color: var(--color-blue);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
}

.principles-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.principles-list p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.location-badge-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.location-badge-box svg {
  color: var(--color-cyan);
}

[data-theme="light"] .location-badge-box svg {
  color: var(--color-blue);
}

/* ==========================================================================
   Section 5: Contacto
   ========================================================================== */
.section-contact {
  padding: 100px 0;
  position: relative;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(16px);
}

.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0 36px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

a.channel-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .channel-icon {
  color: var(--color-blue);
}

.channel-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.channel-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.channel-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cyan);
}

[data-theme="light"] .channel-action {
  color: var(--color-blue);
}

.channel-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-feedback {
  font-size: 0.9rem;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 70px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-left {
  max-width: 380px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-cyan);
  margin-bottom: 16px;
}

[data-theme="light"] .footer-tagline {
  color: var(--color-blue);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.footer-heading {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--color-cyan);
}

[data-theme="light"] .footer-col a:hover {
  color: var(--color-blue);
}

.social-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First Overrides)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

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

@media (max-width: 768px) {
  .site-header {
    height: 68px;
  }

  /* Mobile menu drawer */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  .header-cta {
    display: none;
  }

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

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

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

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

  .founders-cards {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 32px 20px;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .lab-card {
    padding: 24px 20px;
  }

  .product-card {
    padding: 24px 20px;
  }
}
