/* Estilos compartidos TranslaStars Audio
   Paleta: gradiente morado #522D6D -> #7B3FAF, acento naranja #FF6B00, fuente Montserrat */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: #f5f0ff; color: #2d2535; min-height: 100vh; }

a { text-decoration: none; }

.nav-bar { background: #fff; border-bottom: 1px solid #f0ebf5; padding: 0 24px; display: flex; align-items: center; height: 56px; gap: 24px; }
.nav-bar a { color: #522D6D; font-size: 0.85rem; font-weight: 600; }
.nav-bar a:hover { color: #FF6B00; }
.nav-bar .nav-brand { font-weight: 800; font-size: 1rem; }
.nav-bar .nav-brand span { color: #FF6B00; }
.nav-bar .nav-brand img { height: 22px; width: auto; vertical-align: middle; }
.nav-bar .spacer { flex: 1; }
.nav-bar .subscribe-btn { background: #FF6B00; color: #fff; padding: 6px 16px; border-radius: 8px; font-weight: 700; font-size: 0.8rem; }
.nav-bar .subscribe-btn:hover { background: #e05e00; color: #fff; }

.btn { display: inline-block; background: #FF6B00; color: #fff; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; }
.btn:hover { background: #e05e00; }
.btn.secondary { background: #7B3FAF; }
.btn.secondary:hover { background: #6a35a0; }
.btn.ghost { background: transparent; color: #7B3FAF; border: 2px solid #7B3FAF; }
.btn.ghost:hover { background: #f0ebf5; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.container.narrow { max-width: 860px; }

.loading { text-align: center; padding: 60px; color: #6b5b7a; }
.spinner { width: 40px; height: 40px; border: 3px solid #e8e0f0; border-top-color: #7B3FAF; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 60px 24px; color: #6b5b7a; }
.empty h3 { font-size: 1.2rem; margin-bottom: 8px; color: #2d2535; }

.badge { display: inline-block; font-size: 0.7rem; background: #f0ebf5; color: #7B3FAF; padding: 3px 10px; border-radius: 6px; font-weight: 600; white-space: normal; line-height: 1.35; }
.badge.orange { background: #ffe8d6; color: #e05e00; }
.badge.featured { background: #FF6B00; color: #fff; }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(82,45,109,0.06); transition: all 0.2s; cursor: pointer; position: relative; border: 1px solid #f0ebf5; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(82,45,109,0.12); }
.card .card-icon { font-size: 1.6rem; margin-bottom: 8px; }
.card .card-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 12px; border: 1px solid #f0ebf5; background: #f7f3fa; }
.card h3 { font-size: 1rem; font-weight: 700; color: #2d2535; margin-bottom: 6px; line-height: 1.3; }
.card .card-desc { font-size: 0.8rem; color: #6b5b7a; line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card .course-link { font-size: 0.78rem; margin: -4px 0 10px; line-height: 1.4; }
.card .course-link a { color: #FF6B00; font-weight: 600; text-decoration: none; border-bottom: 1px dashed #FF6B00; }
.card .course-link a:hover { color: #522D6D; border-bottom-color: #522D6D; }
.card .card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card .card-meta .badge { flex-shrink: 0; min-width: 0; max-width: 100%; overflow-wrap: break-word; }
.card .card-dur { font-size: 0.78rem; color: #6b5b7a; margin-top: 8px; font-weight: 600; }

.search-bar { background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 4px 24px rgba(82,45,109,0.12); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-bar input { flex: 1; min-width: 200px; padding: 10px 14px; border: 2px solid #e8e0f0; border-radius: 10px; font-size: 0.9rem; outline: none; font-family: inherit; }
.search-bar input:focus { border-color: #7B3FAF; }
.search-bar select { padding: 10px 14px; border: 2px solid #e8e0f0; border-radius: 10px; font-size: 0.85rem; outline: none; background: #fff; cursor: pointer; font-family: inherit; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-size: 1.2rem; font-weight: 800; color: #522D6D; }
.section-header p { font-size: 0.85rem; color: #6b5b7a; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar input, .search-bar select { width: 100%; }
  .nav-bar { gap: 10px; padding: 0 12px; }
  .nav-bar a[href="https://www.translastars.com"] { display: none; }
  .nav-bar .nav-brand img { height: 22px; }
}
