/* ==========================================================================
   camnr.uk - Design System & Stylesheet Principal
   Autor: Camilo (Duoc UC - Ingeniería en Informática)
   ========================================================================== */

:root {
  --bg-main: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #8292a4;

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-emerald: #059669;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-tactile: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Iluminación Arquitectónica Cenital Estática (Cero JS / Cero Ruido DOM) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(56, 189, 248, 0.11) 0%, rgba(59, 130, 246, 0.05) 45%, transparent 80%),
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 80% 35%, rgba(168, 85, 247, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  display: none !important;
}

.bg-grid-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(
    ellipse 75% 65% at 50% 32%,
    #000 10%,
    rgba(0, 0, 0, 0.4) 55%,
    transparent 90%
  );
  mask-image: radial-gradient(
    ellipse 75% 65% at 50% 32%,
    #000 10%,
    rgba(0, 0, 0, 0.4) 55%,
    transparent 90%
  );
}

/* Tipografía y Textos Especiales */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

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

.text-accent {
  color: var(--accent-cyan);
}

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

.text-purple {
  color: var(--accent-purple);
}

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

.text-orange {
  color: var(--accent-orange);
}

.text-red {
  color: var(--accent-red);
}

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

/* Navbar con Acabado 3D Mate & Iluminación Especular Realista */
.navbar-container {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(9, 13, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 
    0 10px 28px -12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.35);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.navbar-container::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.22) 25%,
    rgba(168, 85, 247, 0.22) 75%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.75;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: max(0.75rem, env(safe-area-inset-top, 0.75rem)) 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Alineación de Plomada Exacta (820px de contenido interno) con .minimal-hero */
.navbar.navbar-public {
  max-width: calc(820px + 3rem);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.5px;
  padding: 0.35rem 0.65rem;
  margin-left: -0.65rem;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: 
    transform var(--transition-fast) var(--ease-spring),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
}

.nav-brand:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.03);
}

.nav-brand:active {
  transform: scale(0.97) translateY(0.5px);
}

.nav-brand:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.6);
}

.brand-bracket {
  color: var(--accent-cyan);
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s var(--ease-spring);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
  display: inline-block;
}

.brand-name {
  color: var(--text-primary);
  margin: 0 1.5px;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.brand-tld {
  color: var(--accent-purple);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

.nav-brand:hover .brand-bracket {
  color: #7dd3fc;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  transform: scale(1.08);
}

.nav-brand:hover .brand-tld {
  color: #c084fc;
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

/* Indicador LIVE en el Dock de Navegación (Minimal Laser Dot + Cristal Sutil) */
.nav-live-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: 
    transform 0.2s var(--ease-spring),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  border: 1px solid transparent;
  outline: none;
  background: transparent;
  user-select: none;
}

/* Divisor automático a la derecha de LIVE cuando está dentro del Dock */
.nav-segmented-pill .nav-live-pill::after {
  content: '';
  position: absolute;
  right: -0.18rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.nav-segmented-pill .nav-live-pill {
  margin-right: 0.15rem;
}

/* Estado Offline en Navbar (Oculto) */
.nav-live-pill.is-offline {
  display: none !important;
}

/* Estado Online (En Vivo): Minimalista en reposo, iluminado en hover */
.nav-live-pill.is-live {
  display: inline-flex;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.24);
  color: #f8fafc;
  animation: live-appear 0.35s var(--ease-spring);
}

@keyframes live-appear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.nav-live-pill.is-live:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.48);
  color: #ffffff;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    0 4px 14px -2px rgba(239, 68, 68, 0.3);
}

.nav-live-pill.is-live:active {
  transform: scale(0.96);
}

.nav-live-pill:focus-visible {
  box-shadow: 0 0 0 2px rgba(9, 13, 22, 0.9), 0 0 0 4px rgba(239, 68, 68, 0.7);
}

/* Punto Láser Plano Puro (Sin esfera 3D blanca de plástico) */
.nav-live-pill.is-live .live-dot-core,
.live-status-pill.is-live .live-dot-core {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}

.nav-live-pill.is-live .live-dot-ping {
  background-color: #ef4444;
  animation: ping-wave 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Contenedor del punto de pulso */
.live-dot-container {
  position: relative;
  display: inline-flex;
  width: 7px;
  height: 7px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-dot-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.live-dot-ping {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  opacity: 0.7;
  z-index: 1;
}

@keyframes ping-wave {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes live-glow-pulse {
  0%, 100% {
    box-shadow: 
      inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
      inset 0 -1px 0 0 rgba(0, 0, 0, 0.4),
      0 4px 14px rgba(239, 68, 68, 0.25);
  }
  50% {
    box-shadow: 
      inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
      inset 0 -1px 0 0 rgba(0, 0, 0, 0.4),
      0 6px 22px rgba(239, 68, 68, 0.55);
  }
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast), transform var(--transition-fast) var(--ease-spring);
}

.nav-item:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Segmented Navigation Pill (Dock 3D Mate para Apps | 3D Lab) */
.nav-segmented-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.4),
    0 6px 16px -4px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-pill-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s var(--ease-spring);
  white-space: nowrap;
  user-select: none;
}

