/* ═══════════════════════════════════════════════════════
   Biblioteca — /biblioteca/
   ═══════════════════════════════════════════════════════ */

/* ── Sección principal ── */
.bib-section {
  background: var(--bg, #f6f7f9);
  padding: 48px 0 72px;
}

/* ── Layout grid ── */
.bib-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .bib-wrap {
    grid-template-columns: 1fr 296px;
    gap: 56px;
  }
}

/* ── Prosa editorial ── */
.bib-prose {
  color: var(--text, #3F4656);
  font-size: var(--text-base, 17px);
  line-height: 1.8;
}

.bib-prose p {
  margin: 0 0 1.2em;
}

.bib-prose p:last-child {
  margin-bottom: 0;
}

/* ── Aside ── */
.bib-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Cards ── */
.bib-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
}

.bib-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bib-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft, #edf7f8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bib-card__icon svg {
  stroke: var(--accent, #5FA9B3);
}

.bib-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark, #3F4656);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.bib-card__body {
  font-size: 14px;
  color: var(--muted, #6b7280);
  line-height: 1.65;
}

.bib-card__body p {
  margin: 0 0 10px;
}

.bib-card__body p:last-child {
  margin-bottom: 0;
}

/* ── Link de email ── */
.bib-card__mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #5FA9B3);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

.bib-card__mail:hover {
  color: var(--accent-hover, #4d8e95);
}

.bib-card__mail svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* ── Horarios ── */
.bib-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bib-hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.bib-hours li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.bib-hours__day {
  font-weight: 600;
  color: var(--dark, #3F4656);
  white-space: nowrap;
}

.bib-hours__time {
  color: var(--muted, #6b7280);
  text-align: right;
}

/* ── Bibliotecarios ── */
.bib-staff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bib-staff li {
  font-size: 14px;
  color: var(--text, #3F4656);
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bib-staff li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #5FA9B3);
}

.bib-staff li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
