/* MiAcademia — sitio público (App Store Connect) */

:root {
  --bg: #1a1a2e;
  --card: #16213e;
  --surface: #0f3460;
  --border: #1e2d4a;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --gold: #fdcb6e;
  --text: #ffffff;
  --sub: #8892b0;
  --success: #00b894;
  --danger: #d63031;
  --max-w: 760px;
  --max-w-wide: 960px;
}

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

html { scroll-behavior: smooth; }

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;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.logo:hover { text-decoration: none; }

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero (marketing) */
.hero {
  padding: 64px 20px 48px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  color: var(--sub);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 24px;
  min-width: 120px;
}

.stat-num { color: var(--accent); font-size: 24px; font-weight: 800; }
.stat-label { color: var(--sub); font-size: 12px; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; text-decoration: none; }

.btn-primary {
  background: var(--gold);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(253, 203, 110, 0.3);
}

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

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 48px 20px; }

.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--sub);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 15px;
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

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

.card p {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.5;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.price-card.featured {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
}

.price-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.price-card h3 { font-size: 16px; margin-bottom: 8px; }
.price-amount { font-size: 28px; font-weight: 800; color: var(--gold); }
.price-period { color: var(--sub); font-size: 13px; margin-bottom: 12px; }
.price-note { color: var(--sub); font-size: 12px; line-height: 1.4; }

/* Legal / support content */
.page-header {
  padding: 48px 20px 24px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header .meta {
  color: var(--sub);
  font-size: 14px;
}

.legal-content {
  padding: 40px 20px 64px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li { margin-bottom: 6px; }

.legal-content strong { color: var(--text); }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin: 32px 0;
}

.contact-box h3 { margin-bottom: 8px; }
.contact-box a { font-size: 18px; font-weight: 700; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--sub);
  font-size: 13px;
}

.footer-copy {
  color: var(--sub);
  font-size: 12px;
}

@media (max-width: 600px) {
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .hero { padding-top: 40px; }
}