.nav-pill-link .btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-spring), color 0.2s ease, filter 0.2s ease;
}

.nav-pill-home .btn-icon,
.nav-pill-apps .btn-icon {
  color: var(--accent-cyan);
}

.nav-pill-lab .btn-icon {
  color: var(--accent-purple);
}

.nav-pill-home:hover,
.nav-pill-apps:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  color: #ffffff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

.nav-pill-home:hover .btn-icon,
.nav-pill-apps:hover .btn-icon {
  color: #7dd3fc;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
  transform: scale(1.1);
}

.nav-pill-lab:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.32);
  color: #ffffff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

.nav-pill-lab:hover .btn-icon {
  color: #d8b4fe;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.45));
  transform: scale(1.1);
}

/* Selector de Idioma (ES / EN) Integrado al Dock */
.nav-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.16rem 0.36rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  user-select: none;
  line-height: 1;
}

.lang-opt,
.lang-opt:visited {
  color: #94a3b8 !important;
  text-decoration: none !important;
  padding: 0.18rem 0.35rem;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
  line-height: 1;
  display: inline-block;
}

.lang-opt:hover:not(.is-active) {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
}

.lang-opt.is-active,
.lang-opt.is-active:visited {
  color: var(--accent-cyan, #38bdf8) !important;
  font-weight: 700;
  cursor: default;
  text-decoration: none !important;
}

.lang-opt-separator {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  user-select: none;
  line-height: 1;
}

.nav-pill-link:active {
  transform: scale(0.96);
}

.server-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-green 2s infinite;
}

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

/* Botones con Físicas Táctiles & Acabados 3D Mate */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.58rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: 
    transform 0.2s var(--ease-spring),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  border: 1px solid transparent;
  outline: none;
  user-select: none;
  position: relative;
}

.btn:active {
  transform: scale(0.96) translateY(1px);
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-main), 0 0 0 4px var(--accent-cyan);
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease-spring), color 0.25s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  color: #030712;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.55),
    0 6px 20px rgba(56, 189, 248, 0.5);
}

.btn-primary:active {
  transform: scale(0.96) translateY(1px);
  box-shadow: 
    inset 0 1px 2px 0 rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.35),
    0 6px 16px -2px rgba(0, 0, 0, 0.45);
}

.btn-secondary:active {
  transform: scale(0.96) translateY(1px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 
    inset 0 1px 3px 0 rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.btn-outline:active {
  transform: scale(0.96) translateY(1px);
}

.btn-glass {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.btn-glass:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35);
}

.btn-glass:active {
  transform: scale(0.96) translateY(1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.35);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.btn-danger:active {
  transform: scale(0.96) translateY(1px);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.6);
}

/* Layout Principal */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  flex: 1 0 auto;
  box-sizing: border-box;
}

.public-minimal-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 1.5rem 1.5rem 2rem;
  width: 100%;
}

/* Hero Section Minimal */
.minimal-hero {
  padding: 2rem 0;
  text-align: left;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.4),
    0 8px 20px -6px rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.95rem 0.3rem 0.32rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: 
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast) var(--ease-spring);
}

.hero-badge:hover {
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.4),
    0 10px 24px -6px rgba(56, 189, 248, 0.15);
}

.hero-badge .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-badge .badge-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
  stroke-width: 2.2;
  flex-shrink: 0;
}

.hero-badge .badge-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -1.5px;
  margin-bottom: 1.4rem;
  font-weight: 800;
  line-height: 1.12;
}

.hero-title-role {
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 48%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -1.4px;
}

.hero-subtitle {
  max-width: 660px;
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 1.85rem;
  text-wrap: pretty;
}

.hero-subtitle strong {
  color: #f8fafc;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.08);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #cbd5e1;
  white-space: nowrap;
}

.meta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.meta-item-location .meta-icon {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.35));
}

.meta-item-stack .meta-icon {
  color: var(--accent-purple);
  filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.35));
}

.public-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.public-links-row .btn {
  padding: 0.62rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.1px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.public-links-row .btn .btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Botón Primario Hero: Dark Photonic Glass con energía Cyan/Blue */
.public-links-row .btn-hero-contact {
  background: 
    linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(59, 130, 246, 0.14) 100%),
    rgba(15, 23, 42, 0.82);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.45),
    0 6px 20px -4px rgba(56, 189, 248, 0.28);
}

