/* =========================================
   CATÁLOGO
   ========================================= */

.catalogo-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* ─── ENCABEZADO ──────────────────────────────────────────── */
.catalogo-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-align: center;
}

.catalogo-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  margin-bottom: 40px;
  text-align: center;
}

/* ─── BUSCADOR ───────────────────────────────────────────── */
.search-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.search-input {
  flex: 1;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
  border-color: #e0bd4a;
}

.search-btn {
  background: #e0bd4a;
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, transform 0.1s;
  white-space: nowrap;
}

.search-btn:hover {
  background: #e0bd4a;
}

.search-btn:active {
  transform: scale(0.97);
}

/* ─── RESULTADOS ──────────────────────────────────────────── */
.catalogo-results {
  min-height: 80px;
}

.result-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  margin: 5px 0;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: background 0.15s, border-color 0.15s;
}

.result-item:hover {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.12);
}

.result-titulo {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.result-artista {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* ─── ESTADO VACÍO ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.5);
}

.empty-state p {
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.suggest-link {
  color: #e0bd4a;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 15px;
  font-family: inherit;
  padding: 0;
}

.suggest-link:hover {
  text-decoration: underline;
}

/* ─── ESTADO INICIAL ──────────────────────────────────────── */
.idle-state {
  text-align: center;
  padding: 60px 24px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 15px;
}

.idle-state svg {
  display: block;
  margin: 0 auto 16px;
  opacity: 0.2;
}

/* ─── MODAL DE SUGERENCIA ─────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
  line-height: 1.5;
}

.modal-tango-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
  font-style: italic;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #e0bd4a;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
  width: 100%;
  background: #e0bd4a;
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: background 0.18s, opacity 0.18s;
}

.btn-submit:hover {
  background: #e0bd4a;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-feedback {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-feedback.success {
  color: #e0bd4a;
  display: block;
}

.form-feedback.error {
  color: #ff5c5c;
  display: block;
}

/* ─── SPINNER ─────────────────────────────────────────────── */
.spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #e0bd4a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── TÍTULO MOBILE ───────────────────────────────────────── */
.catalogo-mobile-title {
  display: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .catalogo-main {
    padding: 40px 16px 80px;
  }

  .catalogo-mobile-title {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #e0bd4a;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
  }

  .search-wrap {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
  }

  .modal-box {
    padding: 28px 20px;
  }
}

/* Búsqueda por letra y llamado a crear cuenta (30/09) */
.abc-label { text-align: center; color: rgba(255,255,255,0.45); font-size: 13px; margin: 18px 0 10px; }
.abc-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; max-width: 620px; margin: 0 auto 26px; }
.abc-grid button { height: 34px; border-radius: 8px; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.08); color: #fff; font: 600 14px 'Plus Jakarta Sans', sans-serif; cursor: pointer; transition: border-color .15s, color .15s; }
.abc-grid button:hover { border-color: #c9a227; color: #c9a227; }
.abc-grid button.activa { background: #c9a227; border-color: #c9a227; color: #1a1200; }
@media (max-width: 600px) { .abc-grid { grid-template-columns: repeat(9, 1fr); } }
.catalogo-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 760px; margin: 0 auto 28px; padding: 18px 22px; border-radius: 16px; background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(201,162,39,0.02)); border: 1px solid rgba(201,162,39,0.3); }
.catalogo-cta strong { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.catalogo-cta span { color: rgba(255,255,255,0.65); font-size: 14px; }
.catalogo-cta-btn { background: #c9a227; color: #1a1200; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
