/* Fase 6A: colecciones con texto protagonista e imágenes de apoyo. */
.library-views { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.library-views a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 44px; border-radius: 12px; font-size: 1rem; font-weight: 800; }
.library-views a[aria-current="page"] { background: var(--surface-sky); color: var(--navy); }
.library-views a:hover { background: white; }
.library-views span { font-size: .875rem; font-weight: 700; }
.pack-count { white-space: nowrap; }
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-packs .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pack-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line-soft); border-top: 4px solid var(--pack-accent, var(--surface-sky)); border-radius: var(--radius-card); background: white; box-shadow: var(--shadow-soft); }
.pack-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pack-eyebrow { color: #426573; font-size: .8125rem; font-weight: 900; letter-spacing: .07em; }
.pack-card-top img { display: block; flex: none; width: 78px; height: 52px; object-fit: contain; border-radius: 8px; }
.pack-card h3 { color: var(--navy); font-size: 1.375rem; line-height: 1.25; overflow-wrap: anywhere; }
.pack-card-meta { margin: 12px 0 0; font-size: .9375rem; line-height: 1.45; font-weight: 750; color: #426573; }
.pack-card-objective { margin-top: 12px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.pack-card .pack-card-action { margin-top: auto; padding-top: 18px; }
.pack-card .btn { min-height: 44px; }
.pack-result-section { margin-bottom: 30px; }
.pack-result-section h2 { font-size: 1.5rem; }
.pack-result-section > p { margin: 8px 0 18px; font-size: .9375rem; color: var(--muted); }
.pack-resource-results-title { font-size: 1.5rem; margin: 0 0 18px; }
.packs-page .page-title { padding-bottom: 26px; }
.packs-page .page-title p { max-width: 64ch; }
.pack-filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 26px; }
.pack-filter-form .field { min-width: 180px; flex: 1; margin: 0; }
.pack-filter-form .textlink { align-self: center; }
.pack-detail { max-width: 1140px; }
.pack-heading { padding: 10px 0 30px; }
.pack-heading h1 { margin-top: 12px; max-width: 26ch; overflow-wrap: anywhere; }
.pack-heading > p { max-width: 65ch; font-size: 1.125rem; line-height: 1.55; margin-top: 18px; }
.pack-heading-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: 1rem; font-weight: 800; color: #426573; }
.pack-intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; padding-bottom: 32px; }
.pack-intro-grid > * { min-width: 0; }
.pack-intro-grid h2, .pack-guidance h2 { font-size: 1.375rem; }
.pack-intro-grid p, .pack-guidance p { font-size: 1rem; line-height: 1.6; }
.pack-time { padding: 20px; background: var(--surface-sky); border-radius: 15px; align-self: start; }
.pack-partial-note { padding: 14px 16px; background: var(--surface-butter); border-radius: 12px; }
.pack-resources > h2 { margin-bottom: 10px; }
.pack-list-intro { margin-bottom: 20px; color: var(--muted); }
.pack-resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pack-resource { display: grid; grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "main image" "action image"; align-items: start; gap: 16px 24px; padding: 24px; background: white; border: 1px solid var(--line-soft); border-radius: var(--radius-card); }
.pack-resource-main { grid-area: main; min-width: 0; }
.pack-resource-label { margin: 0 0 8px; font-size: .875rem; line-height: 1.4; font-weight: 800; color: #426573; }
.pack-resource h3 { font-size: 1.375rem; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.pack-resource-meta { margin: 10px 0 0; font-size: .9375rem; line-height: 1.5; color: #426573; font-weight: 750; }
.pack-resource-format { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--muted); font-size: .875rem; }
.pack-resource-use { margin-top: 12px; font-size: 1rem; line-height: 1.55; }
.pack-resource-thumb { grid-area: image; width: 112px; height: 75px; border-radius: 10px; overflow: hidden; background: var(--surface-sky); }
.pack-resource-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pack-resource-action { grid-area: action; justify-self: start; min-height: 44px; }
.pack-resource-actions { grid-area: action; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.pack-resource-actions .btn { min-height: 44px; font-size: .875rem; padding: 10px 12px; }
.pack-resource-actions .btn svg { flex-shrink: 0; }
.pack-guidance > .btn { margin-top: 16px; min-height: 44px; white-space: normal; }
.pack-return { padding-top: 18px; }
.pack-return .btn { min-height: 44px; text-align: left; white-space: normal; }
.pack-action-dialog .field { margin-top: 18px; }
.pack-action-dialog select, .pack-action-dialog .btn { min-height: 44px; }
.pack-guidance { padding: 26px; margin-top: 28px; border-radius: var(--radius-card); background: var(--surface-butter); }
.pack-guidance p { max-width: 80ch; }
.pack-detail-back { margin-top: 24px; }
@media (max-width: 900px) {
  .home-packs .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pack-resource { grid-template-columns: minmax(0, 1fr) 88px; gap: 14px 18px; padding: 22px; }
  .pack-resource-thumb { width: 88px; height: 59px; }
}
@media (max-width: 600px) {
  .pack-grid, .home-packs .pack-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pack-card { padding: 18px; }
  .pack-card-top { margin-bottom: 8px; }
  .pack-card-top img { width: 66px; height: 44px; }
  .pack-card h3, .pack-resource h3 { font-size: 1.25rem; }
  .pack-card-meta { margin-top: 10px; }
  .pack-card .pack-card-action { padding-top: 14px; }
  .pack-filter-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pack-filter-form .field { min-width: 0; }
  .pack-heading h1 { font-size: 2rem; }
  .pack-heading > p { font-size: 1rem; }
  .pack-resource { grid-template-columns: minmax(0, 1fr) 64px; grid-template-areas: "main image" "action action"; gap: 14px 12px; padding: 18px; }
  .pack-resource-thumb { width: 64px; height: 43px; }
  .pack-resource-action { justify-self: stretch; }
  .pack-resource-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .pack-resource-actions .btn { justify-content: center; }
  .pack-guidance { padding: 20px; }
}
