/* =========================================
   LEARCORP - ESTILOS GLOBALES (LANDING)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-dark: #0b2b5c;
  --primary: #0f3f7a;
  --primary-light: #eef4ff;
  --gray-bg: #fafcff;
  --text-dark: #0a142f;
  --text-muted: #4a5568;
  --border-light: #eef2fc;
  --shadow-sm: 0 12px 26px -12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 28px 36px -16px rgba(0, 60, 120, 0.18);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

#network-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.55; background: transparent;
}
.content-layer { position: relative; z-index: 2; }
.bg-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.7) 70%,
    rgba(255,255,255,0.95) 100%);
}

h1, h2, h3, h4, .fw-display, .navbar-brand, .hero-badge {
  font-family: 'Space Grotesk', monospace;
  font-weight: 700; letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.75rem); }
.lead { font-size: clamp(1rem, 3vw, 1.25rem); }
p, .text-secondary { font-size: clamp(0.875rem, 2.5vw, 1rem); }

.gradient-bg-light {
  background: radial-gradient(ellipse at 80% 20%,
    rgba(0, 70, 200, 0.02), rgba(255,255,255,0) 70%);
}

/* ---------- NAVBAR ---------- */
.navbar-lear {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.7rem 1rem; z-index: 1030;
}
.logo-img {
  height: 42px; width: auto; max-width: 180px;
  object-fit: contain; transition: all 0.2s;
}
@media (max-width: 768px) { .logo-img { height: 36px; } }
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
}
.nav-link {
  font-weight: 500; font-size: 0.95rem;
  transition: 0.2s; padding: 0.5rem 0.8rem;
}
.nav-link:hover {
  color: var(--primary) !important;
  transform: translateY(-1px);
}

/* Botones */
.btn-premium {
  background: linear-gradient(105deg, #0b2b5c, #0f3f7a);
  border: none; padding: 0.7rem 1.5rem;
  font-weight: 600; border-radius: 44px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 20px -8px rgba(0, 40, 85, 0.3);
  color: white; font-size: clamp(0.85rem, 3vw, 1rem);
}
.btn-premium:hover {
  transform: translateY(-3px);
  background: linear-gradient(105deg, #123a6e, #1a4e8c);
  box-shadow: 0 20px 28px -12px rgba(0, 60, 110, 0.4);
  color: white;
}
.btn-outline-premium {
  border: 1.5px solid #cfdef5;
  background: white; border-radius: 44px;
  padding: 0.65rem 1.4rem; font-weight: 500;
  transition: 0.2s; color: #0b2b5c;
  font-size: clamp(0.85rem, 3vw, 1rem);
}
.btn-outline-premium:hover {
  background: #f0f5ff; border-color: #2a5a9e;
  transform: translateY(-2px); color: #0b2b5c;
}
.btn-sm-premium { padding: 0.45rem 1.2rem; font-size: 0.8rem; }

.hero-badge {
  background: rgba(0, 88, 210, 0.08);
  border-radius: 100px; padding: 0.3rem 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  font-weight: 600;
}

/* Cards glass */
.card-solution {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem; padding: 1.5rem;
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  height: 100%; display: flex; flex-direction: column;
}
.card-solution:hover {
  transform: translateY(-6px);
  border-color: #cddfff;
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.98);
}
.icon-circle {
  background: linear-gradient(145deg, #eef4ff, #ffffff);
  width: clamp(50px, 12vw, 64px);
  height: clamp(50px, 12vw, 64px);
  border-radius: 28px; display: flex;
  align-items: center; justify-content: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: #0f3f7a; margin-bottom: 1.2rem;
}
.badge-cost {
  background: #eef3e6; color: #236b2e;
  border-radius: 60px; font-weight: 600;
  font-size: 0.75rem; padding: 0.3rem 0.9rem;
}
.contact-glass {
  background: rgba(250, 252, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  border: 1px solid #eef2fa;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.05);
  padding: clamp(1.5rem, 6vw, 2.5rem);
}
.container {
  width: 100%;
  padding-right: clamp(1rem, 4vw, 2rem);
  padding-left: clamp(1rem, 4vw, 2rem);
  max-width: 1400px; margin: 0 auto;
}
section { padding: clamp(2.5rem, 8vw, 5rem) 0; position: relative; }

/* Modal */
.demo-img-preview {
  max-width: 100%; border-radius: 1rem;
  margin: 0.5rem 0 1rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border: 1px solid #eef2f8;
}
.modal-demo-img {
  width: 100%; object-fit: cover;
  border-radius: 1rem; max-height: 320px;
}
.demo-modal .modal-content {
  border-radius: 1.5rem; border: none; margin: 1rem;
}
.demo-description { font-size: 1rem; line-height: 1.5; }
.hero-section { position: relative; z-index: 2; }

@media (max-width: 992px) {
  .navbar-nav { margin-top: 1rem; }
  .nav-link { text-align: center; }
  .hero-section { text-align: center; }
}
@media (max-width: 768px) {
  .card-solution { padding: 1.2rem; }
  .btn-premium, .btn-outline-premium {
    width: 100%; margin-top: 0.5rem; white-space: normal;
  }
  #network-canvas { opacity: 0.35; }
}
footer {
  background: rgba(255,255,255,0.95);
  border-top: 1px solid #edf2f9;
  padding: 1.5rem 0; position: relative; z-index: 2;
}