/* =========================================================
   Diócesis de Apartadó — Overrides sobre Bootstrap 5
   Paleta: azul #1c3f94 / azul claro #2eaae1 / dorado #c8a13a
   ========================================================= */

:root {
  --azul-oscuro: #1c3f94;
  --azul-claro: #2eaae1;
  --dorado: #c8a13a;
}

body { color: #26292c; }

/* ---------- Navbar ---------- */
.navbar .nav-link {
  font-weight: 600;
  color: #26292c;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--azul-oscuro);
}
.navbar .nav-link.active { border-bottom: 2px solid var(--dorado); }

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--azul-oscuro);
}
.dropdown-menu { border-top: 3px solid var(--azul-oscuro); }

/* Submenú anidado (Documentos > Consentimiento de uso de imagen) 
   Bootstrap no trae soporte nativo para dropdowns de 2 niveles,
   así que este bloque + un poco de JS en main.js lo habilitan. */
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}
.dropdown-submenu > a::after {
  content: "\F231"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  float: right;
  font-size: .7em;
  margin-left: 8px;
}

/* ---------- Hero genérico ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--azul-oscuro), var(--azul-claro));
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.page-hero img { max-width: 420px; margin: 0 auto 20px; }
.page-hero h1 { font-weight: 700; }

/* ---------- Tarjetas Misión / Visión ---------- */
.mv-card {
  background: linear-gradient(160deg, var(--azul-claro), var(--azul-oscuro));
  color: #fff;
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  height: 100%;
}
.mv-card img { width: 56px; margin: 0 auto 16px; filter: brightness(0) invert(1); }

/* ---------- Encabezados de sección ---------- */
.section-title {
  color: var(--azul-oscuro);
  border-bottom: 3px solid var(--dorado);
  display: inline-block;
  padding-bottom: 6px;
  font-weight: 700;
}
p.justify { text-align: justify; }

/* ---------- Línea de tiempo (Historia) ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--dorado);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dorado);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--dorado);
}
.timeline-year {
  font-weight: 700;
  color: var(--azul-oscuro);
  font-size: 1.3rem;
}

/* ---------- Tarjeta de datos rápidos (Plan Pastoral) ---------- */
.fact-card {
  background: #f5f7fa;
  border-left: 4px solid var(--dorado);
  border-radius: 6px;
  padding: 24px 28px;
}
.fact-card h6 { color: var(--azul-oscuro); font-weight: 700; }

/* ---------- Tarjetas numeradas de secciones (Plan Pastoral) ---------- */
.numbered-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(28,63,148,0.08);
  height: 100%;
  transition: transform .15s;
}
.numbered-card:hover { transform: translateY(-3px); }
.numbered-card .card-body { padding: 28px; }
.numbered-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--azul-oscuro);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Acordeón de Marco doctrinal ---------- */
.accordion-button:not(.collapsed) {
  background-color: var(--azul-oscuro);
  color: #fff;
}
.accordion-button:focus { box-shadow: none; }
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

/* ---------- Perfil del Obispo ---------- */
.bishop-hero {
  background: linear-gradient(180deg, var(--azul-oscuro), var(--azul-claro));
  padding: 50px 0 100px;
  color: #fff;
  position: relative;
}
.bishop-profile-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  margin-top: -80px;
  padding: 30px;
  position: relative;
  z-index: 2;
}
.bishop-photo {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  border: 4px solid var(--dorado);
  object-fit: cover;
  aspect-ratio: 3/4;
  background: #eef1f6;
}
.bishop-name {
  color: var(--azul-oscuro);
  font-weight: 700;
  margin-bottom: 0;
}
.bishop-dates .badge {
  background-color: var(--azul-oscuro);
  font-weight: 500;
  font-size: .8rem;
  margin-right: 6px;
}
.coat-of-arms {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #f5f7fa;
  border-radius: 12px;
  padding: 10px;
}

/* ---------- Tarjetas pequeñas: Sacerdotes ---------- */
.person-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(28,63,148,.08);
  text-align: center;
  padding: 14px 10px;
  height: 100%;
}
.person-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 3px solid var(--dorado);
  background: #eef1f6;
}
.person-card h6 { font-size: .82rem; font-weight: 700; color: var(--azul-oscuro); margin-bottom: 2px; line-height: 1.2; }
.person-card small { font-size: .72rem; color: #6c757d; display: block; }

.subsection-title {
  color: var(--azul-oscuro);
  font-weight: 700;
  border-left: 4px solid var(--dorado);
  padding-left: 10px;
  margin: 40px 0 20px;
}

.memoria-list {
  columns: 2;
  column-gap: 30px;
  font-style: italic;
  color: #555;
  font-size: .9rem;
}
@media (max-width: 600px) { .memoria-list { columns: 1; } }

/* ---------- Tarjetas pequeñas: Parroquias ---------- */
.parish-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(28,63,148,.08);
  overflow: hidden;
  height: 100%;
}
.parish-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #eef1f6;
}
.parish-card .body { padding: 10px 12px; }
.parish-card h6 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 4px;
  line-height: 1.2;
}
.parish-card p { font-size: .72rem; margin-bottom: 2px; color: #555; }
.parish-card .btn-horarios {
  font-size: .68rem;
  padding: 2px 8px;
  color: var(--azul-oscuro);
  border: 1px solid var(--azul-oscuro);
  border-radius: 20px;
  background: none;
}
.parish-card .btn-horarios:hover { background: var(--azul-oscuro); color: #fff; }
.parish-card .horarios-box {
  font-size: .72rem;
  background: #f5f7fa;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 6px;
}
.vicaria-title {
  background: var(--azul-oscuro);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  margin: 45px 0 20px;
  display: inline-block;
}