/* Matrits Guía IA - Components */

/* ============= NAVBAR ============= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

@media (prefers-color-scheme: dark) {
  .navbar {
    background-color: rgba(26, 30, 39, 0.95);
  }
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.navbar-brand-icon {
  width: 32px;
  height: 32px;
  background-color: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.navbar-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-link:hover {
  color: var(--navy);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--navy);
  transition: width 0.3s ease;
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-link.active {
  color: var(--navy);
}

.navbar-link.active::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  gap: 1rem;
}

.navbar-cta .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .navbar-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .navbar-content {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .navbar-cta {
    width: 100%;
    order: 3;
    margin-top: 1rem;
  }
}

/* ============= HERO ============= */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--navy-tint) 100%);
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ============= FEATURE CARDS ============= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--navy-light);
  box-shadow: 0 12px 32px rgba(43, 128, 237, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--navy-tint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.feature-card h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============= FOOTER ============= */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--navy);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--navy);
  color: white;
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 1.5rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============= SECTIONS ============= */
.section {
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

/* ============= BADGES ============= */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--navy-tint);
  color: var(--navy);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-accent {
  background-color: rgba(201, 123, 92, 0.1);
  color: var(--accent);
}

/* ============= DIVIDER ============= */
.divider {
  width: 60px;
  height: 3px;
  background-color: var(--navy);
  margin: 1rem 0;
  border-radius: 2px;
}