.public-links-row .btn-hero-contact .btn-icon {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.public-links-row .btn-hero-contact:hover {
  background: 
    linear-gradient(135deg, rgba(56, 189, 248, 0.32) 0%, rgba(59, 130, 246, 0.22) 100%),
    rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.75);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.5),
    0 10px 26px -4px rgba(56, 189, 248, 0.42);
}

.public-links-row .btn-hero-contact:hover .btn-icon {
  color: #7dd3fc;
  transform: scale(1.08) translateY(-0.5px);
}

/* Botones Secundarios Hero (GitHub / LinkedIn): 3D Matte Glass + Affordance Externa */
.public-links-row .btn-hero-social {
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.4),
    0 6px 16px -4px rgba(0, 0, 0, 0.45);
}

.public-links-row .btn-hero-social .btn-icon {
  color: var(--text-secondary);
}

.public-links-row .btn-external-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  opacity: 0.55;
  margin-left: -0.15rem;
  flex-shrink: 0;
  transition: 
    transform 0.25s var(--ease-spring),
    color 0.2s ease,
    opacity 0.2s ease;
}

.public-links-row .btn-hero-social:hover {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.45),
    0 8px 22px -4px rgba(56, 189, 248, 0.18);
}

.public-links-row .btn-hero-social:hover .btn-icon {
  color: var(--accent-cyan);
  transform: scale(1.08);
}

.public-links-row .btn-hero-social:hover .btn-external-icon {
  color: var(--accent-cyan);
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Sección de Showcase de Proyectos & Stack Tecnológico
   ========================================================================== */
.public-showcase-section {
  width: 100%;
  max-width: 1100px;
  margin: 3rem auto 4rem;
  padding: 0 0.5rem;
}

.showcase-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-weight: 500;
}

.showcase-badge svg,
.showcase-badge i {
  width: 16px;
  height: 16px;
}

.showcase-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.8px;
  margin-bottom: 0.75rem;
}

.showcase-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.showcase-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(56, 189, 248, 0.15);
}

.card-glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease-spring);
}

.card-icon-box svg,
.card-icon-box i {
  width: 22px;
  height: 22px;
}

.cyan-glow {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.purple-glow {
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.2);
}

.green-glow {
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.2);
}

.card-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.card-project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.card-project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  color: #cbd5e1;
}

.card-project-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-main);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.card-action-link svg,
.card-action-link i {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card-action-link:hover {
  color: #7dd3fc;
  transform: translateX(2px);
}

.card-action-link:hover svg,
.card-action-link:hover i {
  transform: scale(1.15);
}

/* Nube de Tecnologías */
.tech-stack-container {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tech-stack-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.tech-stack-title svg,
.tech-stack-title i {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.tech-stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: default;
}

.tech-pill svg,
.tech-pill i {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.tech-pill:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tech-pill:hover svg,
.tech-pill:hover i {
  transform: scale(1.15) rotate(5deg);
}

/* Footer Minimal con Acabado 3D Mate & Micro-Bisel Especular */
.footer-minimal {
  position: relative;
  z-index: 10;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem max(1.25rem, calc(1.25rem + env(safe-area-inset-bottom, 0px)));
  background: rgba(9, 13, 22, 0.84);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.5),
    0 -10px 30px -10px rgba(0, 0, 0, 0.7);
}

.footer-minimal::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.2) 25%,
    rgba(168, 85, 247, 0.2) 75%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.7;
}

.footer-minimal-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-admin-link {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.82rem;
  text-decoration: none;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.2);
  transition: 
    transform 0.2s var(--ease-spring),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  outline: none;
  user-select: none;
}

.footer-admin-link:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--text-primary);
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
    0 6px 18px rgba(56, 189, 248, 0.2);
}

.footer-admin-link:active {
  transform: scale(0.96) translateY(0.5px);
  background: rgba(56, 189, 248, 0.04);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-admin-link:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-main), 0 0 0 4px rgba(56, 189, 248, 0.6);
}

.footer-admin-link .inline-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease-spring), color 0.25s ease;
}

.footer-admin-link:hover .inline-icon {
  transform: scale(1.15) rotate(-6deg);
  color: var(--accent-cyan);
}

