/* trova — estilo base, dark default con light toggle. Tipografía: Fraunces (display) + DM Sans (texto). */

:root {
  --bg:         #0e0b12;
  --bg-elev:   #16121c;
  --border:    #2a2330;
  --fg:        #ece6d7;
  --fg-dim:    #9b8f7c;
  --accent:    #d9a14a;    /* ámbar cálido — color de madera de guitarra */
  --accent-2:  #c45a3c;    /* terracota */
  --ok:        #8cc084;
  --err:       #e07a63;
  --radius:    10px;
  --maxw:      980px;
}
html[data-theme="light"] {
  --bg:        #faf6ee;
  --bg-elev:  #f0eadc;
  --border:   #d9cfb8;
  --fg:       #1c140a;
  --fg-dim:   #6b5d45;
  --accent:   #a5600a;
  --accent-2: #9e3b1f;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex:1; max-width: var(--maxw); width:100%; margin: 0 auto; padding: 32px 20px 80px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height:1.1; margin: 0 0 14px; }
h2 { font-size: clamp(22px, 3vw, 28px); margin: 24px 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }

/* ── nav ───────────────────────────────────────────────── */
.site-nav {
  position: sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:20px;
  padding: 14px 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display:flex; align-items:center; gap:8px; color:var(--fg); font-family:'Fraunces',serif; font-weight:600; font-size:22px; }
.brand:hover { text-decoration:none; color: var(--accent); }
.nav-links { display:flex; gap:14px; flex:1; flex-wrap:wrap; }
.nav-links a { color: var(--fg-dim); font-size:14px; letter-spacing:.02em; }
.nav-links a:hover, .nav-links a.on { color: var(--fg); text-decoration:none; }
.theme-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--fg); cursor: pointer;
  width: 34px; height:34px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 16px;
}
.theme-btn:hover { background: var(--bg-elev); }

/* ── hero ──────────────────────────────────────────────── */
.hero { padding: 40px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: .12em; color: var(--fg-dim); margin:0 0 10px; }
.lede { font-size: 17px; color: var(--fg-dim); max-width: 62ch; }
.hero-cta { display:flex; gap:10px; margin-top: 18px; flex-wrap:wrap; }
.hero-stats { display:flex; gap:20px; margin-top: 22px; flex-wrap:wrap; color: var(--fg-dim); font-size: 14px; }
.hero-stats b { color: var(--fg); font-weight: 600; }

.btn {
  display:inline-flex; align-items:center; padding: 10px 18px;
  border-radius: 24px; border:1px solid var(--border);
  background: transparent; color: var(--fg);
  font: 500 14px/1 'DM Sans', sans-serif; cursor:pointer; transition: all .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--accent); color:#1c140a; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); color:#fff; border-color: var(--accent-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── sections ──────────────────────────────────────────── */
.section { margin: 32px 0; }
.section.narrow { max-width: 620px; }
.section.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.section-head { display:flex; align-items:baseline; justify-content:space-between; }
.section-head .link { font-size: 14px; }

/* ── event list ────────────────────────────────────────── */
.event-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.event-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .15s ease;
}
.event-card:hover { border-color: var(--accent); }
.event-date { font-size: 12px; letter-spacing: .05em; color: var(--accent); text-transform: uppercase; }
.event-meta { color: var(--fg-dim); font-size: 14px; margin: 4px 0 0; }

/* ── grid cards (artistas, lugares) ───────────────────── */
.grid-cards { list-style:none; padding:0; margin:16px 0; display:grid; gap:12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--bg-elev);
  border:1px solid var(--border); border-radius: var(--radius);
  padding: 16px;
}
.card h3 { margin-bottom: 6px; }
.card .muted { color: var(--fg-dim); font-size: 13px; margin: 0 0 8px; }
.clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient: vertical; overflow:hidden; font-size:14px; color: var(--fg-dim); }

/* ── pills ─────────────────────────────────────────────── */
.pill-row { display:flex; flex-wrap:wrap; gap:8px; margin: 10px 0 20px; }
.pill {
  display:inline-block; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 24px;
  font-size: 13px; color: var(--fg-dim);
}
.pill:hover, .pill.on { color: var(--fg); border-color: var(--accent); text-decoration:none; }

/* ── profile pages ─────────────────────────────────────── */
.profile-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.link-row { display:flex; gap:14px; flex-wrap:wrap; margin: 10px 0 24px; font-size:14px; }

/* ── form (enviar) ─────────────────────────────────────── */
form { display:flex; flex-direction:column; gap:16px; }
label { display:flex; flex-direction: column; gap:6px; font-size: 13px; color: var(--fg-dim); }
input, select, textarea {
  background: var(--bg-elev); color: var(--fg);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font: 400 14px/1.4 'DM Sans', sans-serif;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
#submit-status.ok  { color: var(--ok); }
#submit-status.err { color: var(--err); }

/* ── footer ────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  display:grid; gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  font-size: 13px; color: var(--fg-dim);
  max-width: var(--maxw); width:100%; margin-left:auto; margin-right:auto;
}
.foot-col { display:flex; flex-direction:column; gap:4px; }
.foot-col a { color: var(--fg-dim); }
.foot-col a:hover { color: var(--accent); }
.foot-col.meta { text-align: right; }
#koa-brand-tag { display:inline-block; padding: 2px 8px; border:1px solid var(--border); border-radius: 12px; font-size: 11px; }

.muted { color: var(--fg-dim); }
