:root {
  --primary: #4f46e5;
  --secondary: #7c3aed;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --bg-body: #f8fafc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* --- HERO SECTION --- */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* --- BUTTONS --- */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn.primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- MAIN CONTAINER --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: -8rem; /* Elevación sobre el hero */
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: y 0.3s;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 { margin: 0 0 0.5rem 0; }
.muted { color: var(--text-muted); font-size: 0.95rem; }

/* --- ACCESS SECTION --- */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.action-item:hover {
  border-color: var(--primary);
  background: #f1f5ff;
}

.action-item .icon { font-size: 1.5rem; }

/* --- TIMELINE CSS (Para Changelog) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #e2e8f0;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e2e8f0;
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.timeline-content h2 {
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-content h2 span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: normal;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
}

/* --- GALLERY SECTION --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.screenshot-card {
  background: var(--white);
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.screenshot-card:hover {
  transform: scale(1.03);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* --- ENHANCED FOOTER --- */
.site-footer {
  background: #111827; /* Fondo oscuro para destacar */
  color: #9ca3af;
  padding: 4rem 1.5rem 2rem 1.5rem;
  text-align: center;
  margin-top: 5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-credits {
  border-top: 1px solid #1f2933;
  padding-top: 2rem;
  font-size: 0.85rem;
}

.footer-credits strong {
  color: var(--white);
}