/* ==============================================================================
   MOTORIDERS.CO // PLATAFORMA DIGITAL EN CONSTRUCCIÓN — v2
   GS Trophy Emerald + Dark Glassmorphism + HUD espacial
   Mobile-first · fluido con clamp() · sin scroll horizontal
   ============================================================================== */

:root {
  --bg-deep: #020504;
  --emerald-gstrophy: #10B981;
  --emerald-main: #22c55e;
  --emerald-light: #4ade80;
  --emerald-bright: #86efac;
  --emerald-deep: #15803d;

  --chrome-100: #ffffff;
  --chrome-200: #f1f5f9;
  --chrome-300: #cbd5e1;
  --chrome-400: #94a3b8;

  --glass-bg: rgba(8, 16, 12, 0.72);
  --glass-border: rgba(34, 197, 94, 0.32);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(134, 239, 172, 0.15);

  --font-display: 'League Spartan', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Espaciado fluido */
  --gutter: clamp(1rem, 3.5vw, 2rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Tamaño del logo (se ajusta por breakpoint) */
  --logo-size: min(68vw, 260px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-deep);
  color: var(--chrome-200);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  background: radial-gradient(circle at 50% 20%, #06150d 0%, #020504 60%, #000 100%);
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--emerald-light); outline-offset: 3px; border-radius: 8px; }
ul { list-style: none; }

/* Fondo */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.nebula-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}
.nebula-top {
  top: -20vmax; left: -10vmax;
  width: 60vmax; height: 60vmax;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28) 0%, rgba(21, 128, 61, 0.08) 50%, transparent 70%);
}
.nebula-bottom {
  bottom: -25vmax; right: -15vmax;
  width: 70vmax; height: 70vmax;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.2) 0%, rgba(5, 46, 22, 0.1) 60%, transparent 80%);
}

/* --------------------------------------------------------------------------
   1. HUD SUPERIOR
   -------------------------------------------------------------------------- */
.hud-bar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: calc(0.7rem + var(--safe-top)) calc(var(--gutter) + var(--safe-right)) 0.7rem calc(var(--gutter) + var(--safe-left));
  border-bottom: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(4, 9, 6, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hud-left { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.hud-tag { color: var(--chrome-100); font-weight: 700; }
.hud-coords { color: var(--chrome-400); display: none; }

.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  min-width: 0;
}
.beacon-dot {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-main);
  box-shadow: 0 0 10px var(--emerald-light);
  animation: beaconPulse 2s infinite ease-in-out;
}
.beacon-text { color: var(--emerald-bright); font-size: 0.6875rem; font-weight: 700; }
.beacon-extra { display: none; }

.hud-right { display: none; align-items: center; gap: 0.75rem; }
.hud-label { color: var(--chrome-400); }
.hud-clock { color: var(--emerald-light); font-weight: 700; font-variant-numeric: tabular-nums; }

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* --------------------------------------------------------------------------
   2. LAYOUT PRINCIPAL (mobile-first: 1 columna)
   -------------------------------------------------------------------------- */