/* Secciones Generales */
.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Bento Grid */
.bento-section {
  padding: 3rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-education { grid-column: span 7; }
.card-telemetry { grid-column: span 5; }
.card-stack { grid-column: span 7; }
.card-homelab { grid-column: span 5; }

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

.card-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-wrapper.blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.card-icon-wrapper.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.card-icon-wrapper.purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.card-icon-wrapper.orange { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.green-tag {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.card-subtext {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-body-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Tag Clouds */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.tag.highlight {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
}

/* Telemetry Widgets */
.telemetry-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.2rem 0;
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.metric-label {
  color: var(--text-secondary);
}

.metric-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.progress-bar-fill.green-fill {
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-green));
}

.progress-bar-fill.purple-fill {
  background: linear-gradient(90deg, #7c3aed, var(--accent-purple));
}

.telemetry-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.telemetry-status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

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

/* Stack Box */
.stack-category {
  margin-bottom: 1rem;
}

.category-name {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

/* Homelab Mini Stats */
.stats-mini-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Proyectos Section */
.projects-section {
  padding: 3rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.project-banner {
  height: 130px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.project-banner.bg-blue {
  background: linear-gradient(135deg, #1e1b4b 0%, #172554 100%);
}

.project-banner.bg-purple {
  background: linear-gradient(135deg, #2e1065 0%, #1e1b4b 100%);
}

.project-banner-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-cyan);
  opacity: 0.7;
}

.project-badge-top {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.2rem;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

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

.project-link.primary {
  color: var(--accent-cyan);
}

.project-link.primary:hover {
  color: #7dd3fc;
}

/* 3D Rubik Cube Showcase (Three.js Chrome Shading) */
.cube3d-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.cube3d-card {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.75) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.cube3d-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cube3d-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Selector de Temas y Shaders del Cubo 3D */
.cube-theme-selector {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cube-theme-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cube-theme-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.cube-theme-btn.active {
  color: #090d16;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  font-weight: 700;
}

.cube3d-canvas-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.05) 0%, rgba(168, 85, 247, 0.04) 40%, transparent 75%);
}

.cube3d-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.cube3d-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(3, 7, 18, 0.88);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

/* 3D WebGL Studio & Interactive Controls */
.cube3d-actions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto 2.5rem auto;
  width: 100%;
  max-width: 860px;
}

.cube3d-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cube3d-action-btn:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

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

.cube3d-action-btn.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #fff;
}

/* 3D Studio Architecture & Specs Grid */
.cube3d-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 3rem auto;
}

.cube3d-spec-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 14, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cube3d-spec-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15);
}

.cube3d-spec-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cube3d-spec-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.cube3d-spec-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

.cube3d-spec-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.cube3d-spec-desc code {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Modal de Streaming en Vivo (VJ Set) */
/* Modal de Streaming en Vivo (DJ / VJ Live Player 3D Matte) */
.live-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: overlay-fade-in 0.25s ease-out;
}

.live-modal-card {
  background: rgba(11, 16, 28, 0.94);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 840px;
  box-shadow: 
    0 32px 80px -16px rgba(0, 0, 0, 0.95),
    0 0 36px -6px rgba(239, 68, 68, 0.15),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.6);
  animation: modal-appear 0.35s var(--ease-spring);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.live-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}

.live-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.live-header-badges {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  width: fit-content;
  user-select: none;
}

.live-status-pill.is-offline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.live-status-pill.is-offline .live-dot-core {
  background: var(--text-muted);
}
.live-status-pill.is-offline .live-dot-ping {
  display: none;
}

.live-status-pill.is-live {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.16) 100%);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.5);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28),
    0 0 14px rgba(239, 68, 68, 0.35);
}
.live-status-pill.is-live .live-dot-core {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ef4444 65%, #b91c1c 100%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
}
.live-status-pill.is-live .live-dot-ping {
  background-color: #ef4444;
  animation: ping-wave 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Badge de Espectadores en Header */
.live-viewers-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.32);
  color: #67e8f9;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  animation: live-appear 0.35s var(--ease-spring);
}

.live-viewers-pill .viewers-icon {
  width: 12px;
  height: 12px;
  color: var(--accent-cyan);
}

.live-viewers-pill.pulse-update {
  animation: viewer-pulse 0.4s var(--ease-spring);
}

@keyframes viewer-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); filter: brightness(1.3); }
  100% { transform: scale(1); }
}

.live-stream-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.live-stream-subtitle {
  font-size: 0.84rem;
  color: var(--accent-cyan);
  margin: 0;
}

.live-modal-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  outline: none;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.live-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: scale(1.08);
}

.live-modal-close:active {
  transform: scale(0.92);
}

.live-modal-close:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.6);
}

.live-player-body {
  position: relative;
  background: #02040a;
  width: 100%;
}

.live-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #010307;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: 
    inset 0 0 32px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Badge Flotante sobre el Video (Twitch/Kick style) */
.live-video-overlay-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: live-appear 0.35s var(--ease-spring);
}

.live-video-overlay-badge .live-overlay-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: live-glow-pulse 1.8s infinite;
}

.live-video-overlay-badge .live-overlay-tag {
  color: #fca5a5;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-video-overlay-badge .live-overlay-divider {
  color: rgba(255, 255, 255, 0.3);
}

