/* =====================================================
   LANDING_PAGE.CSS — Index / Landing page only
   Requires: global.css loaded first
   ===================================================== */

/* ── Navbar ── */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  transition: background 0.4s ease;
}

[data-theme='light'] .main-header {
  background: rgba(248, 250, 252, 0.9);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main) !important;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent) !important;
}

.btn-log-in {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 22px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
  font-family: inherit;
}

.btn-log-in:hover {
  background: var(--border-glass);
}

.btn-register {
  background: linear-gradient(135deg, var(--purple-mid), var(--accent));
  color: #fff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
  transition: 0.3s;
  cursor: pointer;
  font-family: inherit;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

/* ── Background pseudo ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(at 0% 0%, rgba(109, 40, 217, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.08) 0px, transparent 50%);
  z-index: -1;
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.main-hero-logo {
  height: 180px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all 0.5s ease;
  object-fit: contain;
}

[data-theme='light'] .main-hero-logo {
  filter: brightness(0);
}
.main-hero-logo:hover {
  transform: scale(1.05);
}

.badge-ai {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -3px;
  margin: 30px 0 24px;
}

.hero-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 48px;
}

.btn-primary-custom {
  background: var(--text-main);
  color: var(--bg-body);
  padding: 18px 40px;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  transition: 0.3s;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary-custom {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 18px 40px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.3s;
  cursor: pointer;
  font-family: inherit;
}

/* ── Benefits bar ── */
.benefit-item i {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto;
}
.benefit-text {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Sections ── */
.py-100 {
  padding: 100px 0;
}
.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 15px;
}
.bg-subtle {
  background: rgba(168, 85, 247, 0.03);
}

/* ── Method cards ── */
.card-simple {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 45px;
  border-radius: 24px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-simple:hover {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(109, 40, 217, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--purple-mid), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: #fff;
}

/* ── Features ── */
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.skill-preview-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-bar-mockup {
  margin-bottom: 20px;
}
.skill-bar-mockup span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

[data-theme='light'] .progress-track {
  background: rgba(0, 0, 0, 0.06);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-mid), var(--accent));
  border-radius: 10px;
}

/* ── Tech grid ── */
.tech-item {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: 0.3s;
  cursor: default;
}
.tech-item:hover {
  color: var(--accent);
  transform: translateY(-5px);
}

/* ── CTA ── */
.cta-card {
  background: linear-gradient(135deg, #1e1b4b 0%, var(--purple-deep) 100%);
  border-radius: 40px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  padding: 80px 40px !important;
  color: #fff;
}

/* ── Footer ── */
.footer {
  background: #0f0f13;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 25px;
}

[data-theme='light'] .footer {
  background: #dfd5e9;
  border-top-color: rgba(15, 23, 42, 0.08);
}

.footer-mission {
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  color: var(--text-main);
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-block;
}
.footer-nav a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.social-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.3s;
}
.social-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px) rotate(6deg);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.35);
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 6px;
  border-radius: 12px;
  margin-top: 10px;
}
.newsletter-input {
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: var(--text-main);
  flex: 1;
  font-size: 0.9rem;
  font-family: inherit;
}
.newsletter-input::placeholder {
  color: var(--text-muted);
}
.newsletter-input:focus {
  outline: none;
}

.btn-newsletter {
  background: var(--accent);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  cursor: pointer;
}
.btn-newsletter:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
}

.footer-divider {
  margin: 60px 0 25px;
  border: none;
  height: 1px;
  background: var(--border-glass);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.25s;
}
.footer-legal a:hover {
  color: var(--text-main);
}

/* Logo filter for landing */
.logo-filter {
  filter: brightness(0) invert(1);
}
[data-theme='light'] .logo-filter {
  filter: none;
}




/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: -2px;
  }

  .hero-text {
    font-size: 1.1rem;
  }

  .cta-card {
    padding: 60px 30px !important;
    border-radius: 28px;
  }
}

/* ── 768px: tablet portrait ── */
@media (max-width: 768px) {
  /* Navbar */
  .main-header {
    padding: 10px 0;
  }

  /* Bootstrap toggler visual mejora */
  .navbar-toggler {
    border-color: var(--border-glass);
    padding: 6px 10px;
  }

  .navbar-toggler-icon {
    filter: invert(1);
  }

  [data-theme='light'] .navbar-toggler-icon {
    filter: none;
  }

  /* Menú colapsado tiene fondo */
  .navbar-collapse {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 16px;
    margin-top: 10px;
    backdrop-filter: blur(16px);
  }

  .navbar-nav {
    gap: 4px !important;
    margin-bottom: 12px !important;
  }

  .navbar-nav .nav-link {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .navbar-nav .nav-link:hover {
    background: var(--accent-dim);
  }

  /* Botones en navbar colapsado */
  .d-flex.align-items-center.gap-3 {
    flex-direction: column;
    gap: 8px !important;
  }

  .btn-log-in,
  .btn-register {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  /* Hero */
  .hero {
    padding: 100px 0 60px;
  }

  .main-hero-logo {
    height: 120px;
  }

  .hero-title {
    letter-spacing: -1.5px;
    margin: 20px 0 16px;
  }

  .hero-text {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    width: 100%;
    max-width: 320px;
    padding: 15px 20px;
  }

  /* Sections */
  .py-100 {
    padding: 60px 0;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* Cards */
  .card-simple {
    padding: 28px 22px;
  }

  /* CTA */
  .cta-card {
    padding: 40px 20px !important;
    border-radius: 20px;
  }

  /* Footer */
  .footer {
    padding: 50px 0 20px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ── 480px: móvil ── */
@media (max-width: 480px) {
  .hero {
    padding: 88px 0 48px;
  }

  .badge-ai {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: -1px;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .main-hero-logo {
    height: 90px;
  }

  .skill-preview-container {
    padding: 20px 16px;
  }

  .footer-newsletter {
    flex-direction: column;
  }

  .btn-newsletter {
    width: 100%;
    height: 42px;
    border-radius: 8px;
  }
}

/* ── 390px: mínimo ── */
@media (max-width: 390px) {
  .hero-title {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    font-size: 14px;
    padding: 13px 16px;
  }
}
