/* =============================================
   Stiven Giraldo — Sitio público
   Estilo: música popular · tierra · elegante · minimalista
   ============================================= */

:root {
  --bg: #f6f2ec;
  --bg-2: #efe9e0;
  --surface: #fdfbf8;
  --surface-2: #ebe4d8;
  --text: #2f2a23;
  --text-muted: #8a8173;
  --gold: #a9794a;
  --gold-bright: #bd8a55;
  --gold-soft: rgba(169, 121, 74, .13);
  --border: rgba(47, 42, 35, .12);
  --spotify: #1DB954;
  --youtube: #c4302b;
  --tiktok: #0e8b86;
  --meta: #0668e1;
  --danger: #b0553f;
  --radius: 22px;
  --radius-sm: 14px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-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.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding: 72px 28px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 85% 15%, rgba(169, 121, 74, .1), transparent 60%),
    radial-gradient(45% 40% at 8% 90%, rgba(169, 121, 74, .07), transparent 60%);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1.02;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.hero__genre {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 26px;
}

.hero__text {
  color: var(--text-muted);
  max-width: 460px;
  font-size: 1rem;
  line-height: 1.75;
}

.hero__cta {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #fdfbf8;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: background .25s, transform .25s;
}

.hero__cta:hover { background: var(--gold-bright); transform: translateY(-2px); }

.hero__photo-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}

.hero__photo { width: 100%; height: 100%; object-fit: cover; }

.hero__photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
}

/* ---------- SECCIONES ---------- */
.section { padding: 96px 0; }

.section--alt { background: var(--bg-2); }

.section__head { margin-bottom: 52px; }

.section__head--center { text-align: center; }

.section__kicker {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.18;
}

.section__sub {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 560px;
}

.section__head--center .section__sub { margin-inline: auto; }

