/* =============================================
   Verónica Giraldo — Portal de entregas
   Estilo: moderno · inspirado en samply.app
   ============================================= */

:root {
  --bg: #050505;
  --surface: #0e0e0e;
  --surface-2: #171717;
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --gold: #d4a24a;
  --gold-bright: #e0bf7a;
  --gold-soft: rgba(212, 162, 74, .14);
  --border: rgba(255, 255, 255, .08);
  --radius: 20px;
  --radius-sm: 12px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TOP ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
}

.top__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0bf7a, #b98a3f);
  color: #0a0a0a;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(212, 162, 74, .25);
}

.top__brand { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.top__brand b { color: var(--text); font-weight: 700; }

.top__badge {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 162, 74, .25);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- HEADER ---------- */
.header {
  padding: 56px 0 40px;
  text-align: left;
}

.header__eyebrow {
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.header__title {
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.header__title em {
  font-style: normal;
  color: var(--text-muted);
}

.header__sub { color: var(--text-muted); font-size: .98rem; max-width: 460px; }

/* ---------- ENTREGAS ---------- */
.delivery { margin-bottom: 40px; }

.delivery__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.delivery__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.delivery__line { flex: 1; height: 1px; background: var(--border); }

.delivery__count { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

.delivery-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- TARJETA DE TRACK ---------- */
.track {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.track:hover { border-color: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.track__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px 18px;
}

.track__cover {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

.track__cover--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.track__month {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.track__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.track__quality {
  margin-top: 6px;
  font-size: .8rem;
  color: var(--gold);
}

/* ---------- ARCHIVOS ---------- */
.track__files { border-top: 1px solid var(--border); }

.file { padding: 14px 22px; }

.file + .file { border-top: 1px solid var(--border); }

.file:hover { background: var(--surface-2); }

.file__main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file__spacer { width: 40px; flex-shrink: 0; }

.file__play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}

.file__play:hover { background: var(--gold-bright); transform: scale(1.05); }

.file__play.is-playing { background: var(--text); }

.file__info { flex: 1; min-width: 0; }

.file__name {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file__meta {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.file__dl {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color .2s, border-color .2s, background .2s;
}

.file__dl:hover { color: var(--text); border-color: var(--gold); background: var(--gold-soft); }

/* ---------- REPRODUCTOR (barra de búsqueda) ---------- */
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 2px 54px;
}

.player__bars {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 0;
}

.bar {
  flex: 1;
  max-width: 6px;
  height: calc(var(--h) * 100%);
  min-height: 3px;
  background: rgba(255, 255, 255, .14);
  border-radius: 3px;
  transition: background .12s;
}

.bar.is-played { background: var(--gold); }

.player__time {
  font-size: .72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 104px;
  text-align: right;
  flex-shrink: 0;
}

.track__footer {
  border-top: 1px solid var(--border);
  padding: 14px 22px;
}

.zip-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 11px;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}

.zip-btn:hover { color: var(--text); border-color: var(--gold); background: var(--gold-soft); }

.zip-btn:disabled { opacity: .6; cursor: default; }

/* ---------- NOTA INFORMATIVA ---------- */
.note {
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--text-muted);
  opacity: .75;
}

.note p + p { margin-top: 8px; }

.note strong { color: var(--text); font-weight: 600; }

/* ---------- ESTADOS ---------- */
.empty-state, .loading-state, .error-state {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: .86rem;
}

.footer strong { color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .track__head { padding: 18px 16px 14px; }
  .file { padding: 12px 16px; }
  .track__footer { padding: 12px 16px; }
}
