/* --------------------------------------------------------------------------
   GeoDescri3D · Landing Page & Portada de Bienvenida
   -------------------------------------------------------------------------- */

/* Modos de pantalla */
#landing-screen {
  display: none;
}

body.show-landing #landing-screen {
  display: flex;
}

body.show-landing > header,
body.show-landing > main,
body.show-landing > div#errorAlertBanner,
body.show-landing > div#linePlaneNoticeBanner,
body.show-landing > div.fixed {
  display: none !important;
}

body.show-landing {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100vh;
  height: 100dvh;
}

#landing-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 50% 18%, rgba(224, 242, 254, 0.7) 0%, rgba(240, 246, 251, 0.95) 60%, #e0f2fe 100%);
}

/* Auroras de luz geométrica */
.landing-aurora {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
  animation: landing-float 18s ease-in-out infinite alternate;
}

.landing-aurora-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 10%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, rgba(37, 99, 235, 0.15) 70%, transparent 100%);
}

.landing-aurora-2 {
  width: 480px;
  height: 480px;
  top: 15%;
  right: 8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(147, 51, 234, 0.12) 70%, transparent 100%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

@keyframes landing-float {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(35px) rotate(10deg) scale(1.08); }
  100% { transform: translateY(-25px) rotate(-8deg) scale(0.95); }
}

/* Barra de Navegación Flotante (Floating Pill) */
.landing-nav-wrapper {
  position: sticky;
  top: 1rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  margin-bottom: 2rem;
  animation: landing-nav-down 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes landing-nav-down {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-pill {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 900px;
  width: 100%;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
}

.landing-brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #1d4ed8, #0284c7, #38bdf8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.landing-nav-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.landing-nav-btn:hover {
  color: #0284c7;
  background: rgba(224, 242, 254, 0.7);
}

.landing-btn-enter {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 6px 16px -2px rgba(2, 132, 199, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-btn-enter:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 22px -2px rgba(2, 132, 199, 0.55);
}

/* Hero Section */
.landing-hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem 3rem;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(186, 230, 253, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  margin-bottom: 1.25rem;
  animation: landing-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.landing-badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #0284c7;
  animation: pulse 2s infinite;
}

.landing-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  max-width: 900px;
  animation: landing-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.landing-title-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: #475569;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 2rem;
  animation: landing-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.75rem;
  animation: landing-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

.landing-btn-primary {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.45);
  transition: all 0.25s ease;
}

.landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(2, 132, 199, 0.6);
}

.landing-btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  padding: 0.85rem 1.75rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.landing-btn-secondary:hover {
  background: #ffffff;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Escenario Interactivo 3D (Visor Three.js Orbital) */
.landing-stage-card {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 3.5rem;
  animation: landing-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.landing-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

#landing3dContainer {
  width: 100%;
  height: 380px;
  max-height: 48vh;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #f0f6fb 0%, #e2e8f0 100%);
  border: 1px solid rgba(186, 230, 253, 0.6);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

#landing3dContainer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

.landing-stage-badge {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 0.6rem;
  padding: 0.3rem 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #475569;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Grid de Características / Módulos */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 3.5rem;
}

.landing-feature-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 8px 24px -6px rgba(2, 132, 199, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
}

.landing-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -6px rgba(2, 132, 199, 0.16);
  border-color: rgba(186, 230, 253, 0.9);
}

.landing-feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.landing-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.landing-feature-card p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* Modales informativos */
.landing-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.landing-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: landing-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes landing-pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Footer */
.landing-footer {
  width: 100%;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .landing-pill {
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
  }
  .landing-nav-links {
    display: none;
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
}