.mission-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) calc(var(--gutter) + var(--safe-right)) calc(6.5rem + var(--safe-bottom)) calc(var(--gutter) + var(--safe-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

/* --------------------------------------------------------------------------
   3. ASTRONAUTA + ÓRBITAS
   -------------------------------------------------------------------------- */
.astronaut-viewport {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.orbital-rig {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.orbit-ring {
  position: absolute;
  top: calc(var(--logo-size) * 0.5);
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotateX(72deg);
}
.orbit-ring-outer {
  width: calc(var(--logo-size) * 1.22);
  border: 1px dashed rgba(74, 222, 128, 0.28);
  animation: orbitSpin 36s linear infinite;
}
.orbit-ring-inner {
  width: calc(var(--logo-size) * 0.98);
  border: 1.5px solid rgba(34, 197, 94, 0.38);
  box-shadow: inset 0 0 18px rgba(34, 197, 94, 0.2);
  animation: orbitSpinReverse 24s linear infinite;
}
.ring-satellite {
  position: absolute;
  left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px #4ade80, 0 0 28px #22c55e;
}
.ring-satellite-1 { top: 0; transform: translate(-50%, -50%); }
.ring-satellite-2 { bottom: 0; transform: translate(-50%, 50%); }

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
}
@keyframes orbitSpinReverse {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
  to   { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
}

.helmet-pulse-aura {
  position: absolute;
  top: calc(var(--logo-size) * 0.4);
  left: 50%;
  width: calc(var(--logo-size) * 0.75);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, rgba(21, 128, 61, 0.12) 55%, transparent 75%);
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  animation: auraBreath 4s ease-in-out infinite alternate;
}
@keyframes auraBreath {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.55; }
  to   { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.astronaut-card {
  position: relative;
  z-index: 5;
  width: var(--logo-size);
  transition: transform 0.4s var(--ease-spring);
}
.astronaut-card:hover { transform: translateY(-4px) scale(1.02); }

/* Logo con alfa real: sin drop-shadow rectangular */
.astronaut-image {
  width: 100%;
  height: auto;
  background: transparent;
}

/* Telemetría MVP */
.astronaut-telemetry {
  position: relative;
  z-index: 5;
  margin-top: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  max-width: 340px;
  padding: 0.7rem 1rem;
  background: rgba(10, 20, 14, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mvp-gauge { position: relative; width: 54px; height: 54px; flex-shrink: 0; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 6; }
.gauge-fill {
  fill: none;
  stroke: var(--emerald-main);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 169.65;
  stroke-dashoffset: 169.65;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.7));
  transition: stroke-dashoffset 1.6s var(--ease-spring);
}
.gauge-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--chrome-100);
}

.telemetry-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; font-family: var(--font-mono); }
.chip-label { font-size: 0.6875rem; color: var(--chrome-400); letter-spacing: 0.08em; }
.chip-val { font-size: 0.875rem; font-weight: 800; color: var(--chrome-100); }
.chip-val.emerald { color: var(--emerald-bright); text-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
.chip-sub { font-family: var(--font-body); font-size: 0.75rem; color: var(--chrome-400); }

/* --------------------------------------------------------------------------
   4. PANEL GLASS
   -------------------------------------------------------------------------- */
.mission-control { position: relative; z-index: 5; min-width: 0; }

.glass-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(1.4rem, 4vw, 2.75rem) clamp(1.1rem, 4vw, 2.5rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: clamp(16px, 2vw, 20px);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow);
}
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-light), transparent);
  opacity: 0.8;
}

.panel-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald-light);
  animation: beaconPulse 1.8s infinite ease-in-out;
}
.version-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--chrome-400);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

.mission-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--chrome-100);
  overflow-wrap: break-word;
  text-wrap: balance;
}
.glow-text {
  background: linear-gradient(135deg, #86efac 0%, #22c55e 60%, #15803d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--emerald-light);
  filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.4));
}

.hero-identity-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mission-kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.68rem + 0.25vw, 0.85rem);
  font-weight: 700;
  color: var(--emerald-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-description {
  font-size: clamp(0.9375rem, 0.88rem + 0.3vw, 1.0625rem);
  line-height: 1.6;
  color: var(--chrome-300);
}
.mission-description strong { color: var(--chrome-100); font-weight: 600; }

.cta-action-zone {
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   4.1. MÓDULOS TÁCTICOS: NUESTRA ESPECIALIDAD, MULTIMARCA Y CONTACTO DIRECTO
   -------------------------------------------------------------------------- */
.tactical-module {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(0.9rem, 2.5vw, 1.5rem);
  background: rgba(5, 12, 8, 0.65);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 14px;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.14);
}

.module-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--chrome-400);
  letter-spacing: 0.08em;
}

.module-title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.92rem + 0.5vw, 1.18rem);
  font-weight: 800;
  color: var(--chrome-100);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.module-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.module-lead {
  font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.9375rem);
  line-height: 1.55;
  color: var(--chrome-300);
}
.module-lead strong {
  color: var(--chrome-100);
  font-weight: 600;
}

