/**
 * ESTILOS GLOBALES - PROYECTO MKU (MERCADO URBANO)
 * Paleta Oficial:
 * Color 1: #092640 (Navy Cósmico)
 * Color 2: #51A69D (Teal / Turquesa Esmeralda)
 * Color 3: #BF9D5E (Oro Cálido)
 * Color 4: #A67841 (Bronce Tierra)
 * Color 5: #F2F2F2 (Gris Nieve / Blanco Elegante)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-1: #092640;
  --color-2: #51A69D;
  --color-3: #BF9D5E;
  --color-4: #A67841;
  --color-5: #F2F2F2;

  --navy-darker: #051626;
  --navy-light: #103b61;
  --teal-glow: rgba(81, 166, 157, 0.45);
  --gold-glow: rgba(191, 157, 94, 0.45);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --glass-bg: rgba(9, 38, 64, 0.85);
  --glass-border: rgba(191, 157, 94, 0.3);
  --glass-blur: blur(16px);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body.mku-immersive-body {
  background-color: var(--color-1);
  color: var(--color-5);
  font-family: var(--font-body);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(16, 59, 97, 0.4) 0%, transparent 65%),
    radial-gradient(circle at 85% 15%, rgba(81, 166, 157, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(191, 157, 94, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Canvas de estrellas y partículas de fondo */
#space-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

/* ==========================================================
   HEADER MINIMALISTA: SOLO [MKU MERCADO URBANO]
   ========================================================== */
.mku-header-minimal {
  position: relative;
  z-index: 100;
  padding: 1.2rem 0 0.5rem 0;
  width: 100%;
}

.mku-nav-brand-centered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(9, 38, 64, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(191, 157, 94, 0.3);
  padding: 8px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  user-select: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mku-nav-brand-centered:hover {
  transform: translateY(-2px);
  border-color: var(--color-2);
}

.mku-nav-brand-centered img {
  height: 44px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(81, 166, 157, 0.6));
  transition: transform 0.3s ease;
}

.mku-nav-brand-centered:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.mku-nav-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.mku-nav-sub {
  font-family: var(--font-heading);
  font-size: 0.70rem;
  text-transform: uppercase;
  color: var(--color-3);
  letter-spacing: 0.22em;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* ==========================================================
   BODY / MAIN: SOLO ÓRBITA 3D INTERACTIVA
   ========================================================== */
.mku-universe-main {
  position: relative;
  z-index: 20;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.orbit-universe-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 560px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
  user-select: none;
}

.orbit-galaxy-stage {
  position: relative;
  width: 820px;
  height: 820px;
  max-width: 95vw;
  max-height: 95vw;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.orbit-galaxy-stage:active {
  cursor: grabbing;
}

/* Trayectorias orbitales en el fondo */
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(81, 166, 157, 0.25);
  pointer-events: none;
}

.orbit-track.track-1 {
  width: 380px;
  height: 380px;
  border-color: rgba(191, 157, 94, 0.28);
  box-shadow: 0 0 40px rgba(191, 157, 94, 0.06);
}

.orbit-track.track-2 {
  width: 580px;
  height: 580px;
  border-color: rgba(81, 166, 157, 0.22);
  box-shadow: 0 0 50px rgba(81, 166, 157, 0.05);
}

.orbit-track.track-3 {
  width: 760px;
  height: 760px;
  border-color: rgba(166, 120, 65, 0.2);
}

/* NÚCLEO CENTRAL (LOGO EMPRESARIAL MKU) */
.mku-central-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #103b61 0%, #092640 70%, #051626 100%);
  box-shadow: 
    0 0 50px rgba(81, 166, 157, 0.45),
    0 0 90px rgba(191, 157, 94, 0.25),
    inset 0 0 25px rgba(81, 166, 157, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(191, 157, 94, 0.5);
}

.mku-central-core:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 
    0 0 70px rgba(81, 166, 157, 0.7),
    0 0 120px rgba(191, 157, 94, 0.45),
    inset 0 0 35px rgba(81, 166, 157, 0.55);
  border-color: var(--color-2);
}

/* Marco y Contenedor Circular para logo.png */
.mku-logo-circle-wrapper {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  border: 3.5px solid var(--color-3);
  box-shadow: 0 0 25px var(--gold-glow), inset 0 0 15px rgba(0, 0, 0, 0.6);
  background: #092640;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mku-central-core:hover .mku-logo-circle-wrapper {
  border-color: var(--color-2);
  box-shadow: 0 0 35px var(--teal-glow), inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.mku-central-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(50% at 50% 50%);
  display: block;
  animation: floatCore 4s ease-in-out infinite alternate;
}

/* Anillos gravitacionales pulsantes del núcleo */
.gravitational-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--color-2);
  pointer-events: none;
  opacity: 0;
  animation: gravitationalWave 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.ring-delay-1 {
  animation-delay: 1.3s;
  border-color: var(--color-3);
}

.ring-delay-2 {
  animation-delay: 2.6s;
  border-color: var(--color-4);
}

/* SATÉLITES ORBITALES (PROYECTOS) */
.mku-satellite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin-top: -38px;
  margin-left: -38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #103b61 0%, #092640 85%);
  border: 2px solid var(--color-2);
  box-shadow: 0 0 22px var(--teal-glow), 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.15s ease-out;
  transform-style: preserve-3d;
  z-index: 50;
}

