:root {
  --black: #0a0e17;
  --dark: #111827;
  --blue: #1976d2;
  --accent: #60a5fa;
  --gray: #e5e7eb;
  --light-gray: #9ca3af;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--gray);
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--black);
  border-bottom: 1px solid #1f2937;
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--white);
}

.btn-login {
  background: linear-gradient(135deg, var(--blue), #0d47a1);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 2.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
  white-space: nowrap;
  min-width: 160px;
  text-align: center;
  margin-left: auto; /* Esto asegura que esté siempre a la derecha */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn-login:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(25, 118, 210, 0.6);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

main { padding-top: 100px; }

.hero {
  background: linear-gradient(135deg, #0d47a1 0%, #111827 100%);
  text-align: center;
  padding: 160px 5% 120px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  color: var(--white);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.3rem;
  max-width: 820px;
  margin: 2rem auto;
  color: #d1d5db;
}

.btn-primary {
  background: var(--blue);
  color: white;
  padding: 1.1rem 3rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #1565c0;
  transform: translateY(-3px);
}

.section {
  padding: 100px 5%;
  max-width: 1440px;
  margin: 0 auto;
}

h2, h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.grid-4, .grid-3 {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  text-align: center;
  margin: 5rem 0;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 4rem auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  padding: 2rem;
  background: #111827;
  border-radius: 8px;
  margin: 2rem 0;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 55%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-item.left::after {
  right: -34px;
}

.timeline-item.right::after {
  left: -34px;
}

footer {
  background: var(--black);
  padding: 5rem 5% 3rem;
  text-align: center;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
}

/* Responsivo */
@media (max-width: 1024px) {
  header {
    padding: 1rem 4%;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 1.5rem;
    border-top: 1px solid #1f2937;
  }

  nav ul.active {
    display: flex;
  }

  .nav-container {
    gap: 1.5rem;
  }

  .btn-login {
    margin-left: auto;
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    min-width: 140px;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 80%;
    left: 60px !important;
    text-align: left !important;
  }

  .timeline-item::after {
    left: -26px !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 5% 80px;
  }

  .section {
    padding: 60px 5%;
  }
}