.live-video-overlay-badge .overlay-eye-icon {
  width: 13px;
  height: 13px;
  color: var(--accent-cyan);
}

.live-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

/* Botón Flotante Activar Sonido */
.live-unmute-btn {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.45rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95) 0%, rgba(59, 130, 246, 0.9) 100%);
  color: #030712;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 24px rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s var(--ease-spring);
  animation: pulse-unmute 2.2s infinite ease-in-out;
  outline: none;
  user-select: none;
}

.live-unmute-btn:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.04);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 32px rgba(56, 189, 248, 0.65);
}

.live-unmute-btn:active {
  transform: translateX(-50%) scale(0.96);
}

.live-unmute-btn svg,
.live-unmute-btn i {
  width: 18px;
  height: 18px;
}

@keyframes pulse-unmute {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(56, 189, 248, 0), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

.live-offline-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 500px;
}

.offline-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0.02) 70%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 24px rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  transition: transform 0.3s var(--ease-spring);
}

.offline-icon-box:hover {
  transform: scale(1.08);
}

.offline-icon {
  width: 32px;
  height: 32px;
}

.live-offline-placeholder h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.live-offline-placeholder p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}

.offline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.club-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #d8b4fe;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.live-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.live-footer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spin-animation {
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Modal de Acceso con Acabado 3D Mate & Iluminación Especular Realista */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: overlay-fade-in 0.25s ease-out;
}

@keyframes overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(11, 17, 30, 0.92);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  width: min(460px, 94vw);
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 
    0 28px 70px -14px rgba(0, 0, 0, 0.92),
    0 0 36px -6px rgba(56, 189, 248, 0.14),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modal-appear 0.35s var(--ease-spring);
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: scale(0.92) translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.modal-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 4px 14px rgba(56, 189, 248, 0.25);
  transition: transform 0.3s var(--ease-spring);
}

.modal-icon-badge:hover {
  transform: scale(1.06) rotate(3deg);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s var(--ease-spring);
  outline: none;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.08) rotate(90deg);
}

.modal-close:active {
  transform: scale(0.92);
}

.modal-close:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.6);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s var(--ease-spring);
  pointer-events: none;
  z-index: 2;
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.85rem;
  background: rgba(5, 9, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.94rem;
  outline: none;
  box-shadow: 
    inset 0 2px 4px 0 rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.04);
  transition: 
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(5, 9, 17, 0.85);
}

.form-input:focus {
  border-color: rgba(56, 189, 248, 0.85);
  background: rgba(5, 9, 17, 0.95);
  box-shadow: 
    inset 0 2px 4px 0 rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(56, 189, 248, 0.22),
    0 0 18px rgba(56, 189, 248, 0.25);
}

.alert-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 1.3rem;
  box-shadow: 
    0 4px 16px rgba(239, 68, 68, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  animation: alert-shake 0.35s ease-in-out;
}

