/* Audioteca ExtractiaX — sin dependencias externas */

:root {
  --fondo: #0e1116;
  --superficie: #161b24;
  --superficie-2: #1c2330;
  --borde: #2a3242;
  --texto: #e9e4d8;
  --texto-2: #9aa3b2;
  --acento: #e8b04b;
  --acento-oscuro: #b7862c;
  --verde: #6fbf8b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  line-height: 1.6;
}

/* ---- Cabecera ---- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--texto);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acento);
}

.logo-marca { width: 34px; height: 34px; }

.cabecera nav { display: flex; gap: 1.4rem; }

.cabecera nav a {
  color: var(--texto-2);
  text-decoration: none;
  font-size: 0.95rem;
}

.cabecera nav a:hover { color: var(--acento); }

@media (max-width: 560px) {
  .cabecera nav { gap: 0.9rem; }
  .logo span { font-size: 1.05rem; }
}

/* ---- Héroe ---- */

.heroe {
  text-align: center;
  padding: clamp(3rem, 9vw, 6.5rem) 1.5rem clamp(2.5rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(232, 176, 75, 0.09), transparent),
    var(--fondo);
}

.heroe-kicker {
  margin: 0 0 1rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--acento);
}

.heroe h1 {
  margin: 0 auto;
  max-width: 21ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.15;
}

.heroe-sub {
  max-width: 58ch;
  margin: 1.4rem auto 0;
  color: var(--texto-2);
  font-size: 1.05rem;
}

.heroe-sellos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin: 1.6rem 0 2rem;
  font-size: 0.9rem;
  color: var(--verde);
}

/* ---- Botones ---- */

.boton {
  display: inline-block;
  padding: 0.75rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--acento);
  background: var(--acento);
  color: #17120a;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.boton:hover { background: #f3c264; transform: translateY(-1px); }

/* ---- Secciones ---- */

.seccion {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}

.seccion-alterna {
  max-width: none;
  background: var(--superficie);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}

.seccion-alterna > h2,
.seccion-alterna > .seccion-sub,
.seccion-alterna .pasos {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.seccion h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.seccion-sub {
  margin: 0 0 2.2rem;
  color: var(--texto-2);
  max-width: 62ch;
}

/* ---- Catálogo ---- */

.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.6rem;
}

.tarjeta {
  display: flex;
  flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tarjeta:hover {
  transform: translateY(-3px);
  border-color: #3b465c;
}

.tarjeta.reproduciendo { border-color: var(--acento); }

.tarjeta img {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: block;
  background: var(--superficie-2);
}

.tarjeta-cuerpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.15rem;
  padding: 1rem 1.1rem 1.2rem;
}

.tarjeta h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1.3;
}

.tarjeta-autor { margin: 0; color: var(--acento); font-size: 0.92rem; }

.tarjeta-meta {
  margin: 0.35rem 0 0;
  color: var(--texto-2);
  font-size: 0.84rem;
}

.tarjeta-acciones {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
}

.boton-muestra,
.boton-comprar {
  flex: 1;
  padding: 0.55rem 0.4rem;
  border-radius: 9px;
  border: 1px solid var(--borde);
  background: var(--superficie-2);
  color: var(--texto);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.boton-muestra:hover { border-color: var(--acento); color: var(--acento); }

.boton-comprar {
  border-color: var(--acento);
  background: var(--acento);
  color: #17120a;
}

.boton-comprar:hover { background: #f3c264; }

.boton-muestra[disabled],
.boton-comprar[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Reproductor inline */

.reproductor { padding: 0 1.1rem; }

.barra {
  height: 4px;
  border-radius: 2px;
  background: var(--borde);
  overflow: hidden;
}

.barra-progreso {
  height: 100%;
  width: 0;
  background: var(--acento);
}

.reproductor-tiempo {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0 0.9rem;
  color: var(--texto-2);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.tarjeta.reproduciendo .tarjeta-acciones { padding-top: 0.6rem; }

/* ---- Cómo funciona ---- */

.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  padding-top: 0.6rem;
}

.paso {
  background: var(--superficie-2);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
}

.paso-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--acento);
  color: #17120a;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.paso h3 { margin: 0 0 0.4rem; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }

.paso p { margin: 0; color: var(--texto-2); font-size: 0.95rem; }

/* ---- Lista sin JS ---- */

.lista-simple { color: var(--texto-2); }

/* ---- Pie ---- */

.pie {
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  color: var(--texto-2);
  font-size: 0.92rem;
}

.pie a { color: var(--texto); }

.pie-marca {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--texto);
  margin: 0 0 0.6rem;
}

.pie-marca small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acento);
}

.pie p { margin: 0.25rem 0; }

/* ---- Aviso flotante ---- */

.aviso {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  max-width: min(92vw, 480px);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--acento);
  background: var(--superficie-2);
  color: var(--texto);
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
