/* =========================================================
   PÁGINA DEL OBISPO
   ========================================================= */

.bishop-page {
  background: #f4f7fb;
}

/* =========================================================
   HERO
   ========================================================= */

.bishop-hero {
  background: linear-gradient(135deg, #0b3a82, #1554a5);
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}

.bishop-hero .container,
.bishop-page .container {
  max-width: 1280px;
  width: calc(100% - 48px);
  margin: 0 auto;
}

.bishop-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: center;
}

.bishop-hero h1 {
  color: #fff;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1;
  margin: 0 0 18px;
}

.bishop-role {
  font-size: 24px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .9);
}

.bishop-motto {
  margin: 0;
  padding-left: 22px;
  border-left: 5px solid #f4b400;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.bishop-hero__image img {
  width: 100%;
  display: block;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .22);
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

.bishop-main-section {
  padding: 70px 0;
}

.bishop-layout {
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  gap: 42px;
  align-items: start;
}

.bishop-content-card,
.bishop-info-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(11, 58, 130, .12);
}

.bishop-content-card {
  padding: 42px;
}

.bishop-content-card h2,
.bishop-info-card h2 {
  margin-top: 0;
  color: #0b3a82;
  font-size: 34px;
}

.bishop-content-card .entry-content {
  font-size: 18px;
  line-height: 1.75;
  color: #10233f;
}

.bishop-info-card {
  padding: 36px;
  border-top: 7px solid #f4b400;
}

.bishop-coat {
  text-align: center;
  margin-bottom: 26px;
}

.bishop-coat img {
  max-width: 180px;
  height: auto;
}

.bishop-info-item {
  padding: 18px 0;
  border-bottom: 1px solid #e5ebf3;
}

.bishop-info-item span {
  display: block;
  color: #0b3a82;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.bishop-info-item p {
  margin: 0;
  font-size: 18px;
  color: #10233f;
}

.bishop-quote-box p {
  font-style: italic;
}

.bishop-cv-button {
  margin-top: 25px;
}

/* =========================================================
   GALERÍA
   ========================================================= */

.bishop-gallery-section {
  padding: 20px 0 90px;
}

.bishop-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bishop-gallery-grid figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(11, 58, 130, .12);
}

.bishop-gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   NAVEGACIÓN DEL OBISPO
   ========================================================= */

.bishop-navigation {
  scroll-margin-top: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f4f7fb;
  padding: 34px 0;
  border-bottom: 1px solid #dfe6ef;
}

.bishop-navigation__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: stretch;
}

.bishop-navigation__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 16px;
  background: #fff;
  color: #0b3a82;
  border: 1px solid rgba(11, 58, 130, .12);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 5px 18px rgba(11, 58, 130, .06);
  transition:
    transform .2s ease,
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.bishop-navigation__item:hover {
  transform: translateY(-3px);
  background: #0b3a82;
  color: #fff;
  border-color: #0b3a82;
  box-shadow: 0 10px 25px rgba(11, 58, 130, .16);
}

.bishop-navigation__item--active {
  background: #f5b400;
  color: #fff;
  border-color: #f5b400;
}

.bishop-navigation__item--active:hover {
  background: #e3a600;
  border-color: #e3a600;
}

.bishop-navigation__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 15px;
}

.bishop-navigation__label {
  white-space: nowrap;
}

.bishop-back-menu {
    margin-top: 22px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .bishop-navigation__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .bishop-hero__grid,
  .bishop-layout,
  .bishop-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  body.admin-bar .bishop-navigation {
    top: 46px;
  }
}

@media (max-width: 700px) {
  .bishop-navigation {
    padding: 24px 0;
  }

  .bishop-navigation__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .bishop-navigation__item {
    min-height: 54px;
    padding: 12px 10px;
    font-size: 13px;
  }
}

@media (max-width: 460px) {
    .bishop-navigation {
        padding: 16px 0;
    }

    .bishop-navigation__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bishop-navigation__item {
        min-height: 52px;
        padding: 10px 8px;
        justify-content: center;
        font-size: 13px;
    }

    .bishop-navigation__icon {
        width: 20px;
        height: 20px;
    }
}
@media (max-width: 768px) {
    .bishop-back-menu {
        margin-top: 18px;
    }
}

/* WordPress: barra de administración en escritorio */
@media (min-width: 783px) {
  body.admin-bar .bishop-navigation {
    top: 32px;
  }
}

/* =========================================================
   VIDEOS DEL OBISPO
   ========================================================= */

.bishop-content-section#videos {
  padding-top: 90px;
  padding-bottom: 100px;
}

.bishop-content-section#videos .bishop-content-section__heading {
  margin-bottom: 42px;
}

.bishop-content-section#videos .bishop-content-section__heading h2 {
  margin-bottom: 0;
}

.bishop-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.bishop-video-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 55, 115, .10);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(7, 42, 91, .09);
}

.bishop-video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b3f83;
}

.bishop-video-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.bishop-video-card__media:hover img {
  transform: scale(1.04);
}

.bishop-video-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f9b400;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .20);
}

.bishop-video-card__play i {
  margin-left: 4px;
}

.bishop-video-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #0b3f83;
}

.bishop-video-card__placeholder-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
}

.bishop-video-card__body {
  padding: 26px 28px 30px;
}

.bishop-video-card__date {
  margin: 0 0 10px;
  color: #f0ae00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bishop-video-card__body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.bishop-video-card__body h3 a {
  color: #0b3f83;
  text-decoration: none;
}

.bishop-video-card__summary {
  margin: 14px 0 22px;
  color: #334d70;
  line-height: 1.65;
}

.bishop-video-card__button {
  display: inline-flex;
}

@media (max-width: 900px) {
  .bishop-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bishop-content-section#videos {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .bishop-content-grid {
    grid-template-columns: 1fr;
  }

  .bishop-video-card__body {
    padding: 22px;
  }
}