@keyframes alert-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.modal-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-end;
  margin-top: 1.6rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(9, 13, 22, 0.9);
  padding: 4rem 1.5rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

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

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsividad */
@media (max-width: 900px) {
  .card-education, .card-telemetry, .card-stack, .card-homelab {
    grid-column: span 12;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 680px) {
  .navbar {
    padding: max(0.55rem, env(safe-area-inset-top, 0.55rem)) 0.85rem 0.55rem;
  }

  .nav-links {
    display: none;
  }

  .nav-brand-group {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .nav-brand {
    font-size: 1.08rem;
    padding: 0.22rem 0.35rem;
    flex-shrink: 0;
  }

  .nav-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .nav-actions .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .nav-segmented-pill {
    padding: 0.18rem;
    gap: 0.15rem;
  }

  .nav-pill-link {
    padding: 0.32rem 0.68rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .nav-pill-link .btn-icon {
    width: 14px;
    height: 14px;
  }

  .nav-pill-divider {
    height: 12px;
  }

  .nav-live-pill {
    padding: 0.2rem 0.55rem;
    font-size: 0.64rem;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  /* Chips de Comandos en Móvil */
  .quick-chips-wrapper {
    gap: 0.35rem;
    margin-bottom: 1.25rem;
  }

  .quick-cmd-chip {
    padding: 0.3rem 0.58rem;
    font-size: 0.76rem;
  }

  /* Calibración Hero para iPhone y Móviles */
  .public-minimal-container {
    padding: 1rem 1.1rem 1.5rem;
  }

  .minimal-hero {
    padding: 0.5rem 0 1rem;
    width: 100%;
  }

  .hero-badge {
    padding: 0.22rem 0.7rem 0.22rem 0.24rem;
    margin-bottom: 1.1rem;
    gap: 0.45rem;
    max-width: 100%;
  }

  .hero-badge .badge-pill {
    font-size: 0.7rem;
    padding: 0.16rem 0.5rem;
    gap: 0.3rem;
  }

  .hero-badge .badge-icon {
    width: 12.5px;
    height: 12.5px;
  }

  .hero-badge .badge-text {
    font-size: clamp(0.72rem, 3.1vw, 0.8rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-title {
    font-size: clamp(1.95rem, 7vw, 2.4rem);
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
  }

  .hero-meta {
    gap: 0.45rem;
    margin-bottom: 1.5rem;
  }

  .meta-item {
    font-size: 0.74rem;
    padding: 0.26rem 0.58rem;
    gap: 0.38rem;
  }

  .meta-icon {
    width: 13.5px;
    height: 13.5px;
  }

  .public-links-row {
    gap: 0.55rem;
  }

  .public-links-row .btn {
    padding: 0.52rem 0.9rem;
    font-size: 0.84rem;
    gap: 0.42rem;
  }

  .public-links-row .btn .btn-icon {
    width: 15.5px;
    height: 15.5px;
  }

  .public-links-row .btn-external-icon {
    width: 13px;
    height: 13px;
  }

  .live-modal-card {
    max-height: 92vh;
    overflow-y: auto;
  }

  .cube3d-stage {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .cube3d-card {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .cube3d-canvas-wrap {
    height: 300px;
  }

  .cube3d-header {
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
  }

  .cube3d-title-group {
    font-size: 0.78rem;
    gap: 0.45rem;
  }

  .cube3d-hint {
    font-size: 0.68rem;
    padding: 0.22rem 0.7rem;
    bottom: 8px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cube3d-specs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
  }

  .footer-minimal {
    padding: 1.1rem 1rem;
  }

  .footer-minimal-inner {
    font-size: 0.78rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer-admin-link {
    padding: 0.32rem 0.75rem;
    font-size: 0.78rem;
  }
}

/* Pantallas estrechas como iPhone 11 y iPhone SE (375px - 440px) */
@media (max-width: 440px) {
  .navbar {
    padding: max(0.5rem, env(safe-area-inset-top, 0.5rem)) 0.65rem 0.5rem;
  }

  .nav-brand-group {
    gap: 0.3rem;
  }

  .nav-brand {
    font-size: 1.02rem;
    padding: 0.18rem 0.25rem;
    margin-left: -0.2rem;
  }

  .nav-live-pill {
    padding: 0.18rem 0.45rem;
    font-size: 0.6rem;
    gap: 0.25rem;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .nav-actions .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .nav-actions .btn .btn-icon {
    width: 14px;
    height: 14px;
  }

  .nav-segmented-pill {
    padding: 0.15rem;
    gap: 0.1rem;
  }

  .nav-pill-link {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
    gap: 0.28rem;
  }

  .nav-pill-link .btn-icon {
    width: 13px;
    height: 13px;
  }

  .cube3d-canvas-wrap {
    height: 320px;
  }

  .cube3d-action-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero-badge {
    padding: 0.2rem 0.62rem 0.2rem 0.22rem;
    gap: 0.4rem;
  }

  .hero-badge .badge-pill {
    font-size: 0.68rem;
    padding: 0.15rem 0.46rem;
    gap: 0.26rem;
  }

  .public-links-row {
    gap: 0.45rem;
  }

  .public-links-row .btn {
    padding: 0.48rem 0.76rem;
    font-size: 0.8rem;
    gap: 0.35rem;
    flex: 1 1 auto;
  }
}

/* Pantallas ultra compactas (<= 375px) */
@media (max-width: 375px) {
  .navbar {
    padding: max(0.45rem, env(safe-area-inset-top, 0.45rem)) 0.5rem 0.45rem;
  }

  .nav-actions .btn span,
  .nav-pill-link {
    font-size: 0.72rem;
  }

  .nav-pill-link {
    padding: 0.25rem 0.48rem;
  }
  
  .nav-brand {
    font-size: 0.96rem;
  }

  .cube3d-canvas-wrap {
    height: 280px;
  }

  .public-minimal-container {
    padding: 0.85rem 0.75rem 1.25rem;
  }

  .public-links-row .btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.3rem;
  }
}

/* Dispositivos plegables cerrados / ultra estrechos (<= 340px, ej. Galaxy Fold / 320px) */
@media (max-width: 340px) {
  .nav-brand {
    font-size: 0.9rem;
    padding: 0.15rem 0.2rem;
  }

  .nav-pill-link {
    padding: 0.22rem 0.42rem;
    font-size: 0.68rem;
    gap: 0.2rem;
  }

  .nav-live-pill .live-text-label {
    display: none;
  }

  .nav-live-pill {
    padding: 0.24rem 0.38rem;
  }
}

/* ==========================================================================
   Control de Tema en el Dock (.nav-theme-toggle) & Modo Día ("Apple Ceramic & Photonic Frost")
   ========================================================================== */

.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
  transition:
    transform 0.2s var(--ease-spring),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-theme-toggle:hover {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateY(-0.5px);
}

.nav-theme-toggle:active {
  transform: scale(0.92);
}

.nav-theme-toggle:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-cyan);
}

.nav-theme-toggle svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.1;
  transition: transform 0.35s var(--ease-spring), color 0.2s ease;
}

.nav-theme-toggle:hover svg {
  transform: rotate(14deg) scale(1.08);
  color: var(--accent-cyan);
}

/* En Modo Noche (default) mostramos el Sol para cambiar a Modo Día */
.nav-theme-toggle .theme-icon-sun {
  display: block;
}

.nav-theme-toggle .theme-icon-moon {
  display: none;
}

/* En Modo Día mostramos la Luna para volver a Modo Noche */
html[data-theme="light"] .nav-theme-toggle .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .nav-theme-toggle .theme-icon-moon {
  display: block;
}

/* Tokens Semánticos y Materiales Modo Día ("Apple Ceramic & Photonic Frost") */
html[data-theme="light"] {
  color-scheme: light;
  --bg-main: #f4f7fb;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.96);
  --border-color: rgba(15, 23, 42, 0.09);
  --border-glow: rgba(2, 132, 199, 0.28);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #7e22ce;
  --accent-green: #059669;
  --accent-emerald: #047857;
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(56, 189, 248, 0.14) 0%, rgba(59, 130, 246, 0.06) 45%, transparent 80%),
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 80% 35%, rgba(147, 51, 234, 0.06) 0%, transparent 45%);
}

html[data-theme="light"] .bg-grid-pattern {
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  opacity: 0.75;
}

/* Navbar y Segmented Dock Pill en Modo Día */
html[data-theme="light"] .navbar-container {
  background: rgba(244, 247, 251, 0.80);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 10px 28px -14px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 0 rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .navbar-container::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(2, 132, 199, 0.25) 25%,
    rgba(126, 34, 206, 0.22) 75%,
    transparent 100%
  );
}

html[data-theme="light"] .nav-brand:hover {
  background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .brand-name {
  color: var(--text-primary);
  text-shadow: none;
}

html[data-theme="light"] .brand-bracket {
  text-shadow: 0 0 10px rgba(2, 132, 199, 0.18);
}

html[data-theme="light"] .brand-tld {
  text-shadow: 0 0 10px rgba(126, 34, 206, 0.18);
}

html[data-theme="light"] .nav-brand:hover .brand-bracket {
  color: #0369a1;
  text-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}

html[data-theme="light"] .nav-brand:hover .brand-tld {
  color: #6b21a8;
  text-shadow: 0 0 12px rgba(126, 34, 206, 0.35);
}

html[data-theme="light"] .nav-segmented-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 0 rgba(15, 23, 42, 0.04),
    0 6px 16px -6px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .nav-pill-divider,
html[data-theme="light"] .nav-segmented-pill .nav-live-pill::after {
  background: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .nav-pill-link {
  color: #1e293b;
}

html[data-theme="light"] .nav-pill-home:hover,
html[data-theme="light"] .nav-pill-apps:hover {
  background: rgba(2, 132, 199, 0.10);
  border-color: rgba(2, 132, 199, 0.28);
  color: #0f172a;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .nav-pill-home:hover .btn-icon,
html[data-theme="light"] .nav-pill-apps:hover .btn-icon {
  color: #0284c7;
  filter: none;
}

html[data-theme="light"] .nav-live-pill.is-live {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.28);
  color: #b91c1c;
}

html[data-theme="light"] .nav-live-pill.is-live:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #991b1b;
}

html[data-theme="light"] .lang-opt,
html[data-theme="light"] .lang-opt:visited {
  color: #64748b !important;
}

html[data-theme="light"] .lang-opt:hover:not(.is-active) {
  color: #0f172a !important;
  background-color: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .lang-opt.is-active,
html[data-theme="light"] .lang-opt.is-active:visited {
  color: var(--accent-cyan) !important;
}

html[data-theme="light"] .lang-opt-separator {
  color: rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] .nav-theme-toggle {
  color: #475569;
}

html[data-theme="light"] .nav-theme-toggle:hover {
  color: #0f172a;
  background: rgba(2, 132, 199, 0.10);
  border-color: rgba(2, 132, 199, 0.25);
}

/* Hero Section en Modo Día */
html[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 0 rgba(15, 23, 42, 0.04),
    0 8px 20px -8px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero-badge:hover {
  border-color: rgba(2, 132, 199, 0.32);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    0 10px 24px -8px rgba(2, 132, 199, 0.14);
}

html[data-theme="light"] .hero-badge .badge-pill {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.14) 0%, rgba(2, 132, 199, 0.06) 100%);
  border: 1px solid rgba(2, 132, 199, 0.28);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
  color: #0369a1;
}

html[data-theme="light"] .hero-badge .badge-icon {
  color: #0284c7;
}

html[data-theme="light"] .hero-badge .badge-text {
  color: #334155;
}

html[data-theme="light"] .hero-title-role {
  background: linear-gradient(180deg, #0f172a 0%, #334155 52%, #64748b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .hero-subtitle strong {
  color: #0f172a;
  text-shadow: none;
}

html[data-theme="light"] .meta-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    0 2px 6px -2px rgba(15, 23, 42, 0.05);
  color: #334155;
}

html[data-theme="light"] .meta-item-location .meta-icon,
html[data-theme="light"] .meta-item-stack .meta-icon {
  filter: none;
}

/* Botones Hero Photonic & Matte Glass en Modo Día */
html[data-theme="light"] .public-links-row .btn-hero-contact {
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.14) 0%, rgba(37, 99, 235, 0.09) 100%),
    rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(2, 132, 199, 0.38);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 0 rgba(2, 132, 199, 0.08),
    0 6px 18px -4px rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] .public-links-row .btn-hero-contact .btn-icon {
  color: #0284c7;
  filter: none;
}

html[data-theme="light"] .public-links-row .btn-hero-contact:hover {
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.22) 0%, rgba(37, 99, 235, 0.14) 100%),
    #ffffff;
  border-color: rgba(2, 132, 199, 0.6);
  color: #020617;
  box-shadow:
    inset 0 1px 0 0 #ffffff,
    0 10px 24px -4px rgba(2, 132, 199, 0.24);
}