/* Grid de Nuestra Especialidad (3 tarjetas) */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  background: rgba(12, 24, 17, 0.72);
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 12px;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.specialty-card:hover {
  transform: translateY(-2px);
  border-color: var(--emerald-light);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

.specialty-card-highlight {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.14) 0%, rgba(10, 22, 15, 0.82) 100%);
  border-color: rgba(74, 222, 128, 0.45);
}

.specialty-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.specialty-code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--emerald-bright);
  letter-spacing: 0.06em;
}

.specialty-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--emerald-light);
  flex-shrink: 0;
}

.specialty-icon svg {
  width: 17px;
  height: 17px;
}

.specialty-card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--chrome-100);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.specialty-card-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--chrome-300);
}
.specialty-card-desc strong {
  color: var(--chrome-100);
}

/* Grid de 9 Marcas Oficiales (Servicio Multimarca) */
.brand-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.65rem;
}

.brand-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  min-height: 58px;
  padding: 0.65rem 0.85rem;
  background: rgba(12, 24, 17, 0.75);
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.brand-pill:hover {
  transform: translateY(-2px);
  background: rgba(20, 42, 29, 0.92);
  border-color: var(--emerald-light);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--chrome-100);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.brand-lines {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--emerald-bright);
  line-height: 1.25;
}

/* Grid de Comunícate con Nosotros */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 0.75rem;
}

.contact-channel-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: rgba(12, 24, 17, 0.78);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-channel-card:hover {
  transform: translateY(-2px);
  background: rgba(20, 42, 29, 0.92);
  border-color: var(--emerald-light);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.22);
}

.channel-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--emerald-bright);
  letter-spacing: 0.08em;
}

.channel-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--chrome-100);
  word-break: break-word;
}

.channel-hint {
  font-size: 0.75rem;
  color: var(--chrome-400);
}

/* --------------------------------------------------------------------------
   5. AVANCES
   -------------------------------------------------------------------------- */
.progress-module {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(0.9rem, 2.5vw, 1.5rem);
  background: rgba(5, 12, 8, 0.65);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 14px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.14);
}
.progress-sub { display: block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--chrome-400); letter-spacing: 0.08em; }
.progress-main-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  font-weight: 800;
  color: var(--chrome-100);
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.progress-summary-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.progress-list { display: flex; flex-direction: column; gap: 0.9rem; }
.progress-item { display: flex; flex-direction: column; gap: 0.4rem; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
}
.progress-label { color: var(--chrome-200); font-weight: 500; min-width: 0; line-height: 1.35; }
.progress-value { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; color: var(--emerald-light); }

.progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 70%, #86efac 100%);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
  transition: width 1.4s var(--ease-spring);
}

/* --------------------------------------------------------------------------
   6. CTA WHATSAPP
   -------------------------------------------------------------------------- */
