:root {
  --bg: #0b1020;
  --bg-2: #121a33;
  --surface: #ffffff;
  --surface-2: #f5f6fb;
  --ink: #141a2e;
  --muted: #5d6582;
  --line: #e3e6f0;
  --brand: #6d4aff;
  --brand-2: #00c2b8;
  --gold: #f5b942;
  --ok: #1a9b5b;
  --warn: #c98a00;
  --bad: #c43d3d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 26, 46, .08);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface-2); line-height: 1.55; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { background: var(--bg); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: .08em; color: #fff; display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 1rem; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: #cfd5ee; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer; background: var(--brand); color: #fff; transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(109, 74, 255, .35); }
.btn-ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn-ghost:hover { box-shadow: none; }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-danger { background: var(--bad); }
.btn-light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(109,74,255,.45), transparent), radial-gradient(800px 400px at 0% 110%, rgba(0,194,184,.3), transparent), var(--bg); color: #fff; padding: 96px 0 110px; }
.hero .eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; margin: 20px 0 18px; max-width: 18ch; }
.hero h1 .grad { background: linear-gradient(90deg, #b9a8ff, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slogan { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: #dfe3f6; font-style: italic; margin: 0 0 32px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 8px; }
.section-title p { color: var(--muted); margin: 0; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: -70px; }
.pillar { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pillar .icon { font-size: 1.8rem; }
.pillar h3 { margin: 10px 0 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; font-weight: 500; color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .88rem; color: var(--muted); }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 1.2rem; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; width: fit-content; }
.tag-oratoria { background: #efeaff; color: #5534d6; }
.tag-neuro_oratoria { background: #e0f8f6; color: #007c75; }
.tag-ventas { background: #fff3dc; color: #9a6400; }
.tag-habilidades_gerenciales { background: #e8eefc; color: #2848a8; }

.cta { background: linear-gradient(135deg, var(--brand), #3b28b0); color: #fff; border-radius: 22px; padding: 48px; text-align: center; }
.cta h2 { margin: 0 0 10px; }
.cta p { margin: 0 0 24px; color: #e6e1ff; }
.cta .btn { background: #fff; color: var(--brand); }

/* Forms */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(109,74,255,.35); border-color: var(--brand); }
input[type=checkbox] { width: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.error { color: var(--bad); font-size: .85rem; margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.alert-ok { background: #e3f6ec; color: #11613a; }
.alert-bad { background: #fde8e8; color: #8a2222; }
.req { color: var(--bad); }

/* Footer */
.site-footer { background: var(--bg); color: #9aa3c4; padding: 40px 0; margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer strong { color: #fff; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--bg); color: #cfd5ee; padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; }
.sidebar .logo { margin-bottom: 24px; padding: 0 8px; }
.sidebar a { color: #cfd5ee; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar form { margin-top: auto; }
.sidebar button { background: none; border: 0; color: #9aa3c4; font: inherit; cursor: pointer; padding: 10px 12px; }
.admin-main { padding: 32px; overflow-x: auto; }
.admin-main h1 { margin: 0 0 24px; font-size: 1.6rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat .n { font-size: 2rem; font-weight: 800; }
.stat .l { color: var(--muted); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: middle; }
th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.estado { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.estado-pendiente { background: #fff3dc; color: var(--warn); }
.estado-confirmada { background: #e3f6ec; color: var(--ok); }
.estado-cancelada { background: #fde8e8; color: var(--bad); }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.inline select { width: auto; padding: 6px 8px; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 20px 0; flex-wrap: wrap; }
.pagination li > * { display: block; padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.pagination .active > * { background: var(--ink); color: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 500; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 16px; }
.login-wrap .panel { width: min(420px, 100%); }

@media (max-width: 800px) {
  .nav a:not(.btn) { display: none; }
  .form-grid, .two-col { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .logo { margin: 0 12px 0 0; }
  .sidebar form { margin: 0 0 0 auto; }
  .admin-main { padding: 20px 16px; }
  .cta { padding: 32px 20px; }
  .hero { padding: 64px 0 100px; }
}
