/* ===== Contenedor general de la sección Organigrama (solo afecta al contenido) ===== */
.og-page {
  flex: 1000 0 auto;
  width: 100%;
  padding-top: 30px;
  background-color: #fff;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  box-sizing: border-box;
}

.og-page *,
.og-page *::before,
.og-page *::after {
  box-sizing: border-box;
}

/* ===== Hero ===== */
.og-page .og-hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
  background-image: url('https://www.huichapan.gob.mx/images/fondo1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.og-page .og-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.og-page .og-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.og-page .og-hero-titulo {
  display: inline-block;
  margin: 0 0 14px 0;
  padding-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  position: relative;
}

.og-page .og-hero-titulo::after {
  content: '';
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 4px;
  border-radius: 4px;
  background-color: #BFA184;
}

.og-page .og-hero-texto {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
}

/* ===== Contenido ===== */
.og-page .og-contenido {
  width: 100%;
  padding: 40px;
  background-color: #fff;
}

@media (max-width: 900px) {
  .og-page .og-contenido {
    padding: 25px 20px;
  }

  .og-page .og-hero-titulo {
    font-size: 36px;
  }

  .og-page .og-hero-texto {
    font-size: 16px;
  }
}

/* Márgenes 15% izquierdo / 70% contenido / 15% derecho en resoluciones grandes */
@media (min-width: 1400px) {
  .og-page .og-contenido {
    width: 100%;
    margin: 0;
    padding-left: 15%;
    padding-right: 15%;
  }
}

/* ===== Cabecera con título general ===== */
.og-page .og-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.og-page .og-titulo {
  display: inline-block;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #77172F;
}

.og-page .og-titulo::after {
  content: '';
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 4px;
  border-radius: 4px;
  background-color: #BFA184;
}

/* ===== Botones de vista ===== */
.og-page .og-vistas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.og-page .og-btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: #77172F;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.og-page .og-btn:hover {
  background-color: #BFA184;
  border-color: #BFA184;
  color: #fff;
}

.og-page .og-btn.activo {
  background-color: #77172F;
  border-color: #77172F;
  color: #fff;
}

.og-page .og-btn-primario {
  background-color: #77172F;
  border-color: #77172F;
  color: #fff;
}

/* ===== Visor (imagen / PDF) ===== */
.og-page .og-panel[hidden] {
  display: none;
}

.og-page .og-visor {
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.og-page .og-visor a {
  display: block;
  line-height: 0;
}

.og-page .og-imagen {
  display: block;
  width: 100%;
  height: auto;
}

.og-page .og-pdf {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 520px;
  border: 0;
  background-color: #fff;
}

.og-page .og-acciones {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* ===== Responsivo móvil ===== */
@media (max-width: 600px) {
  .og-page .og-hero {
    min-height: 200px;
    padding: 35px 16px;
  }

  .og-page .og-hero-titulo {
    font-size: 30px;
  }

  .og-page .og-hero-texto {
    font-size: 15px;
  }

  .og-page .og-contenido {
    padding: 22px 16px;
  }

  .og-page .og-titulo {
    font-size: 24px;
  }

  .og-page .og-vistas {
    width: 100%;
  }

  .og-page .og-vistas .og-btn {
    flex: 1 1 calc(50% - 10px);
    padding: 10px 12px;
    font-size: 14px;
  }

  .og-page .og-pdf {
    height: 70vh;
    min-height: 420px;
  }
}

/* ===== Móvil / tablet: el menú fijo (70px) ocupa más que el espacio superior ===== */
@media (max-width: 900px) {
  .og-page {
    padding-top: 50px;
    overflow-x: hidden;
  }
}