/* ---------- CAMPAÑA ---------- */
.campaign {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.campaign::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.campaign__media {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}

.campaign__cover { width: 100%; height: 100%; object-fit: cover; }

.campaign__body { min-width: 0; }

.campaign__song {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  margin-bottom: 6px;
}

.campaign__artist {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.campaign__meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 22px; }

.campaign__player {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.campaign__player iframe { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .88rem;
  transition: filter .2s, transform .2s;
}

.btn--spotify { background: var(--spotify); color: #04150b; }
.btn--youtube { background: var(--youtube); color: #fff; }
.btn--tiktok { background: var(--tiktok); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }

.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- SERVICIOS (bloque vertical) ---------- */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(47, 42, 35, .07);
}

.service__bar { height: 5px; }

.service__bar--spotify { background: linear-gradient(90deg, #1DB954, #17a54a); }
.service__bar--youtube { background: linear-gradient(90deg, #c4302b, #e0564f); }
.service__bar--tiktok { background: linear-gradient(90deg, #0e8b86, #13b3ac); }
.service__bar--meta { background: linear-gradient(90deg, #0668e1, #3b8af0); }

.service__inner { padding: 38px; }

.service__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.service__identity { display: flex; align-items: center; gap: 16px; }

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(47, 42, 35, .18);
}

.platform-icon--spotify { background: linear-gradient(135deg, #1DB954, #128a3e); }
.platform-icon--youtube { background: linear-gradient(135deg, #c4302b, #8e211c); }
.platform-icon--tiktok { background: linear-gradient(135deg, #0e8b86, #0a6a66); }
.platform-icon--meta { background: linear-gradient(135deg, #0668e1, #04459a); }

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

.service__label { font-size: 1.2rem; font-weight: 700; }

.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .42rem 1rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(47, 42, 35, .12);
}

.ribbon__icon { font-size: .9rem; }

.ribbon--superada { color: #7a4b16; background: linear-gradient(135deg, #f3d9a4, #e8bf72); }
.ribbon--cumplida { color: #0d6b35; background: linear-gradient(135deg, #c9f2d8, #9fe6ba); }
.ribbon--active { color: #6b645a; background: var(--surface-2); }
.ribbon__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---- Stats / % / barra ---- */
.service__stats { margin-bottom: 24px; }

.service__pct-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.service__pct {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.service__pct--spotify { color: #128a3e; }
.service__pct--youtube { color: #c4302b; }
.service__pct--tiktok { color: #0e8b86; }
.service__pct--meta { color: #0668e1; }

.service__pct-note {
  font-size: .84rem;
  color: var(--text-muted);
}

.progress {
  height: 12px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  transition: width .8s ease;
  min-width: 0;
}

.progress__bar--spotify { background: linear-gradient(90deg, #1DB954, #17a54a); }
.progress__bar--youtube { background: linear-gradient(90deg, #c4302b, #e0564f); }
.progress__bar--tiktok { background: linear-gradient(90deg, #0e8b86, #13b3ac); }
.progress__bar--meta { background: linear-gradient(90deg, #0668e1, #3b8af0); }

/* ---- Cuadrícula de métricas ---- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
}

.metric {
  background: var(--bg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric__label {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.metric__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.metric__value--accent { color: var(--gold); }

/* ---- Timeline de fechas ---- */
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.timeline__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}

.timeline__dot { width: 9px; height: 9px; border-radius: 50%; }

.timeline__dot--gold { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.timeline__dot--green { background: #158c4a; box-shadow: 0 0 0 3px rgba(29, 185, 84, .15); }

/* ---------- EVIDENCIAS por servicio ---------- */
.service__evidences { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }

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

.service__ev-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  margin-left: 6px;
}

.evidence-list { display: grid; gap: 8px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.video-embed { width: 100%; }

.video-embed__frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: none;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.video-embed__link {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
}

.video-embed__link:hover { color: var(--gold-bright); }

.evidence-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}

.evidence-item:hover { background: var(--bg); border-color: var(--border); }

.evidence-item__num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: .82rem;
  width: 26px;
  flex-shrink: 0;
}

.evidence-item__title { flex: 1; font-size: .9rem; font-weight: 500; min-width: 0; }

.evidence-item__reach { color: var(--text-muted); font-size: .82rem; white-space: nowrap; }

.evidence-item__arrow { color: var(--gold); font-weight: 600; font-size: .9rem; flex-shrink: 0; }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold);
}

.service__link:hover { color: var(--gold-bright); }

/* ---------- HOME / TARJETAS ---------- */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  box-shadow: 0 16px 40px rgba(47, 42, 35, .05);
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 24px 55px rgba(169, 121, 74, .14);
}

.home-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
}

.home-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.home-card__text {
  color: var(--text-muted);
  font-size: .95rem;
}

.home-card__arrow {
  margin-top: 6px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- ENCABEZADO DE PÁGINAS INTERNAS ---------- */
.page-head {
  padding: 72px 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.page-head__back {
  display: inline-block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 28px;
}

.page-head__back:hover { color: var(--gold-bright); }

.page-head__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
}

.page-head__sub {
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---------- CATÁLOGO ---------- */
.catalog-month { margin-bottom: 52px; }

.catalog-month__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.catalog-month__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

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

.catalog-month__count {
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--gold-soft);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.catalog-month__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.catalog-song {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(47, 42, 35, .05);
  transition: transform .25s, border-color .25s;
}

.catalog-song:hover { transform: translateY(-3px); border-color: var(--gold); }

.catalog-song__cover-wrap {
  aspect-ratio: 1;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.catalog-song__cover { width: 100%; height: 100%; object-fit: cover; }

.catalog-song__cover-fallback {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  text-align: center;
  padding: 20px;
}

.catalog-song__body { padding: 22px; }

.catalog-song__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.catalog-song__month {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.state-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
}

.state-badge--published { background: rgba(29, 185, 84, .13); color: #158c4a; }

.catalog-song__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.catalog-song__player { width: 100%; }

.catalog-song__player audio { width: 100%; }

.catalog-song__soon {
  color: var(--text-muted);
  font-size: .88rem;
  font-style: italic;
}

/* ---------- GALERÍA ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .35s, opacity .35s;
}

.gallery img:first-child { grid-column: span 2; grid-row: span 2; height: 654px; }

.gallery img:hover { transform: scale(1.01); opacity: .92; }

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

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
  font-size: .88rem;
  border-top: 1px solid var(--border);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__photo-wrap { max-width: 420px; }
  .section { padding: 64px 0; }
  .campaign { padding: 28px; grid-template-columns: 1fr; }
  .campaign__media { max-width: 280px; margin-inline: auto; }
  .service__inner { padding: 26px; }
  .home-cards { grid-template-columns: 1fr; }
  .catalog-month__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img, .gallery img:first-child { grid-column: auto; grid-row: auto; height: 260px; }
}
