:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent: #8b5cf6;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== NAVEGACIÓN ==================== */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-login {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text) !important;
}

.btn-login:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* ==================== BOTONES ==================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #ec4899 100%);
  opacity: 0.08;
  mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== PASOS ==================== */
.pasos-section {
  padding: 80px 0;
}

.pasos-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
  font-weight: 700;
}

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

.paso-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.paso-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.paso-numero {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.paso-icono {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.paso-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.paso-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==================== TEMÁTICAS ==================== */
.tematicas-section {
  padding: 60px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tematicas-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.tematicas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tema-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.tema-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.tema-icono {
  font-size: 2rem;
  margin-bottom: 8px;
}

.tema-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ==================== PRECIOS ==================== */
.precios-section {
  padding: 80px 0;
}

.precios-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
  font-weight: 700;
}

.precios-grid {
  display: flex;
  justify-content: center;
}

.precio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
}

.precio-card.destacado {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.precio-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.precio-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.precio-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.precio-periodo {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.precio-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.precio-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.precio-features li:last-child {
  border-bottom: none;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .pasos-grid {
    grid-template-columns: 1fr;
  }
  .tematicas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links a:not(.btn-login) {
    display: none;
  }
}