.mku-satellite.featured {
  border-color: var(--color-3);
  box-shadow: 0 0 26px var(--gold-glow), 0 8px 25px rgba(0, 0, 0, 0.6);
}

.mku-satellite .satellite-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform 0.25s ease;
}

.mku-satellite:hover {
  border-color: #ffffff !important;
  box-shadow: 0 0 35px #ffffff, 0 0 55px var(--color-2) !important;
  z-index: 200 !important;
}

.mku-satellite:hover .satellite-icon {
  transform: scale(1.18);
}

/* Beacon indicador */
.satellite-status-beacon {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-2);
  border: 2px solid var(--color-1);
  box-shadow: 0 0 8px var(--color-2);
}

.mku-satellite.featured .satellite-status-beacon {
  background-color: var(--color-3);
  box-shadow: 0 0 8px var(--color-3);
}

/* Etiqueta flotante del satélite */
.satellite-badge {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 38, 64, 0.92);
  border: 1px solid rgba(191, 157, 94, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-5);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.mku-satellite:hover .satellite-badge {
  background: var(--color-3);
  color: var(--navy-darker);
  border-color: #ffffff;
  transform: translateX(-50%) translateY(2px) scale(1.06);
  font-weight: 700;
}

/* Tooltip card emergente */
.satellite-tooltip-card {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 250px;
  background: rgba(9, 38, 64, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-3);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--color-5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px var(--gold-glow);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 300;
}

.satellite-tooltip-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--color-3);
}

.mku-satellite:hover .satellite-tooltip-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-2);
  font-weight: 700;
  display: block;
}

.tooltip-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 3px 0 5px 0;
  color: #ffffff;
}

.tooltip-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(242, 242, 242, 0.85);
  margin-bottom: 6px;
}

.tooltip-cta {
  font-size: 0.72rem;
  color: var(--color-3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================
   FOOTER MINIMALISTA: SOLO ICONOS DE REDES SOCIALES
   ========================================================== */
.mku-footer-minimal {
  position: relative;
  z-index: 100;
  padding: 0.6rem 0 1.2rem 0;
  width: 100%;
}

.mku-social-icons-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(9, 38, 64, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(191, 157, 94, 0.25);
  padding: 6px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(191, 157, 94, 0.3);
  color: var(--color-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--color-3);
  color: var(--navy-darker);
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.12);
  box-shadow: 0 4px 15px var(--gold-glow);
}

/* ==========================================================
   MODAL DE DETALLES DEL PROYECTO (GLASSMORPHISM)
   ========================================================== */
.modal-content-mku {
  background: rgba(9, 38, 64, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-3);
  border-radius: 24px;
  color: var(--color-5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
  overflow: hidden;
}

.modal-header-mku {
  border-bottom: 1px solid rgba(191, 157, 94, 0.25);
  padding: 1.2rem 1.6rem;
  background: rgba(5, 22, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-mku .btn-close-custom {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-header-mku .btn-close-custom:hover {
  background: var(--color-3);
  color: var(--navy-darker);
  transform: rotate(90deg);
}

.modal-hero-banner {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--navy-darker);
  overflow: hidden;
}

.modal-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-logo-float {
  position: absolute;
  bottom: 15px;
  left: 24px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-1);
  border: 3px solid var(--color-3);
  padding: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.modal-body-mku {
  padding: 1.5rem 1.8rem;
}

.modal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: rgba(242, 242, 242, 0.9);
}

.modal-feature-item i {
  color: var(--color-2);
  font-size: 1.1rem;
  margin-top: 2px;
}

.modal-metrics-box {
  background: rgba(5, 22, 38, 0.7);
  border: 1px solid rgba(81, 166, 157, 0.3);
  border-radius: 16px;
  padding: 1rem;
  margin: 1.2rem 0;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.metric-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-3);
  display: block;
}

.metric-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(242, 242, 242, 0.65);
}

.tag-badge {
  background: rgba(81, 166, 157, 0.12);
  border: 1px solid rgba(81, 166, 157, 0.25);
  color: var(--color-2);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.modal-footer-mku {
  border-top: 1px solid rgba(191, 157, 94, 0.2);
  padding: 1rem 1.8rem;
  background: rgba(5, 22, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-mku-primary {
  background: linear-gradient(135deg, var(--color-2) 0%, #3a7c75 100%);
  color: var(--color-5);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: 1px solid rgba(81, 166, 157, 0.6);
  box-shadow: 0 4px 18px var(--teal-glow);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-mku-primary:hover {
  background: linear-gradient(135deg, #5fc4ba 0%, var(--color-2) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(81, 166, 157, 0.6);
}

.btn-mku-outline {
  background: transparent;
  color: var(--color-5);
  border: 1px solid rgba(242, 242, 242, 0.3);
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-mku-outline:hover {
  background: rgba(242, 242, 242, 0.1);
  border-color: var(--color-3);
  color: var(--color-3);
}

/* Animaciones */
@keyframes floatCore {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes gravitationalWave {
  0% {
    width: 175px;
    height: 175px;
    opacity: 0.8;
  }
  100% {
    width: 460px;
    height: 460px;
    opacity: 0;
  }
}