html[data-theme="light"] .public-links-row .btn-hero-contact:hover .btn-icon {
  color: #0369a1;
}

html[data-theme="light"] .public-links-row .btn-hero-social {
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 0 rgba(15, 23, 42, 0.05),
    0 6px 16px -6px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .public-links-row .btn-hero-social:hover {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 0 #ffffff,
    0 8px 20px -6px rgba(2, 132, 199, 0.14);
}

/* Modales (Acceso Privado & Reproductor Live) en Modo Día */
html[data-theme="light"] .modal-overlay,
html[data-theme="light"] .live-modal-overlay {
  background: rgba(15, 23, 42, 0.42);
}

html[data-theme="light"] .modal-content,
html[data-theme="light"] .live-modal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow:
    0 28px 70px -14px rgba(15, 23, 42, 0.22),
    0 0 36px -8px rgba(2, 132, 199, 0.12),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1);
}

html[data-theme="light"] .live-modal-header {
  background: rgba(241, 245, 249, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .live-modal-footer {
  background: rgba(241, 245, 249, 0.85);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .live-status-pill.is-offline {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

html[data-theme="light"] .live-status-pill.is-live {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

html[data-theme="light"] .live-viewers-pill {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.28);
  color: #0369a1;
}

html[data-theme="light"] .live-modal-close,
html[data-theme="light"] .modal-close {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

html[data-theme="light"] .live-modal-close:hover,
html[data-theme="light"] .modal-close:hover {
  background: rgba(15, 23, 42, 0.09);
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

/* El contenedor 16:9 de video siempre es negro cine, preservamos su texto claro */
html[data-theme="light"] .live-offline-placeholder h4 {
  color: #f8fafc;
}

html[data-theme="light"] .live-offline-placeholder p {
  color: #94a3b8;
}

html[data-theme="light"] .form-input {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .form-input:hover {
  border-color: rgba(15, 23, 42, 0.24);
  background: #ffffff;
}

html[data-theme="light"] .form-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(2, 132, 199, 0.18),
    0 0 14px rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

/* Footer Minimalista en Modo Día */
html[data-theme="light"] .footer-minimal {
  background: rgba(238, 242, 248, 0.88);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    0 -8px 24px -10px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .footer-minimal-inner {
  text-shadow: none;
}

html[data-theme="light"] .footer-admin-link {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #475569;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .footer-admin-link:hover {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 0 #ffffff,
    0 6px 16px -4px rgba(2, 132, 199, 0.15);
}

@media (max-width: 680px) {
  .nav-theme-toggle {
    width: 26px;
    height: 26px;
  }
  .nav-theme-toggle svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 440px) {
  .nav-theme-toggle {
    width: 24px;
    height: 24px;
  }
  .nav-theme-toggle svg {
    width: 12.5px;
    height: 12.5px;
  }
}

@media (max-width: 340px) {
  .nav-theme-toggle {
    width: 22px;
    height: 22px;
  }
  .nav-theme-toggle svg {
    width: 12px;
    height: 12px;
  }
}
