/* ── Global Styles — evaluacion-digital.com ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --border: rgba(148,163,184,0.1);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #0078d4;
  --primary-dark: #005a9e;
  --accent: #00bcf2;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --purple: #8b5cf6;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ── Light mode overrides ── */
body.light-mode {
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border: rgba(30,41,59,0.12);
  --text: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
  --primary: #0078d4;
  --primary-dark: #005a9e;
  --accent: #0078d4;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --purple: #7c3aed;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* Navbar */
body.light-mode .navbar { background: rgba(240,244,248,0.97) !important; border-bottom-color: rgba(30,41,59,0.12) !important; }
body.light-mode .navbar .brand { color: #1e293b !important; }
body.light-mode .navbar nav a { color: rgba(30,41,59,0.75) !important; background: rgba(30,41,59,0.05) !important; border-color: rgba(30,41,59,0.1) !important; }
body.light-mode .navbar nav a:hover { background: rgba(99,102,241,0.15) !important; color: #1e293b !important; }
body.light-mode .navbar nav a[href="login.html"] { color: white !important; }

/* All text elements */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 { color: #1e293b !important; }

body.light-mode p,
body.light-mode li,
body.light-mode span:not(.btn):not([class*="badge"]),
body.light-mode label,
body.light-mode td,
body.light-mode th { color: #475569 !important; }

/* Cards */
body.light-mode .card { background: #ffffff !important; border-color: rgba(30,41,59,0.12) !important; }
body.light-mode .card h3 { color: #1e293b !important; }
body.light-mode .card p { color: #475569 !important; }

/* Pricing */
body.light-mode .pricing-card { background: #ffffff !important; border-color: rgba(30,41,59,0.15) !important; }
body.light-mode .pricing-card h3 { color: #475569 !important; }
body.light-mode .pricing-card .price { color: #1e293b !important; }
body.light-mode .pricing-card .price span { color: #64748b !important; }
body.light-mode .pricing-card .features li { color: #475569 !important; border-bottom-color: rgba(30,41,59,0.08) !important; }
body.light-mode .pricing-card.featured { border-color: var(--primary) !important; }

/* Hero */
body.light-mode .hero { background: radial-gradient(ellipse at 50% 0%, rgba(0,120,212,0.06), transparent 60%) !important; }
body.light-mode .hero h1 { color: #1e293b !important; }
body.light-mode .hero p { color: #475569 !important; }
body.light-mode .hero h1 span { color: var(--primary) !important; }

/* Section titles */
body.light-mode .section-title h2 { color: #1e293b !important; }
body.light-mode .section-title p { color: #475569 !important; }

/* Stats */
body.light-mode .stat .num { color: var(--primary) !important; }
body.light-mode .stat .lbl { color: #64748b !important; }

/* Footer */
body.light-mode .footer { color: #64748b !important; border-top-color: rgba(30,41,59,0.12) !important; }
body.light-mode .footer a { color: var(--primary) !important; }

/* FAQ cards */
body.light-mode .card h3 { color: #1e293b !important; }

/* Inline style overrides — force dark text on light bg */
body.light-mode [style*="color:#f8fafc"] { color: #1e293b !important; }
body.light-mode [style*="color:#f1f5f9"] { color: #1e293b !important; }
body.light-mode [style*="color:#e2e8f0"] { color: #334155 !important; }
body.light-mode [style*="color:#cbd5e1"] { color: #475569 !important; }
body.light-mode [style*="color:#94a3b8"] { color: #64748b !important; }
body.light-mode [style*="color:#64748b"] { color: #64748b !important; }
body.light-mode [style*="color:#60a5fa"] { color: #0078d4 !important; }
body.light-mode [style*="color:#34d399"] { color: #059669 !important; }
body.light-mode [style*="color:#f87171"] { color: #dc2626 !important; }

/* Inline bg overrides */
body.light-mode [style*="background:#0f172a"],
body.light-mode [style*="background: #0f172a"],
body.light-mode [style*="background:#060d1a"],
body.light-mode [style*="background:#1e293b"],
body.light-mode [style*="background: #1e293b"] { background: #f8fafc !important; }

/* Borders */
body.light-mode [style*="border-color:#334155"],
body.light-mode [style*="border:1px solid #334155"],
body.light-mode [style*="border: 1px solid #334155"] { border-color: #cbd5e1 !important; }

/* Dark mode toggle button */
.dark-mode-toggle {
  background: rgba(148,163,184,0.1);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 8px;
  color: #f8fafc;
  cursor: pointer;
  font-size: 1rem;
  padding: 7px 10px;
  line-height: 1;
  transition: 0.2s;
  flex-shrink: 0;
}
.dark-mode-toggle:hover { background: rgba(148,163,184,0.2); transform: scale(1.05); }
body.light-mode .dark-mode-toggle { color: #1e293b; background: rgba(30,41,59,0.08); border-color: rgba(30,41,59,0.15); }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}

.navbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar .brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar .brand img {
  height: 56px;
  filter: drop-shadow(0 2px 12px rgba(0,188,242,0.6)) brightness(1.3);
}

.navbar .brand span { color: var(--accent); }

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

.navbar nav a {
  padding: 9px 18px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  letter-spacing: 0.2px;
  text-decoration: none;
}

.navbar nav a:hover {
  background: rgba(99,102,241,0.35);
  border-color: rgba(99,102,241,0.4);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(99,102,241,0.3);
  transform: translateY(-1px);
}

.navbar nav a.active {
  background: rgba(99,102,241,0.5);
  border-color: rgba(99,102,241,0.5);
  color: white;
  box-shadow: 0 0 14px rgba(99,102,241,0.35);
}

/* Ingresar — más destacado */
.navbar nav a[href="login.html"] {
  background: linear-gradient(135deg, rgba(99,102,241,0.7), rgba(79,70,229,0.8));
  border-color: rgba(99,102,241,0.5);
  color: white;
  box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}

.navbar nav a[href="login.html"]:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(79,70,229,1));
  box-shadow: 0 4px 18px rgba(99,102,241,0.55);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: rgba(148,163,184,0.08);
  border: 1px solid var(--border);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f8fafc;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

.nav-mobile a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: 0.2s;
}

.nav-mobile a:hover, .nav-mobile a.active { background: var(--primary); color: white; text-decoration: none; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,120,212,0.08), transparent 60%);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 4px 14px rgba(0,120,212,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--accent); }
.btn-outline:hover { background: rgba(0,120,212,0.1); }
.btn-success { background: linear-gradient(135deg, var(--success), #059669); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ── Sections ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.section-title p { color: var(--text-muted); font-size: 1rem; }

/* ── Cards Grid ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: 0.2s;
}

.card:hover { border-color: rgba(0,188,242,0.2); transform: translateY(-2px); box-shadow: var(--shadow); }

.card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Pricing ── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured { border-color: var(--primary); }
.pricing-card.featured::before { content: 'Popular'; position: absolute; top: 12px; right: -28px; background: var(--primary); color: white; padding: 4px 32px; font-size: 0.7rem; font-weight: 700; transform: rotate(45deg); }

.pricing-card .price { font-size: 2.5rem; font-weight: 900; color: var(--text); margin: 16px 0; }
.pricing-card .price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pricing-card .features { list-style: none; margin: 20px 0; text-align: left; }
.pricing-card .features li { padding: 8px 0; color: var(--text-muted); font-size: 0.88rem; border-bottom: 1px solid rgba(148,163,184,0.06); }
.pricing-card .features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ── Stats ── */
.stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 40px 0; }
.stat { text-align: center; }
.stat .num { font-size: 2.5rem; font-weight: 900; color: var(--accent); }
.stat .lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .navbar .inner { flex-wrap: wrap; gap: 8px; }
  .navbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .navbar nav a {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  .stats { gap: 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .hero .btns { flex-direction: column; align-items: center; }
  .hero .btns .btn { width: 100%; max-width: 300px; }
}