.btn-wa-cosmic {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
  min-height: 64px;
  padding: 0.9rem clamp(1rem, 3vw, 1.6rem);
  background: rgba(20, 38, 28, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(34, 197, 94, 0.15), inset 0 1px 0 rgba(134, 239, 172, 0.25);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.btn-wa-cosmic:hover {
  background: rgba(25, 48, 34, 0.95);
  border-color: var(--emerald-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-wa-cosmic:active { transform: translateY(0); }

.btn-icon-box {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--emerald-bright);
}
.wa-svg-icon { width: 24px; height: 24px; }
.btn-text-group { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.btn-main-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.1875rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}
.btn-sub-caption { font-size: 0.78rem; color: var(--chrome-300); margin-top: 0.2rem; line-height: 1.3; }
.btn-arrow-box { width: 22px; flex-shrink: 0; color: var(--emerald-light); transition: transform 0.3s var(--ease-spring); }
.btn-arrow-box svg { width: 20px; height: 20px; }
.btn-wa-cosmic:hover .btn-arrow-box { transform: translateX(4px); color: #fff; }

/* --------------------------------------------------------------------------
   7. REDES SOCIALES
   -------------------------------------------------------------------------- */
.social-zone { display: flex; flex-direction: column; gap: 0.65rem; }
.social-title { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--chrome-400); }
.social-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.65rem; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.6rem 0.85rem;
  background: rgba(14, 26, 19, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 12px;
  color: var(--chrome-100);
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(22, 42, 30, 0.9);
  border-color: var(--emerald-light);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}
.social-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--emerald-light); }
.social-text { display: flex; flex-direction: column; min-width: 0; }
.social-net { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; }
.social-handle { font-family: var(--font-mono); font-size: 0.72rem; color: var(--emerald-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   7.1. MÓDULO DE UBICACIÓN & MAPA RADAR TÁCTICO
   -------------------------------------------------------------------------- */
.workshop-location-module {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(0.9rem, 2.5vw, 1.4rem);
  background: rgba(5, 12, 8, 0.65);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 14px;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.14);
}

.location-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--chrome-400);
  letter-spacing: 0.08em;
}

.location-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  font-weight: 800;
  color: var(--chrome-100);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.location-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-main);
  box-shadow: 0 0 8px var(--emerald-light);
  animation: beaconPulse 2s infinite ease-in-out;
}

/* Frame del Radar Táctico */
.map-radar-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.8);
  background: #06110a;
}

/* Filtro Táctico GS Trophy para Google Maps */
.google-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(120%) saturate(125%);
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease;
  display: block;
}

.map-radar-frame:hover .google-map-iframe {
  opacity: 1;
}

/* Overlay HUD con Retículas y Baliza */
.radar-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 12px;
  box-shadow: inset 0 0 25px rgba(2, 6, 4, 0.6);
}

.radar-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  color: var(--emerald-light);
  opacity: 0.75;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}
.radar-corner.tl { top: 8px; left: 10px; }
.radar-corner.tr { top: 8px; right: 10px; }
.radar-corner.bl { bottom: 8px; left: 10px; }
.radar-corner.br { bottom: 8px; right: 10px; }

.radar-beacon-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  background: rgba(6, 17, 10, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--chrome-100);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.radar-beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-main);
  box-shadow: 0 0 8px var(--emerald-light);
  animation: beaconPulse 1.8s infinite ease-in-out;
}

/* Barra de Acciones y Enlaces de Navegación */
.location-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.location-address-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--chrome-200);
  min-width: 0;
}

.loc-pin-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--emerald-light);
}

.nav-routes-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  letter-spacing: 0.02em;
}

.maps-btn {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: var(--emerald-bright);
}

.maps-btn:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: var(--emerald-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.waze-btn {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #93c5fd;
}

.waze-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.cred-chip-highlight {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--chrome-100);
}

/* --------------------------------------------------------------------------
   8. CREDENCIALES
   -------------------------------------------------------------------------- */
.workshop-credentials { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cred-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--chrome-300);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
a.cred-chip:hover { background: rgba(34, 197, 94, 0.08); border-color: rgba(74, 222, 128, 0.35); color: var(--chrome-100); }
.cred-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--emerald-light); }

/* --------------------------------------------------------------------------
   9. SELLO MECMAIN
   -------------------------------------------------------------------------- */
.mecmain-seal { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; text-align: center; }
.seal-line { width: 100%; height: 1px; margin-bottom: 0.35rem; background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.25), transparent); }
.seal-meta { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--chrome-400); letter-spacing: 0.12em; }
.mecmain-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.35rem 0.95rem;
  background: rgba(14, 26, 19, 0.7);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mecmain-brand-badge:hover { transform: translateY(-1px); border-color: var(--emerald-light); box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25); }
