/* CONTENEDORES Y ESTRUCTURA */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

main {
  flex: 1;
  width: 100%;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-lg {
  padding: 110px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* NAVBAR HEADER */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.95);
  border-bottom-color: var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* MENÚ HAMBURGUESA MÓVIL */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-card);
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 900px) {
  .nav-menu, .nav-actions .nav-desktop-only {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-space);
    padding: 30px 24px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }

  .mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mobile-menu-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .mobile-drawer .btn {
    margin-top: 25px;
    width: 100%;
  }
}

/* BREADCRUMBS */
.breadcrumbs-nav {
  padding: 18px 0;
  font-size: 0.9rem;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--cyan-300);
}

.breadcrumb-item.active {
  color: var(--cyan-400);
  font-weight: 600;
}

.breadcrumb-sep {
  opacity: 0.4;
  font-size: 0.8rem;
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .section-lg {
    padding: 75px 0;
  }
}

/* FOOTER */
.site-footer {
  background: #04070F;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: 600px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