.mecmain-logo-glyph {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: var(--emerald-main);
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
}
.mecmain-logo-text { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 900; letter-spacing: 0.06em; color: #fff; }
.dot-glow { color: var(--emerald-light); }

/* --------------------------------------------------------------------------
   10. BOTÓN FLOTANTE (mobile-first: círculo)
   -------------------------------------------------------------------------- */
.wa-floating-pill {
  position: fixed;
  z-index: 100;
  right: calc(1rem + var(--safe-right));
  bottom: calc(1rem + var(--safe-bottom));
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(10, 18, 14, 0.9);
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.25), inset 0 1px 0 rgba(134, 239, 172, 0.25);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}
.wa-floating-pill:hover { transform: translateY(-3px) scale(1.04); border-color: var(--emerald-light); box-shadow: 0 12px 35px rgba(34, 197, 94, 0.35); }
.wa-status-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--emerald-main);
  box-shadow: 0 0 10px var(--emerald-light);
  animation: beaconPulse 2s infinite ease-in-out;
}
.wa-float-icon { width: 26px; height: 26px; color: var(--emerald-light); }
.wa-float-caption { display: none; font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.03em; }

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

/* Móviles (< 640px) */
@media (max-width: 639px) {
  .map-radar-frame { aspect-ratio: 4 / 3; }
  .location-actions { flex-direction: column; align-items: stretch; }
  .nav-routes-group { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-route-btn { min-height: 48px; }
  .cred-chip-highlight { width: 100%; }
}

/* Móviles muy pequeños (≤ 360px) */
@media (max-width: 360px) {
  .hud-tag { display: none; }
  .hud-bar { justify-content: center; }
  .social-links { grid-template-columns: minmax(0, 1fr); }
  .btn-sub-caption { display: none; }
  .astronaut-telemetry { padding: 0.6rem 0.75rem; }
}

/* Móviles grandes (≥ 480px) */
@media (min-width: 480px) {
  :root { --logo-size: min(60vw, 300px); }
  .beacon-extra { display: inline; }
}

/* Tablet vertical (≥ 640px) */
@media (min-width: 640px) {
  :root { --logo-size: 340px; }
  .hud-coords { display: inline; }
  .astronaut-telemetry { max-width: 380px; }

  .wa-floating-pill {
    width: auto; height: auto;
    padding: 0.75rem 1.2rem 0.75rem 1rem;
    right: calc(1.5rem + var(--safe-right));
    bottom: calc(1.5rem + var(--safe-bottom));
  }
  .wa-status-dot { position: static; width: 8px; height: 8px; }
  .wa-float-icon { width: 20px; height: 20px; }
  .wa-float-caption { display: inline; }
}

/* Tablet horizontal / laptop pequeña (≥ 1024px): 2 columnas */
@media (min-width: 1024px) {
  :root { --logo-size: min(34vw, 440px); }
  .hud-right { display: flex; }
  .mission-wrapper {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.22fr);
    align-items: start;
    padding-bottom: calc(4rem + var(--safe-bottom));
  }
  .astronaut-viewport { position: sticky; top: 4.5rem; }
  .orbital-rig { position: sticky; top: 4.5rem; }
}

/* Desktop grande (≥ 1440px) */
@media (min-width: 1440px) {
  :root { --logo-size: 470px; }
  .mission-wrapper { max-width: 1440px; }
}

/* Full HD+ (≥ 1800px) */
@media (min-width: 1800px) {
  :root { --logo-size: 540px; }
  .mission-wrapper { max-width: 1640px; gap: 5rem; }
  .glass-panel { padding: 3rem; }
}

/* Celulares en horizontal (poca altura) */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  :root { --logo-size: min(36vh, 200px); }
  .mission-wrapper {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    padding-top: 1rem;
    padding-bottom: calc(5rem + var(--safe-bottom));
  }
  .orbital-rig { position: sticky; top: 1rem; }
  .astronaut-telemetry { flex-direction: column; text-align: center; gap: 0.5rem; }
  .hud-coords { display: none; }
  .wa-floating-pill { width: 52px; height: 52px; padding: 0; }
  .wa-float-caption { display: none; }
  .wa-status-dot { position: absolute; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
